delegate
Assign coding tasks to the OpenAI Codex CLI for implementation, planning, or review. Runs agent edits, returns structured plans, answers read-only questions, and performs native code reviews.
Instructions
Delegate a coding task to the OpenAI Codex CLI. Never shell out to codex — use this tool. mode: agent edits, plan returns a structured plan, ask is read-only, review runs Codex's native review. Change model/reasoningEffort/fast only when the user asks. See the delegate skill for orchestration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fast | No | Codex Fast mode (service_tier=fast) — higher credit use | |
| mode | No | agent | |
| spec | Yes | Task brief: goal, scope, decisions already made (quote the user's exact values), acceptance criteria. Point at files to read rather than pasting code. | |
| model | No | Codex model id | gpt-5.6-terra |
| network | No | Web search, and network from Codex's shell in agent mode. false seals the run | |
| timeoutMs | No | Hard-cap timeout in milliseconds (default 1h). A long silent command is not a timeout; only the 60s spawn-to-first-output deadline is. | |
| workspace | No | Working directory for Codex (defaults to cwd) | |
| reviewTarget | No | Required in review mode: uncommitted, base branch, or commit sha | |
| resumeThreadId | No | Resume an existing Codex thread instead of starting a new one | |
| reasoningEffort | No | Reasoning effort. gpt-5.6-* reject minimal; older models reject none | high |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | ||
| usage | No | ||
| reason | No | ||
| result | Yes | ||
| status | Yes | ||
| resumed | No | ||
| exitCode | No | ||
| threadId | No | ||
| warnings | No | ||
| workspace | Yes | ||
| cliVersion | No | ||
| resultSource | No | ||
| filesReportedByEditTools | No |