Delegate Implementation To Claude Code
delegate_to_claudeRun implementation tasks in Claude Code CLI within a specified workspace, then return output, git status, diff stats, changed files, and stderr for review.
Instructions
Run Claude Code CLI in the explicit workspacePath so Claude implements changes while Codex receives Claude output, git status, diff stat, changed files, stderr, and raw output tail for review.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Implementation task to pass to Claude Code. | |
| timeoutMs | No | Claude Code execution timeout in milliseconds. Defaults to 1200000. | |
| allowDirty | No | When false, refuse to run Claude if git status --short is non-empty. | |
| workspacePath | Yes | Absolute or resolvable path to the target Git repository. Required; the MCP server directory is never used as a default workspace. | |
| resumeSessionId | No | Optional Claude Code session id passed with --resume. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| git | Yes | ||
| error | No | ||
| claude | Yes | ||
| gitAvailable | No | ||
| workspacePath | Yes | ||
| claudeAvailable | No |