codex-orchestrate
Orchestrate a fleet of parallel `codex exec` workers with you as supervisor — one per isolated git worktree, dispatched headless, each verified INDEPENDENTLY, then PR/merge. The manual "codex-ultracode" fan-out pattern with the hard gotchas baked in (stdin blocking, background tracking, don't-trust-self-reports, writer isolation). Triggers: orchestrate codex, codex workers/fleet, spawn codex, delegate to codex in parallel, manual ultracode, 开 codex 小弟, 派 codex worker — NOT for a single cross-vendor opinion (second-opinion-codex agent) or web-UI worker decomposition (/orchestrate).
- License 许可
- MIT
- 所属仓库
- shenxingy/Clade
- 最近更新
- 2026-11-10
- Stars
- ★ 10
- Forks
- 6
01 前言 Front Matter
- name
- codex-orchestrate
- description
- Orchestrate a fleet of parallel `codex exec` workers with you as supervisor — one per isolated git worktree, dispatched headless, each verified INDEPENDENTLY, then PR/merge. The manual "codex-ultracode" fan-out pattern with the hard gotchas baked in (stdin blocking, background tracking, don't-trust-self-reports, writer isolation). Triggers: orchestrate codex, codex workers/fleet, spawn codex, delegate to codex in parallel, manual ultracode, 开 codex 小弟, 派 codex worker — NOT for a single cross-vendor opinion (second-opinion-codex agent) or web-UI worker decomposition (/orchestrate).
02 资源文件 1
- 参考文档prompt.md14.3 KB
03 SKILL.md 正文
Codex Orchestrate — you supervise a fleet of codex exec workers
Use when the user wants Codex to actually DO work at scale (implement N gaps, research N sources, review N dimensions) and you drive it — the manual equivalent of Codex's native ultra/multi_agent, but with no slot cap and with YOUR verification gate on every result.
Read prompt.md for the full loop, the exact dispatch command, and the verification checklist. The four rules that make it work (each learned from a real failure):
< /dev/nullon everycodex exec— it blocks on stdin EOF otherwise, even with the prompt as an arg, and hangs until timeout.- One isolated git worktree per worker off the latest main — parallel writers to shared build/test state race; core-engine changes merge sequentially so each builds on the last.
- Verify independently — never trust the worker's self-report. Re-run the tests yourself (a worker reported "996 passed"; the real number was 995 + 1 real failure). For core-engine changes run the FULL suite, not just the new test.
- Dispatch via a tracked background call (
run_in_background), not&inside another command, or you lose the completion signal.
One more, observed on codex-cli 0.167.0 rather than learned from a failure: codex exec resume works in the directory you run it from, not the session's. Put -C <worktree> before resume, or the follow-up edits wherever you stand. To cancel, signal the session the dispatch records in <pgid-file>. prompt.md § Steer, cancel, follow up has both.
04 同仓库更多 Skills
worktree
Create or inspect runtime-adaptive isolated Git workspaces with explicit ownership and delivery routing
web-search
Route online research and URL reading to native tools or TinyFish MCP/API; prepare targeted requests, handle progress and failures, and check returned evidence. Applies to web search, fetching, and bulk collection; excludes repository/file search.
verify
Verify project behavior anchors — compilation, tests, and interaction checks after autonomous runs. NOT the Codex built-in /verify (which runs the app to observe a single change working) — this one walks the AGENTS.md "Features (Behavior Anchors)" list.
tasks
Coordinate dependency-aware project tasks across independent Codex, Codex, Kimi and human sessions using Beads. Use for shared plans, claiming work, task handoffs, acceptance and agent monitoring snapshots.
sync
End-of-session documentation sync — updates TODO.md and PROGRESS.md only (run /commit after to commit everything)
status
Show a provider-neutral, freshness-aware snapshot of active Agent work, Git delivery, execution identity, and usage limits. Use for “what's going on right now”, what is running, progress updates, active runtime/provider/model, or stuck-work checks.