codex-dispatch
Skill1 starsChanged 32 days agoMITView on GitHub
Hand coding work to the Codex CLI through a dispatch script (checks, resume rounds, short report) instead of a relay subagent.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- ShehabYahya/codex-dispatchtheir own version, first seen Oct 20, 2026
- yinguangyao/codex-work-skillstheir own version, first seen Oct 20, 2026
- Ansenchen123/claude-codex-workflowtheir own version, first seen Jul 21, 2026
- 100yenadmin/fable-token-saving-skills-orchestratortheir own version, first seen Jul 4, 2026
- fredchu/claude-codex-dispatchtheir own version, first seen Jun 15, 2026
- amkfbant/claude-codex-orchestrationtheir own version, first seen May 15, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- 100yenadmin/fable-token-saving-skills-orchestrator★ 100same name
- amkfbant/claude-codex-orchestration★ 1same name
- Ansenchen123/claude-codex-workflow★ 1same name
- fredchu/claude-codex-dispatch★ 1same name
- ShehabYahya/codex-dispatch★ 0same name
- yinguangyao/codex-work-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- auditSkill
- autonomySkill
- batch-wakeupsSkill
- code-mapSkill
- cycleSkill
- flowSkill
- frictionSkill
- guardrailsSkill
- lean-agentsSkill
- modelsSkill
- planningSkill
- reviewSkill
- rosterSkill
- scanSkill
- scheduleSkill
- slim-instructionsSkill
- speedSkill
- startSkill
- test-loopSkill
- tools-before-tokensSkill
- trim-contextSkill
- undoSkill
- whats-newSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
Not in Claude Code?: Read docs/hosts.md in the plugin root first.
- Distinctive: line 14
If you use OpenAI Codex as well as Claude, send it work through a script that runs it, runs the checks, loops failures back and prints a …
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Hand coding to Codex by script, not by a wrapper agent
Plugin root: ${CLAUDE_PLUGIN_ROOT}. If that is still a ${...} placeholder, use the folder that contains skills/ (this file is skills/<name>/SKILL.md), and substitute that path, in quotes, wherever this skill uses CLAUDE_PLUGIN_ROOT.
Not in Claude Code? Read docs/hosts.md in the plugin root first. Skip steps that only work in Claude Code, and follow its propose-only rule before changing any host configuration.
Inside Codex, this skill does not apply: do the work in the current session.
If you use OpenAI Codex as well as Claude, send it work through a script that runs it, runs the checks, loops failures back and prints a short report. A Claude subagent that only relays Codex output costs a full agent context for nothing.
Changes: installs the bundled scripts and adds a CLAUDE.md section, after you approve.
Autonomy: follow ${CLAUDE_PLUGIN_ROOT}/docs/autonomy.md. The mode comes from the skill argument (propose, safe, auto or yolo), else docs/kaizen/config.json, else agent-kaizen.json in your Claude config dir ($CLAUDE_CONFIG_DIR or ~/.claude), else propose. In safe and auto, read every "wait for my OK" below as: apply it yourself if the mode allows (backup, verify, roll back on failure, ledger row), otherwise list it as a proposal. Hard stops always ask. At most maxChangesPerRun changes (default 3). End with a summary of what was applied, skipped and rolled back.
Task
I use the Codex CLI for coding. Check how work reaches it now (look for subagents that
run codex exec, and the usage audit's spawn counts for them).
Install the bundled toolkit instead of writing one. Run
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/kaizen-link --apply (it links the scripts, or
copies them when the plugin sits in a cache), then confirm codex-dispatch --help and
codex-review --help run. Show me what it will do before you apply it.
codex-dispatch [-m MODEL] [-e EFFORT] [-C DIR] [-k CHECK]... [-p engineer|planner|none] [-r ROUNDS] [-i IMAGE] [-o OUTDIR] [--disable-mcp NAME] [--allow-no-change] [--check-timeout SECONDS] [--codex-timeout SECONDS] [--resume THREAD_ID] BRIEF.md- Prepends a short role preamble to the brief, runs
codex exec --jsonin DIR and captures the thread id. - Runs each
-kcheck outside the Codex sandbox (the sandbox may have no network). - On a failed check, resumes the same thread with the failing output trimmed to the
relevant lines, for at most
-rrounds. - An engineer run must change files. Pass
--allow-no-changewhen none is expected. - A check is killed after
--check-timeoutseconds (default 1800; 0 = no limit). A Codex run is killed after--codex-timeoutseconds (default 0 = no limit). - Resume rounds re-run only the checks that failed, then all checks once; check commands see
DISPATCH_ROUNDandDISPATCH_PASS. Give-kthe narrowest check (affected/filtered tests); full suites run at the project's batch cadence. A repo may route check commands through an executabletools/rewrite_check(argv[1] = the command, stdout = its replacement, empty = unchanged; worktrees fall back to the main checkout's copy).DISPATCH_PASSisinitial,retry, orfinal. - Writes full logs under out/dispatch/
<timestamp>/ and prints a short report ending inSTATUS: DONE,STATUS: CHECKS FAILINGorSTATUS: CODEX FAILED.
- Prepends a short role preamble to the brief, runs
codex-review diff | plan PLAN_FILE | visual --criteria FILE IMG... | look --question TEXT IMG..., each with[-m MODEL]: a read-only review of the diff, of a plan file, or of images. Prints findings and ends withSTATUS: DONEorSTATUS: REVIEW FAILED.- A Codex server error, or a run that ends with no final message, is retried once automatically and is not counted as a failure.
Flags and environment variables are listed in scripts/README.md and by --help.
Then update CLAUDE.md so the main session runs these as background shell commands instead of spawning wrapper agents, and keep any wrapper agents only as a fallback. Add a ledger row.
Bundled resources
Working versions are bundled in ${CLAUDE_PLUGIN_ROOT}/scripts/ (codex-dispatch, codex-run, codex_common.py, codex-review, dispatch-status, preambles/, prompts/; see scripts/README.md). kaizen-link installs them; adapt them rather than writing new ones.
Done when
fewer subagent spawns, short reports that fit in a few lines, and fix rounds that resume the same Codex thread instead of starting from scratch.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

