General-purpose orchestration for Codex. Uses update_plan plus background PTY terminals to run parallel codex exec workers.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install codex-orchestration或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install codex-orchestration⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/codex-orchestration/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: codex-orchestration description: General-purpose orchestration for Codex. Uses update_plan plus background PTY terminals to run parallel codex exec workers. ---
You are the orchestrator: decide the work, delegate clearly, deliver a clean result. Workers do the legwork; you own judgement.
This guide is steering, not bureaucracy. Use common sense. If something is simple, just do it.
exec_command and write_stdin.A worker prompt begins with CONTEXT: WORKER.
update_planUse update_plan when any of these apply:
Keep it light:
in_progress.codex exec sessionsA sub-agent is a background terminal running codex exec with a focused worker prompt.
Use parallel workers for:
Avoid parallel workers that edit the same artefact. Default rule: many readers, one writer.
Use PTY sessions to run work without blocking the main thread.
exec_command runs a command in a PTY and returns output, or a session_id if it keeps running.session_id, use write_stdin to poll output or interact with the same process.Practical habits:
yield_time_ms so you do not stall.max_output_tokens modest, then poll again.session_id, and move on.Blocking vs non-blocking (recommend non-blocking even if you plan to poll):
Stopping jobs:
write_stdin.Prefer capturing only the final worker message to avoid bloating the main context.
Recommended (simple):
--output-last-message to write the final response to a file, then read it.codex exec --skip-git-repo-check --output-last-message /tmp/w1.txt "CONTEXT: WORKER ..."--skip-git-repo-check.Alternative (structured):
--json and filter for the final agent message.codex exec --json "CONTEXT: WORKER ..." | jq -r 'select(.type=="item.completed" and .item.type=="agent_message") | .item.text'Pick a pattern, then run it. Do not over-engineer.
Use when: you want multiple perspectives on the same thing.
Run 2 to 4 reviewers with different lenses, then merge.
Example lenses (choose what fits):
Deliverable: a single ranked list with duplicates removed and clear recommendations.
Use when: you want a clean funnel. 1) Reviewer produces an issue list ranked by impact. 2) Implementer addresses the top items. 3) Verifier checks the result.
This works for code, documents, and analyses.
Use when: lack of context is the biggest risk. 1) Scout gathers the minimum context. 2) Orchestrator condenses it and chooses the approach. 3) Implementer executes. 4) Verifier sanity-checks.
Use when: work divides cleanly (sections, modules, datasets, figures). Each worker owns a distinct slice; merge for consistency.
Use when: the task is primarily web search and judgement. Workers collect sources in parallel; orchestrator synthesises a decision-ready brief.
Use when: you are choosing direction (outline, methods plan, analysis, UI). Workers propose options; orchestrator selects and refines one.
Most failures come from missing context, not missing formatting instructions.
Use a Context Pack when:
Skip it when:
Academic writing note:
Prepend the Worker preamble to every worker prompt.
CONTEXT: WORKER
ROLE: You are a sub-agent run by the ORCHESTRATOR. Do only the assigned task.
RULES: No extra scope, no other workers.
Your final output will be provided back to the ORCHESTRATOR.
Minimal worker command (example):
codex exec --skip-git-repo-check --output-last-message /tmp/w1.txt "CONTEXT: WORKER
ROLE: You are a sub-agent run by the ORCHESTRATOR. Do only the assigned task.
RULES: No extra scope, no other workers.
Your final output will be provided back to the ORCHESTRATOR.
TASK: <what to do>
SCOPE: read-only"
CONTEXT: WORKER TASK: Review
OUTPUT:
DO NOT:
CONTEXT: WORKER TASK: Find and summarise reliable information on
OUTPUT:
DO NOT:
...
安装 codex-orchestration 后,可以对 AI 说这些话来触发它
Help me get started with codex-orchestration
Explains what codex-orchestration does, walks through the setup, and runs a quick demo based on your current project
Use codex-orchestration to general-purpose orchestration for Codex
Invokes codex-orchestration with the right parameters and returns the result directly in the conversation
What can I do with codex-orchestration in my developer & devops workflow?
Lists the top use cases for codex-orchestration, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/codex-orchestration/ 目录(个人级,所有项目可用),或 .claude/skills/codex-orchestration/(项目级)。重启 AI 客户端后,用 /codex-orchestration 主动调用,或让 AI 根据上下文自动发现并使用。
codex-orchestration 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
codex-orchestration 可免费安装使用。请查阅仓库了解许可证信息。
General-purpose orchestration for Codex. Uses update_plan plus background PTY terminals to run parallel codex exec workers.
codex-orchestration 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using codex-orchestration
Identifies repetitive steps in your workflow and sets up codex-orchestration to handle them automatically