Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CLI reference

Generated from flock --help (snapshot-tested in crates/flock-cli/tests/cli_help_snapshot.rs).

Top-level commands

CommandPurpose
runScheduler-led goal loop with plugin verifier
evolveTopology evolution from episode logs
remoteMultiplexer attach + governed goal run
multiplexerPTY server (server, ensure)
herdHerdR-shaped UX (server, status, tabs, attach, wait, …)
replayReplay episode JSON; --continue-run resumes checkpoint
swarm-demoMulti-pane scheduler-led demo
ipcLegacy JSON-line bridge (deprecated)
acpAgent Client Protocol stdio server
rah-demoDepth-3 RAH pane spawn demo
skillsList SKILL.md bundles
drift-checkVerification manifest guardrails
pluginlist, info, new, install
mcpMCP stdio JSON-RPC server
telemetryQuery ~/.config/flock/telemetry.db (sessions, transitions, vitals)
doctorStaged runtime diagnostics (--json for automation)
vitalsCirculation vitals from latest episode
genomelist, lineage from topology archive
dashboardRatatui control tower; --history for telemetry JSON

flock run

flock run --goal <GOAL> [--plugin gridworld] [--rlm] [--max-steps 8]
          [--audit <PATH>] [--json] [--mcp] [--model <URL_OR_NAME>]
          [--genome <ID>] [--seed-archive] [--archive .flock/topology_archive.json]
          [--write-back] [--no-write-back]

--genome or --seed-archive seeds topology/coordination from the evolve archive before the run. Episode logs include a genome_seed event.

After a successful run, --write-back merges episode fitness into the archive (automatic when --seed-archive is used unless --no-write-back is set).

--model mock uses the deterministic stub. HTTP URLs and named providers require building with --features llm-http. The model is used only on the plugin verify path or RLM loop — never in PressureScheduler wake decisions.

flock remote

flock remote --goal <GOAL> [--plugin gridworld] [--socket <PATH>]
             [--ssh user@host] [--stub] [--audit <PATH>]

Governance pipeline (with_governance) applies on the remote hot path. Audit JSONL optional via --audit.

flock telemetry

flock telemetry [--limit 20] [--db <PATH>]
flock dashboard --history [--limit 20]

Headless query of dashboard telemetry (sessions, agent transitions, vitals snapshots). No TTY required.

flock doctor

flock doctor [--workspace .] [--json]

Staged pass/fail checks: multiplexer socket, governance manifest, plugin registry, evolve archive, latest episode vitals. Exits non-zero when any stage fails.

flock evolve

flock evolve [--episodes 10] [--workspace .flock/episodes] [--hook rust|seed-only] [--summarize]

--summarize compacts the episode corpus to .flock/episode_summary.json without running evolution. The proposer reads this summary when present (DRY with substrate heatmap).

flock mcp

flock mcp

Stdio JSON-RPC: initialize, tools/list, tools/call. See MCP tools.

flock plugin install

flock plugin install --from <DIR>
flock plugin install --git <URL> [--name <NAME>]

Installed plugins register automatically via plugins.toml and build.rs — no registry.rs edit.

Help snapshots

UPDATE_SNAPSHOTS=1 cargo test -p flock-cli --test cli_help_snapshot