Reference

CLI Reference

Every kumo command — sessions, tabs, panes, agents, and orchestration.

Commands

Sessions & tabs

CommandDescription
kumoAttach to the daemon (starts it if needed); restores the last session if present
kumo attachForce-attach to the running daemon
kumo new [WORKSPACE]Start a fresh session in the daemon (never attaches); uses the client's cwd when no workspace is given
kumo [WORKSPACE]Fresh-start alias for back-compat
kumo session listList sessions: tab names + ids, AI agent rows with their pane ids
kumo session new [DIR] [--name NAME]Create and focus a session in the daemon
kumo session kill NAMEClose a session and its panes
kumo session attach NAMEFocus the named session (a viewer attaches with kumo)
kumo tab list [-s SESSION]List the session's tabs with ids
kumo tab new [WORKSPACE] [--name NAME]Create a tab (window) in a session
kumo tab focus TAB / kumo tab kill TAB / kumo tab rename TAB NAMEManage tabs (TAB = tab id, t2 for the 2nd tab, or a name; rename TAB "" restores the derived name)

Worktrees

CommandDescription
kumo worktree create BRANCH [-s SESSION]Create a regular Git worktree from the session's repository and open it in a new session
kumo worktree create --ai [NAME] [--branch BRANCH] [--from REF] [--note NOTE] [--agent KIND] [-s SESSION]Create an isolated worktree for agent work; derive a branch from NAME (or use --branch), optionally start from a branch/commit/PR ref, seed a checkpoint note, and start an agent
kumo worktree list [-s SESSION]List the repository's main and linked worktrees
kumo worktree current [PATH] [-s SESSION]Show the checkpoint for the session's current worktree, or for PATH
kumo worktree set [PATH] [--comment TEXT] [--status STATUS] [-s SESSION]Set or update a checkpoint (todo, in-progress, in-review, or completed)
kumo worktree open PATH [-s SESSION]Open an existing worktree in a new session, or focus its existing session
`kumo worktree rm PATH [-f--force] [-s SESSION]`

The --ai form creates an ephemeral isolated checkout. --from accepts a local branch, remote branch, commit, #1234, or a GitHub/GitLab pull or merge request URL; Jira references are not supported yet. --agent KIND starts the selected agent in the new pane and replies once it is ready, but does not submit a task. Submit it explicitly:

kumo worktree create --ai fix-login --agent claude --note "Investigate auth tests"
kumo agent status
kumo agent prompt -p 42 "Fix the failing auth tests" --wait idle --timeout 10m
kumo worktree set --status in-review --comment "Tests pass; ready for review"

Panes

CommandDescription
kumo pane split [-s SESSION] [--horizontal] [--ai]Split the focused pane (--ai runs ai-cmd in the new pane); focus stays on the original pane
kumo pane close [-s SESSION] [-p PANE] / kumo pane focus -p PANEManage panes
kumo pane send-keys [-s SESSION] [-p PANE] KEYS...Type keys into a pane (tokens: Enter, Tab, Esc, Left, Up, PageDown, …)
kumo pane list [-s SESSION] [-t TAB_ID] [S1:T2]Every pane with its id + composite position (* = focused)
kumo pane wait-output [PANE] PATTERN [--regex] [--timeout 30s] [-s SESSION]Server-owned one-shot output waiter — returns when PATTERN appears in recent + visible buffer

PANE is passed positionally or with -p/--pane. --timeout accepts 500ms, 30s, 2m or bare milliseconds; the defaults are 30s for agent wait and pane wait-output, and 120s for agent prompt --wait.

Agents

