delegate_task
Delegate coding tasks like bug fixes, refactoring, and test implementation to a local autonomous CLI agent. Preserves conversation context across turns for efficient multi-step work.
Instructions
Delegate a coding task, bug fix, architectural refactor, or test implementation to a local autonomous CLI coding agent (Claude Code, Antigravity, Codex, Cursor). Automatically preserves conversation context across turns within this connection (zero-token overhead).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Execution mode: - "edit": Autonomous pair programming with code editing & terminal execution. - "plan": Non-destructive architectural design without modifying files. - "explain": Read-only codebase inquiry and diagnostics. | edit |
| agent | No | Target CLI agent backend. "auto" selects the best installed agent (prioritizes Claude Code and Antigravity). | auto |
| model | No | Explicit model selection: - Claude: "haiku" (default, fast/economical), "sonnet", "opus" - Antigravity: "gemini-3.8-flash-low" (default), "gemini-3.8-flash-high", "gemini-3.1-pro" - Codex: "gpt-4o-mini", "gpt-4o", "o3-mini" | |
| prompt | Yes | Task instruction, bug description, or follow-up prompt for the coding agent. | |
| one_off | No | If true, executes as a stateless one-off task without binding to or modifying the connection active session. | |
| add_dirs | No | Additional directories to mount into the agent workspace. | |
| thinking | No | Thinking effort level: - Claude: "low", "medium", "high", "xhigh", "max" - Antigravity: "low", "high" | |
| session_id | No | Optional session ID or friendly name (e.g., "auth-worker", "refactor"). If omitted, automatically continues the active conversation for this agent on this connection. Pass "new" to start a fresh conversation. | |
| include_diff | No | Automatically include a git diff summary of working directory modifications. | |
| workspace_dir | No | Target workspace directory. Defaults to the current working directory. | |
| timeout_seconds | No | Execution timeout in seconds (default: 600s / 10m). |