Skip to main content
The CLI is the fastest way to script the agent or run one-shot tasks. It shares the same runtime as the TUI and web app.

Modes

Pass a mode with the first positional argument or --mode:
  • text (default) — interactive text mode.
  • json — emit one JSON ChatStreamEvent per line on stdout. Good for pipelines.
  • rpc — JSON-RPC framing over stdio. For building your own client.
  • daemon — start the background daemon.
  • acp — Agent Communication Protocol mode.

Key flags

--list-models was removed. Use prime-agent model list instead.

Examples

One-shot summarization piped from stdin:
Resume and pipe events to jq:
Run without any tools (pure chat):
See the source of truth for flags: packages/coding-agent/src/cli/args.ts.
Last modified on August 17, 2026