CommandDescription
kumo agent spawn [-s SESSION] [PROGRAM]Spawn an AI CLI in a new pane (default = configured ai-cmd)
kumo agent statusOne line per running AI CLI with its pane id + position (aliases: list, ls)
kumo agent kill -p PANE [-s SESSION]Kill the agent in a pane (closes it)
kumo agent explain [PANE] [-s SESSION]Why a pane reads the state it does: matched markers, evidence region, verdict-reason chain — evaluated live by the daemon
kumo agent wait <PANE> --until blocked|done|idle|working [--timeout 30s] [-s SESSION]Server-owned event-driven wait for an agent status (pinned to pane occupant)
kumo agent prompt <PANE> <TEXT> [--wait [STATUS]] [--timeout 120s] [-s SESSION]Bracketed-paste-aware submit; --wait atomically submits and waits in one RPC
kumo agent read <PANE> [--source visible|recent|detection|traceback] [-s SESSION]Read the pane's buffer directly from the daemon (including alt-screen)
kumo agent start --kind <agent> --pane <PANE> [-- <args>] [-s SESSION]Launch an agent in an existing shell pane; returns once detection shows ready
kumo agent rename <PANE> <NAME> [-s SESSION]Live alias for a pane so scripts can reference agents by name
kumo agent broadcast "TEXT" [-s SESSION] [--filter STATUS]Fan one prompt out to every AI pane (optionally filtered by status)
kumo agent skill [--output PATH]Print the bundled Kumo orchestration skill, or install it at PATH; does not require a daemon

Daemon & maintenance

CommandDescription
kumo lsLegacy alias of kumo session list
kumo killStop the daemon and end every session (nothing is restored afterwards)
kumo reloadRe-read the config and apply it live
kumo daemon [WORKSPACE]Run the headless daemon in the foreground
kumo updateUpdate to the latest stable release
kumo update --nightlyUpdate to the latest nightly build
kumo update --checkReport availability (exit 0 = up to date, 1 = update available)
kumo --versionPrint the version and channel (stable / nightly / dev)

Every subcommand has its own --help.

Machine API (--json)

Add --json to any control command for machine-readable output on stdout. This output, the error codes and the exit codes are a stable contract covered by golden tests (app/kumo/tests/cli_json.rs). Fields may be added in a minor release; renaming or removing a field, changing its type, or changing an error code is a breaking change (see the compatibility policy).

  • Success: mutations reply { "ok": true, "message": "..." }; lists and reads reply with their typed fields (sessions, tabs, agents, worktrees, worktree, report, text, matched, and so on).
  • Failure: { "ok": false, "error": { "code": "...", "message": "..." } }. Match on code; message is for humans and may change.
  • Exit codes: 0 on success, 1 on any failure (the JSON error is still printed). kumo update --check alone uses 1 for "update available".
Error codeMeaning
session_not_foundThe session (-s, or a composite's sN) does not exist
pane_not_foundThe pane id, composite position or agent alias does not exist
tab_not_foundThe tab id, t<N> position or tab name does not exist
not_an_agentThe command needs an agent pane, but the pane runs a plain shell
invalid_argumentA value was rejected (empty name, a tab name that reads as a tab selector, unknown agent kind, ambiguous alias, …)
timeoutA wait (agent wait, pane wait-output, agent start) ran out of time
agent_blockedagent wait/agent prompt found the agent blocked on input
agent_not_readyagent start / worktree create --agent: the agent was blocked during startup
agent_replacedThe pane's process changed while waiting for it
agent_start_failedThe agent could not be launched in the pane
bad_regexpane wait-output --regex got an invalid pattern
worktree_list_failed / worktree_current_failedGit could not list the session's worktrees
unsupportedThe running daemon does not know this command (older daemon)
errorAnything else, including command-line usage errors and a missing daemon

Pane addressing

PANE is a stable numeric pane id, an agent alias (kumo agent rename), or a composite position (1-based indexes, the session may be a name): s1:t2:p3 · kumo:t2:p1 · t2:p1 (session from -s). Composites are resolved against the live session list; the daemon always gets the canonical id. Discover ids with kumo pane list and kumo agent status.

For waits, prompts, reads and recipes, see the Orchestration guide.

Examples

kumo new ~/proyecto        # fresh session in ~/proyecto
kumo daemon ~/proyecto     # headless daemon in the foreground
kumo agent status          # which agents run, and in which pane
kumo agent explain 42      # why pane 42 reads the status it does
kumo agent explain s1:t2:p1 # same, by composite position
kumo pane list -s myproj   # every pane id + s1:t2:p3 position

During development: cargo run -p kumo or make run.

On this page