Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ccplugins/dispatching-to-codex
Use when the user explicitly asks to hand a task to Codex — "use codex", "delegate this", "send it to codex", "交给codex", "派给codex", or the /delegate command. Runs the full dispatch lifecycle with frozen acceptance criteria and a binding independent judge. NEVER auto-dispatch — delegation happens only on the user's word. If a task looks Codex-shaped (bulk mechanical edits, wide read-and-report analysis, test scaffolding), you may offer the option in ONE line; if the user doesn't take it, drop it.
Passed 9 of 16 test cases with the skill, and 3 of 16 without it.
and 11 more in the full report
10 fixed2 passed either way8 still failing2 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 10 test cases the skill fixed. Same model, same prompt, with and without the skill.
We need to dispatch a task to Codex to refactor error handling in `src/net/http.ts`. The current working branch is `main`. What git operation must occur before writing acceptance criteria or invoking Codex?
| Checked | Without skill | With skill |
|---|---|---|
| Switches to a new branch matching codex/<slug> | Missed | Passed |
| Ensures the main branch is not modified directly | Passed | Passed |
The instructions your model reads when the skill loads.
Claude is the brain; Codex is the hands. You plan, freeze the bar, and judge. Codex executes on its own quota, in its own process, so your context stays small and your tokens go to judgment — not grunt work.
Dispatch overhead is real: branch + freeze + judge ≈ minutes of wall-clock and some of both quotas. If you could finish the task faster than the overhead, tell the user plainly: "This is faster for me to do directly — still want Codex on it?" Then respect their answer.
Good dispatches: bulk/repetitive edits, migrations, mechanical test-writing against a clear spec, wide "read everything, report back" analysis, output-heavy runs. Bad dispatches: design work, subtle debugging, anything ambiguous, tiny tasks.
${CLAUDE_SKILL_DIR}/preflight.sh. Not ready → one-line explanation (e.g. "run codex login once and I can dispatch"), then do the work yourself. Never nag twice in a session.Analysis-only shortcut: if the dispatch edits NO files (wide read-and-report, investigation), skip ISOLATE/FREEZE/JUDGE — run codex exec --sandbox read-only and review the report yourself. The gate exists for merges, not for reading. Everything below is the write path.
git switch -c codex/<slug> — throwaway branch; main is never touched..codex/ACCEPTANCE.md: one-line GOAL + the exact commands that must pass (exit codes, not vibes). Commit it BEFORE Codex exists. See skills/writing-codex-briefs for the format.codex exec -m gpt-5.5 -c model_reasoning_effort="xhigh" --sandbox workspace-write "<brief>" 2>/dev/null
Model/effort overrides, in priority order: PRAETOR_MODEL / PRAETOR_EFFORT env vars (use verbatim if set) → preflight reported config=custom (active relay provider: DROP the -m/-c flags, keep --sandbox, respect their config) → stock default above. Never danger-full-access. Always a hard timeout. Big output → -o <file>, never into your context.agents/codex-judge.md + repo path + branch name. Codex's work is UNCOMMITTED — the judge reviews the working tree (git diff HEAD), runs every frozen check, checks the bar wasn't moved. Returns PASS or FAIL + evidence.codex exec resume --last "<fix>" (≤2 retries) or take over loudly..codex/ledger.jsonl: {task, model, verdict_history, wall_seconds, dispatched_at}.Kill switch: a STOP file in the repo root halts all dispatching — check before every dispatch.
| Excuse | Reality |
|---|---|
| "The diff looks obviously fine, skip the judge" | Obvious diffs are where silent regressions hide. Law 2. |
| "No time to write acceptance criteria" | Then there's no way to know Codex succeeded. Law 1. |
test cases passed, vs 3 / 16 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.