Codex Delegate
v3.3.0Bring OpenAI Codex into your agent's council for second opinions, plans, edits and code review.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
delegate Delegate coding task to Codex
Ask OpenAI Codex a question or delegate coding work to it. Never run codex from the shell — use this tool. mode ask gives a second opinion; parallel calls with the same brief compare views. Check status before trusting result — a run that spawns then fails returns normally. Set spec, workspace and mode, plus resumeThreadId to resume and reviewTarget in review; leave every other field at its default unless the user asks. If the delegate skill is installed, load it before handing off implementation.
| Parameter | Type | Description |
|---|---|---|
spec * | string | Brief with goal, scope, fixed decisions quoted exactly, and acceptance criteria; reference files instead of pasting code. |
workspace * | string | Codex's working directory; not confinement. Must already exist — never create one for the call. |
fast | boolean | Codex Fast mode; higher credit use. |
mode | string | agent implements; plan returns a structured plan; ask answers; review runs native review. |
model | string | Codex model id. doctor deep:true lists every id. |
reasoningEffort | string | Codex reasoning level. doctor deep:true lists each model's levels. |
resumeThreadId | string | Thread to continue, or the task id of a delegate run as an MCP task. Reuse its workspace. Forbidden with review. |
reviewTarget | Required in review; forbidden otherwise: uncommitted, base branch, or commit. | |
timeoutMs | integer | Whole-run cap in ms (default 6h). Mid-turn silence is allowed; startup has a separate 60s first-output deadline. |
webSearch | boolean | Codex's built-in web search. |
cancel Cancel Codex delegation
Cancel active runs. delegationId selects one (announced in progress before spawn — the only handle if a run wedges at startup; a delegate task's id is its delegationId), threadId all on its thread, neither all. Waits for settlement; if the stop cannot confirm the exit, it still returns and the delegate result warns. Status: cancelled, nothing-active, or not-found (no active run with this ID).
| Parameter | Type | Description |
|---|---|---|
delegationId | string | |
threadId | string |
doctor Diagnose Codex delegation setup
Diagnose CLI, login, workspace (default: server cwd) and recursion; warnings lists what needs action. deep adds the model catalog, the plan and 5h/weekly usage, and CLI help checks. No model calls.
| Parameter | Type | Description |
|---|---|---|
deep | boolean | |
workspace | string |