launch_subagent
Launch a coding CLI subagent in a detached tmux window, specifying prompt, model, working directory, and agent in a single call.
Instructions
Launch a coding-CLI subagent in a detached tmux window.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cli | No | CLI to launch: claude or opencode | claude |
| cwd | No | Working directory for the subagent | |
| task | No | Short human label for the window name | |
| agent | No | Agent argument passed to the CLI | |
| model | No | Model argument passed to the CLI | |
| prompt | No | Task prompt for the subagent | |
| window | No | tmux window name; defaults to task or prompt slug | |
| dry_run | No | Return the generated wrapper without launching | |
| session | No | tmux session name; defaults to basename(cwd) | |
| dangerous | No | Skip permission prompts (--dangerously-skip-permissions / --auto) | |
| extra_args | No | Additional CLI arguments (list preferred) | |
| prompt_file | No | Path to a prompt file (fallback if prompt not provided) | |
| prompt_mode | No | 'inline' feeds the prompt on argv; 'pointer' feeds a bootstrap read-the-file prompt | inline |
| settle_seconds | No | Seconds to wait before capturing initial output |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |