dispatch_task
Deploy an autonomous Claude Code agent to handle coding tasks in a given project directory, running in the background for parallel delegation.
Instructions
Deploy a Claude Code agent to work on a task in a specific project directory. The agent runs autonomously with full Claude Code capabilities including sub-agent spawning, file editing, bash execution, etc. Use this to delegate coding tasks to background agents. IMPORTANT: After dispatching, return to the conversation immediately. Do NOT call check_tasks or get_task_output unless the user explicitly asks for a status update.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'solo' (default) runs a single agent. 'team' instructs the lead agent to decompose the task and spawn specialized sub-agents that work in parallel, then synthesize results. | |
| task | Yes | Clear description of the task for the Claude Code agent to perform | |
| model | No | Optional model override (e.g. 'opus', 'sonnet'). Defaults to Claude Code's configured model. | |
| permission_mode | No | Permission mode for the agent. 'acceptEdits' auto-approves file edits. 'bypassPermissions' skips all checks (use carefully). | |
| working_directory | Yes | Absolute path to the project directory (e.g. /home/robbhimself/GarbageFire) |