The CLI¶
crow-cli is the helper around the agent — full observability into the same store
the agents read and write. The shape of it:
crow-cli
├── run the client — one-shot prompts, REPL, delegation, forks
├── acp the agent, ACP v1 (editors speak ACP to this over stdio)
├── acp2 the agent, ACP v2 (the execute-kernel driver)
├── mcp serve crow's flat tool set (ACP v1) to any MCP client
├── mcp2 serve crow-mcp2 (execute-only, ACP v2)
├── init interactive config scaffolding
├── models list configured models (first is the default)
├── agents list the agent_servers entries run can drive
├── inspect session state and messages
├── list-sessions every session, most-recently-active first
├── query-memory BM25 search across all sessions
├── query-session read or search one session across all its agents
├── timers the worker that fires scheduled wakes
├── install crow build + install the IDE, its web server, and the TUI
└── auth ACP Registry compliance stub
Every command takes --config-dir/-d (default ~/.agents/crow).
run — the client¶
One prompt in, response out. Or a REPL with -i.
--prompt-file -f <path> read the prompt from a file
--interactive -i REPL loop
--session -s <id> continue an existing session
--fork branch a session's history and run inside the fork
--fork-idx <n> continue existing fork N of a session
--cwd -c <dir> working directory
--model -m <name> override the (session's) model
--agent-server -a <name> drive a named agent_servers entry (default: the top)
--json -j JSONL events to stdout, no rich rendering
--verbose -v
Which agent runs is config, not code: crow-cli agents lists the agent_servers
entries, -a NAME drives one, and a bare run drives the top entry (crow's own v2
agent when nothing is configured). An unknown NAME is an error, never a silent
fallback. The model choice travels over the wire (session/set_config_option), not
in the agent's argv.
Delegation¶
run is also how agents launch subagents. Every session persists in the shared
store, so any agent can read any other's thoughts:
# 1. launch a worker (gets a coolname session id)
crow-cli run "refactor the parser into its own module"
# 2. continue it
crow-cli run -s <session-id> "now add tests"
# 3. long pre-written prompts from file or stdin
crow-cli run -f brief.md -s <session-id>
cat brief.md | crow-cli run -
# 4. from another agent: query_session(session_id="<session-id>")
Agents launch subagents with the task MCP tool (launch, re-prompt, cancel;
completions land in the owner's mailbox). You can attach to a subagent the task
system spawned with run -s <session-id> and read its thoughts. No bespoke
agent-to-agent protocol — a shared database and a read query.
Forks¶
Branch a session's history without copying it. The fork sees the whole trunk history; the trunk never sees the fork.
crow-cli run -s <session-id> --fork "what would you do differently?"
crow-cli run -s <session-id>-<agent-idx>-<fork-idx> "keep going"
crow-cli run -s <session-id> --fork-idx 2 "keep going"
Forks are hidden from the telemetry surfaces (inspect, query-session,
query-memory, list-sessions) unless --include-forks is set.
acp / acp2 — the agent¶
The main entry points. An ACP client (the crow IDE, or any other) spawns these over
stdio; they serve sessions, tools, and streaming updates. acp is protocol v1;
acp2 is v2, the execute-kernel driver.
--config-dir -d <path> configuration directory
--debug chunk-level JSONL logging
--system-prompt-path -p override the jinja2 template
--config-file -o <yaml> overlay config values
--model -m <name> model from config.yaml's models:
--http serve over Streamable HTTP + WebSocket instead of stdio
--host <addr> bind address with --http (default 127.0.0.1)
--port <n> acp: 2769, acp2: 2771
acp2 --no-default-tool keeps config's mcpServers out of every session, so the
session's tools are exactly the ones its client sent in session/new — a generic
agent by construction rather than by prompt.
You rarely run these by hand — your client does. The crow IDE spawns its own
acp2 --http per window. Running --http yourself is for external clients that
want a long-lived agent; the IDE can proxy one too (crowAcp.backend: external).
See Clients.
mcp / mcp2 — the tool supply¶
The agent has no builtin tools; these serve crow's tools to whichever client asks.
crow-cli mcp— the flat v1 tool set (read/write/edit, shell, web, vision, memory, task, …).--include-toolsallowlists a subset;--list-toolsprints the names. stdio by default,--transport httpfor a service.crow-cli mcp2—executeand nothing else. The rest of the v2 surface is reached through subtools ambient in the persistent kernel (fs, edit, write, proc, web, vision, memory, sg, rlm, and the goal/task tools), so there is no--include-toolshere.
init¶
Interactive scaffolding: writes config.yaml, .env, compose.yaml +
searxng/settings.yml, and the system prompt template into the config dir, clones
the source checkouts, and installs the crow-cli skill. --yes/-y skips
confirmations; --no-source skips the clones. Idempotent — existing files are read
and offered as defaults.
models / agents¶
models lists the models from config.yaml (first is the default); --json for
machine-readable output. agents lists the agent_servers entries run -a NAME
can drive, and which one a bare run will use.
Observability¶
The rest of the CLI is a window into the same store:
crow-cli list-sessions # who's working now
crow-cli inspect -s <id> --messages # one session's state and messages
crow-cli query-memory "parser refactor" # BM25 search across all sessions
crow-cli query-session -s <id> # read or search one session
timers¶
The worker that fires scheduled wakes. Needs redis_url set. See
Services.
install crow¶
Builds the IDE .deb from the clients checkout, installs it with dpkg, and
builds the crow-agent TUI. --rebuild forces the pipeline; --no-build writes
the crow shim without building; --no-deb is the rootless fallback. See
Clients.
auth¶
Declares authentication support for ACP Registry compliance. No actual authentication is required for FOSS deployments.