Agent Commands
Top-level commands for managing agent lifecycle — spawning, stopping, listing, and inspecting agents.Agent Lifecycle at a Glance
genie spawn
Spawn a new agent in a tmux pane.
Terminal
engineer, reviewer, fixer, tracer, qa, docs.
Options
| Flag | Description |
|---|---|
--model <model> | Model override (sonnet, opus, codex) |
--provider <provider> | Provider (claude, codex) |
--layout <layout> | Layout mode: mosaic (default) or vertical |
--color <color> | Teammate pane border color |
--plan-mode | Start teammate in plan mode |
--permission-mode <mode> | Permission mode (e.g., acceptEdits) |
--extra-args <args...> | Extra CLI args forwarded to the provider |
--cwd <path> | Working directory for the agent |
--session <session> | Tmux session name to spawn into |
--no-auto-resume | Disable auto-resume on pane death |
genie resume
Resume a stopped agent or all stopped agents.
Terminal
genie kill
Terminate an agent and its tmux pane.
Terminal
genie stop
Gracefully stop an agent (preserves state for resume).
Terminal
genie ls
List all active agents.
Terminal
genie history
View a compressed summary of an agent’s session by parsing provider logs.
Terminal
Options
| Flag | Description |
|---|---|
--full | Full conversation (not compressed) |
--since <n> | Last N user/assistant exchanges |
--last <n> | Last N transcript entries |
--type <role> | Filter by role (user, assistant, tool_call) |
--after <timestamp> | Only entries after ISO timestamp |
--raw | Output raw JSONL entries (no formatting) |
--log-file <path> | Direct path to log file |
--json | JSON output |
--ndjson | Newline-delimited JSON (pipeable to jq) |
genie read
Read an agent’s current transcript or output.
Options
| Flag | Description |
|---|---|
-n, --lines <number> | Number of lines to read |
--from <line> | Start from line number |
--to <line> | End at line number |
--range <range> | Line range (e.g., 10-50) |
--search <text> | Search for text in transcript |
--grep <pattern> | Grep with regex pattern |
-f, --follow | Follow mode — stream new output |
--all | Show full transcript (not truncated) |
-r, --reverse | Show newest entries first |
--json | Output as JSON |