Skip to main content

rt agent

rt › agent

Hand a prompt to a Claude Code agent (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)
--modeltextOverride agent.model
--efforttextOverride agent.effort
--accounttextcswap account (override agent.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 claude arguments appended to the launch (override agent.extraArgs)
--jsonbooleanfalseEmit the record as JSON

See code: commands/agent.ts › agent