Documentation Index
Fetch the complete documentation index at: https://docs.automagik.dev/llms.txt
Use this file to discover all available pages before exploring further.
Agent Commands
Top-level commands for managing agent lifecycle — spawning, stopping, listing, and inspecting agents.To register an agent in the directory before spawning, see
genie agent register.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 (e.g., sonnet, opus) |
--provider <provider> | Provider: claude or codex (default: claude) |
--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 |
--role <role> | Role override (engineer, reviewer, qa, fix, etc.) |
--new-window | Spawn in a new tmux window instead of a pane |
--window <name> | Target a specific tmux window by name |
--team <team> | Team name (default: (genie)) |
--skill <skill> | Skill to load on start |
--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 registered agents with runtime status.
| Option | Description |
|---|---|
--json | Output the agent list as JSON (suitable for piping to jq) |
--source <name> | Filter by executor metadata source (e.g., omni) — useful when your workspace has agents registered from multiple origins |
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 |
genie answer
Answer a question for an agent that is currently blocked at a prompt — picks the menu option, types text into a free-form input, or sends raw keystrokes. Genie inspects the agent’s pane state first; if no question is pending it logs No question pending and exits without acting.
Agent name (or any target the resolver accepts — pane id, session label, etc.).
How to answer. One of:
- Numeric (
1–9) — navigates to that menu option and presses Enter. text:<message>— selects the free-form text option, types<message>, and presses Enter.- Anything else — sent verbatim as keystrokes to the pane.
genie answer only acts when the pane is in a question state. To send a regular instruction to a working agent, use genie send.genie approval
Remote approval queue used by tmux-path agents that need a human (or another agent) to allow or deny a tool call before the provider proceeds. Approvals live in Postgres so any teammate with CLI access can resolve them.
request, resolve, list.
genie approval request
Create an approval request and (optionally) block until it is resolved. Used by agent runtimes when a tool needs out-of-band sign-off.
| Flag | Description |
|---|---|
--tool <name> | Tool name requiring approval (required). |
--input <preview> | Preview text of the tool input shown to the approver (required). |
--agent <name> | Agent requesting the approval (required). |
--wait | Block until the approval is resolved; exits non-zero on deny. |
--timeout <seconds> | Override the workspace permissions.timeout (default 300). On timeout, the workspace permissions.defaultAction decides (default deny). |
Terminal
genie approval resolve
Allow or deny a pending approval by id. The actor label is the value of GENIE_AGENT_NAME if set, otherwise the --by value.
| Flag | Description |
|---|---|
--decision <decision> | allow or deny (required). |
--by <actor> | Display label for the decision maker. Defaults to GENIE_AGENT_NAME or cli. |
Terminal
genie approval list
List pending approvals across the workspace, optionally filtered by agent.
| Flag | Description |
|---|---|
--agent <name> | Only show approvals requested by this agent. |
--json | Emit the raw rows as JSON (suitable for piping to jq). |
Terminal
Workspace defaults for approvals (
permissions.timeout, permissions.defaultAction) are configured in the workspace config — see Configuration.