Every interactive action has a command-line form for scripts and pipelines. Machine output stays on stdout and progress stays on stderr, so --json output can go straight into jq.

Global flags

Global flags apply before or after a subcommand.
--plan is the read-only permission mode. --plan-file feeds a plan to orchestration. /plan shows the plan a harness reported.

Sessions and inspection

A directory with no threads is not an error. baton status exits 0 and reports thread_id: null with next_action: "start a thread with baton".

Turns and execution

baton exec runs one prompt and prints the result. --stream-json emits one JSON object per line, ending with a type: "result" row.

Orchestration

--max-tasks accepts 1 to 16. --integrate merges approved worker branches. --open-prs pushes each approved branch and opens one pull request.

Files, memory, and data

MCP

baton mcp serves the local store over MCP stdio.
The server exposes 15 tools: baton_doctor, baton_status, baton_threads, baton_turns, baton_agents, baton_messages, baton_queue, baton_search, baton_latest_diff, baton_processes, baton_orchestration_runs, baton_orchestration_report, baton_activity, baton_memories, and baton_fork. It is read-only except for baton_queue clear and baton_fork, which creates a new thread and leaves the source unchanged. The server reads the same database and honors BATON_HOME.

Exit codes

Every command uses the same codes. See Exit codes.

Next

Slash commands

The same actions inside the terminal.

Configuration

Files, keys, roles, and permission modes.