Skip to main content

rt agent

rt › agent

Hand a prompt to a coding agent, claude or codex (herdr pane or headless), and keep the receipt

Usage

rt agent <verb> <id> [flags]

Arguments & flags

Flag / ArgTypeDefaultDescription
<verb>textThe agent action to run
<id>textFor resume/show: the handoff id or session uuid
--repotextRepo path (default: the current repo)
--prompttextInitial prompt (required for headless)
--prompt-filetextRead the prompt from a file (mutually exclusive with --prompt)
--surfacetextWhere the agent runs (default herdr)
--providertextWhich CLI to launch (override agent.provider, default claude)
--modeltextOverride agent.<provider>.model
--efforttextOverride agent.<provider>.effort
--yolobooleanBypass permission prompts for this launch (override agent.<provider>.yolo; omitted falls back to the setting, not false)
--no-yolobooleanKeep permission prompts for this launch even when agent.<provider>.yolo is true (omitted falls back to the setting, not false)
--accounttextcswap account, claude only (override agent.claude.account)
--labeltextCaller's display label; used as the herdr tab name
--callertextIdentifies what invoked this handoff
--workspacetextherdr workspace label (default: the repo label)
--tabtextherdr tab label (default: the label or handoff id)
--extra-argstextOpaque extra provider arguments appended to the launch (override agent.<provider>.extraArgs)
--bgbooleanfalseLaunch onto the daemon-owned background herdr server instead of the visible one (herdr surface only; requires the rt daemon)
--jsonbooleanfalseEmit the record as JSON

See code: commands/agent.ts › agent

Examples & notes

rt agent launches a coding agent session and keeps the receipt.

Providers

--provider selects which CLI to launch. The default is claude (Claude Code). codex launches OpenAI Codex CLI instead. Each provider has its own settings namespace (agent.claude.*, agent.codex.*) for model, effort, yolo, account, and extra args.

Permission bypass

--yolo bypasses permission prompts for the launched session. --no-yolo keeps them even when the setting enables yolo. Both override the provider-scoped setting agent.<provider>.yolo. When neither flag is passed, the setting decides.

Background mode

--bg launches the agent onto the daemon-owned background herdr server instead of the visible one. This is useful for agents that don't need a visible terminal.