delegate
Hand off implementation to OpenAI Codex while you keep planning and review. Run agent, plan, ask, or review modes and check status before trusting the result.
Instructions
Delegate a coding task to OpenAI Codex. Never run codex from the shell — use this tool. Check status before trusting result — a run that spawns then fails returns normally. Keep model, reasoningEffort and fast at their defaults unless the user asks. See the delegate skill.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fast | No | Codex Fast mode; higher credit use. | |
| mode | No | agent implements; plan returns a structured plan; ask answers; review runs native review. | agent |
| spec | Yes | Brief with goal, scope, fixed decisions quoted exactly, and acceptance criteria; reference files instead of pasting code. | |
| model | No | Codex model id: gpt-5.6-luna, gpt-5.6-sol, gpt-5.6-terra, gpt-5.5, gpt-5.4, gpt-5.4-mini. | gpt-5.6-luna |
| timeoutMs | No | Whole-run cap in ms (default 1h). Mid-turn silence is allowed; startup has a separate 60s first-output deadline. | |
| webSearch | No | Codex's built-in web search. | |
| workspace | Yes | Codex's working directory; not confinement. Must already exist — never create one for the call. | |
| reviewTarget | No | Required in review; forbidden otherwise: uncommitted, base branch, or commit. | |
| resumeThreadId | No | Thread to continue. Reuse its workspace. Forbidden with review. | |
| reasoningEffort | No | minimal is rejected by every published model; none is accepted though the catalog omits it. | xhigh |