CLI Reference

The CLI uses the same service layer as the local HTTP API. It is useful for tests, runbooks, migrations, and operator checks when the dashboard is not the right tool.

For headless agent use, start with agent-client-contract. It returns the same operation classification exposed by GET /agent-client/contract, including which commands are agent-readable, agent-steering, human-only, operator-only, or blocked.

Run commands with:

npm run cli -- <command> [args]

Run And Coordinator Commands

Approval, Artifact, And Audit Commands

Secrets And Migration Commands

Secret values are write-only. CLI output returns metadata, hashes, redacted previews, and material status only. Use --env-var when a provider adapter needs a specific environment variable name injected during execution.

Approval decisions made through the CLI are recorded as human-owned decisions. Approval records include whether evidence, hashes, and policy class were reviewed so headless agents can inspect approval state without being able to approve high-risk work themselves.

Automation Commands

V1 supports manual triggering. Schedule, file-watch, and webhook trigger metadata can be represented, but a trigger worker is a later implementation slice.

Memory And Conversation Commands

Routine maintenance can summarize stale conversations, extract memory candidates, run review checks, optionally archive stale records, and optionally promote high-confidence candidates.

transcribe-audio records a local STT/import request against an audio session. When transcript text is supplied, it appends an auditable input-transcript event; local Whisper command execution is a later adapter.

Model And Profile Commands

Profile changes are review-gated. Approval activates a user profile; rejection preserves the audit trail.

Server Command

The CLI command prints the dev-server hint. Start the always-on local API with:

npm run dev:api