delegate
Executes a complete task autonomously by delegating to a headless Claude agent with full tool access for refactoring, multi-file implementation, and test fixing.
Instructions
Delegate a complete task to Claude Code running headless (claude -p). Claude has full tool access (read, edit, shell, web) in the given cwd and runs its own agentic loop. Use for heavy autonomous work: refactors, multi-file implementation, running and fixing tests.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The complete task prompt for Claude. | |
| cwd | No | Absolute path to the project root. Defaults to the server's cwd. | |
| model | No | Claude model alias or full name (e.g. 'opus', 'sonnet', 'haiku'). Omit to use the default. | |
| effort | No | Reasoning effort: 'low' | 'medium' | 'high'. Higher = deeper, slower, costlier. |