Docs CLI

CLI reference

Every coding.sh command and option, generated from the CLI's own --help output at build time.

Generated at build time from coding.sh --help (version 0.1.5). Run coding.sh <command> --help for the same text in your terminal, or add --json for machine-readable metadata. Each command has its own page with its full help and its subcommands.

Global options

Every command accepts these.

global options
      --json         Print one JSON document on stdout
      --no-color     Disable color (also NO_COLOR=1)
      --debug        Show stack traces on errors
  -h, --help         Show help
      --store <URL>  Read and write this index store instead of the configured one (also CODING_SH_STORE_URL); skips auto-ingest
      --blobs <URL>  Blob store to use with --store (also CODING_SH_BLOB_URL; a postgres:// index keeps blobs in the same DB)
  -v, --version      Print the version

With --json, a command prints one JSON document on stdout and errors as one JSON line on stderr. Usage errors exit with code 2.

Commands

Capture

Command What it does
Set up capture hooks and the MCP server for every detected agent
Check agents, hooks, spool, store and the OTLP port
Show capture totals and the latest session
Print a Claude Code status line (model, cost, worst flag), or install it (install, uninstall)
Move captured hook events from the spool into the index
Run any agent command and capture the session
Start a local OTLP/HTTP receiver for agents that export traces (import)
Run a local Anthropic/OpenAI API proxy that logs every model call (status, stop, env)
Production server: OTLP + native ingest, viewer, health and metrics on one port (keygen, healthcheck)
Remove coding.sh hooks and MCP entries from every agent

Explore

Command What it does
List captured sessions
Show a session timeline with subagents and latency
Show a whole multi-agent run as one tree, with rolled-up totals
Step through a session and see what it did to each file it touched
Which agent session wrote the lines each commit added; export them as Agent Trace (export)
git blame with the agent session that wrote each line
Show what changed between two model calls, and why the second missed the prompt cache
Full-text search over prompts, replies and tool calls
Tokens, cost, turns and cache hits by agent, model or day
Score prompt-cache health and name what breaks the cached prefix (doctor)
Sessions, failures, cost, tokens and latency per day or week, split by agent, model, repo or flag
Run one read-only SQL query against the SQLite index
Stream sessions, events or labels as JSONL or CSV, or write raw traces to a directory
Open the local session viewer
Serve captured sessions to agents over MCP (stdio)

Evaluate

Command What it does
Build eval suites from sessions, skills or cases, and run them (init, run, candidates, new, import, validate, crosscheck, audit, trigger, list, export)
Manage versioned datasets of cases (add, import, list)
Run a task over a dataset, compare experiments and sweep configs (ab, replay, run, session, compare, regrade, aa, sweep, metrics, plateau, show, list, status)
Add and list typed scores on sessions, events, cases and runs (add, list, config, configs)
Grade one output or the slop in captured diffs, or check an LLM judge or a test verifier against human labels (grade, slop, calibrate, sample)
Measure how well agents use a CLI, MCP server or API (init, surface, validate, run, compare, compress, show, traces)
Capture, measure and A/B-test multi-agent workflow runs (list, import, show, stats, score, run, compare, replay)
Dynamic benchmarks: fresh cases every run, same set for every contender (new, run, regrade, list, show, history, report, schedule)

Harness

Command What it does
What to fix first in your sessions, the line that fixes it, and whether your last AGENTS.md changes helped (fix, check)
Snapshot and list agent harness bundles; audit which memory and instruction files agents use (snapshot, list, audit)
A/B two harness bundles on eval tasks
Improve AGENTS.md and skills in tested rounds, and protect their safety rules (propose, test, apply, rollback, log, run, protected, check, mine, recheck, distill, diagnose, signals, score)

Maintain

Command What it does
LLM gateways: detect routing, enrich sessions with billed cost (status, enrich)
Delete expired spool files, blobs and judge cache
Remove a leaked secret from the store: events, search, blobs, spool, eval runs
Read and write ~/.coding.sh/config.toml (get, set, path)
Install the latest coding.sh release
Migrate the store for this install, or put back the index from before a migration
Print the version