Skip to content

iowarp/clio-coder

Clio Coder, the coding agent in IOWarp's CLIO ecosystem of agentic science

Clio Coder

The coding agent in IOWarp's CLIO ecosystem of agentic science.

Terminal-first. Model-flexible. Agent-aware. Built for HPC and scientific-software developers who want AI assistance on real research code without giving up review, control, or auditability.

version node license ci install IOWarp CLIO


Status

Clio Coder is an experimental alpha. The current public release is v0.2.1.

v0.2.1 is a source-checkout alpha patch for local model operators. It improves local harness feedback with throughput telemetry, clearer context pressure, prompt-envelope reuse, narrower tool exposure, bounded tool results, safer headless CLI behavior, and smaller-terminal dashboard controls.

It builds on the v0.2.0 community alpha foundations: durable sessions, CLIO.md project context adoption, target-first runtime routing, fleet dispatch, typed validation tools, receipts, and local-runtime support.

Expect sharp edges around first-run configuration, local runtime availability, and model-specific behavior. This is ready for early users who can build from source, run checks, and report failures with receipts and logs. It is not a production-stable managed coding assistant.

What It Does

Clio Coder runs inside real repositories as a supervised terminal harness. It lets developers ask for inspection, plans, edits, reviews, validation, and focused fleet-agent work while Clio gates tool access and records what happened.

Core surfaces:

Surface Purpose
Interactive TUI Work with an assistant without leaving the shell.
Target-first configuration Route chat and fleet dispatch through local runtimes, cloud APIs, OAuth-backed runtimes, or CLI-backed tools.
Built-in agents Dispatch scout, planner, reviewer, implementer, and other focused recipes.
Typed tools Run common git, test, lint, build, package-script, and frontend validation paths without handing the model an unrestricted shell.
Receipts and audit logs Track completed runs, token usage, costs, tool activity, safety decisions, and receipt integrity.
Project context Use checked-in CLIO.md as the canonical project guide.

Use it if you run local models such as Ollama, LM Studio, llama.cpp, vLLM, or SGLang, or if you have cloud API keys and want supervised repository work with auditable outputs.

Install From Source

Requirements:

  • Node.js >=22.19.0
  • npm
  • A model target, such as a local OpenAI-compatible gateway, Ollama, LM Studio, llama.cpp, vLLM, SGLang, a cloud API, or a supported CLI-backed runtime

Recommended alpha install:

git clone https://github.com/iowarp/clio-coder.git
cd clio-coder
npm ci
npm run build
npm link
clio --version

npm link exposes the clio binary from dist/. If you edit TypeScript source, run npm run build again before testing the linked command. For a reproducible release checkout after v0.2.1 is published, main and tag v0.2.1 should point at the same commit.

npm Status

@iowarp/clio-coder is not published on npm for v0.2.1. Use the source install path above unless a future release note explicitly announces registry availability.

First Run

Start Clio Coder from the repository you want to work on:

cd /path/to/your/repo
clio doctor --fix
clio configure
clio targets --probe
clio

For local runtimes, use the matching runtime id so Clio can manage target capabilities and resident-model lifecycle details:

clio configure --runtime lmstudio-native --id lmstudio --url http://127.0.0.1:1234 --model your-model
clio configure --runtime ollama-native   --id ollama   --url http://127.0.0.1:11434 --model your-model
clio configure --runtime llamacpp        --id llamacpp --url http://127.0.0.1:8080  --model your-model
clio configure --runtime vllm            --id vllm     --url http://127.0.0.1:8000  --model your-model
clio configure --runtime sglang          --id sglang   --url http://127.0.0.1:30000 --model your-model

Quick headless smoke:

clio run --agent scout "Summarize this repository layout and identify the main entry points."

Inside the TUI, try:

/run scout summarize the repo structure
/run planner propose one small, low-risk improvement
/run reviewer check whether that plan is safe and complete
/targets
/model
/receipts

Documentation

The README is only the release entry point. Detailed docs live under docs/.

Need Read
Commands, slash commands, modes, keybindings, dispatch, verification, and troubleshooting docs/commands-and-modes.md
Runtime targets, local model configuration, fleet profiles, and auth docs/configuration-and-targets.md
Safety modes, default-deny Bash, project policy, and typed validation docs/safety-model.md
Built-in agent recipes and dispatch admission docs/built-in-agents.md
Prompt envelopes, tool palettes, and bounded tool results docs/prompt-envelope-and-tools.md
Sessions, receipts, evidence, and memory docs/evidence-and-memory.md
Extension packages and share archives docs/extensions-and-sharing.md
Source layout and boundary invariants docs/architecture.md

Release Verification

Deterministic maintainer gate:

npm run ci:release

This runs typecheck, Biome checks, build, contract/smoke/boundary tests, and check-dist packaging verification. Live model validation is separate, manual, and opt-in:

CLIO_LIVE_SMOKE=1 \
CLIO_LIVE_TARGET=openai-compat \
CLIO_LIVE_RUNTIME=openai-compat \
CLIO_LIVE_MODEL=your-model \
CLIO_LIVE_BASE_URL=http://localhost:8080/v1 \
npm run test:live

Manual v0.2.1 release-prep evidence also covered the interactive TUI, a dispatch_batch run with Dynamo-backed workers, destructive-delete refusal, and a Mini/llama.cpp live smoke returning clio-live-ok. Treat those as operator-run release checks, not guarantees that every local model behaves the same way.

Troubleshooting

Problem Try this
clio: command not found Run npm run build && npm link from the Clio Coder source tree.
No model target is available Run clio configure, then clio targets --probe.
Local model does not respond Confirm the local runtime is running and the target URL is correct.
Cloud model auth fails Check clio auth status <target> and verify the relevant API key or login flow.
Source changes do not appear Re-run npm run build; the linked CLI points at dist/.
State appears corrupted Run clio doctor; if needed, run clio doctor --fix.

For issue reports, include:

clio --version
node --version
clio doctor
clio targets

Redact secrets, private prompts, logs, and proprietary code.

Development

Contributor guidance lives in CONTRIBUTING.md. The short version:

npm ci
npm run ci

Use npm run ci:release before release artifacts. Do not imply production stability, npm publication, or broad local-model guarantees without live proof.

Lineage

Clio Coder is part of the IOWarp CLIO family.

  • clio-core: Chimaera-based context storage runtime.
  • clio-kit: MCP servers for scientific data, including HDF5, Slurm, ParaView, Pandas, ArXiv, NetCDF, FITS, Zarr, and more.

Apache-2.0. See LICENSE.

About

Agentic coding harness for supervised repository work, model-target orchestration, worker dispatch, and self-development.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages