Codex Handoff (OpenClaw Plans, Codex Codex, OpenClaw Judges)
/install codex-handoff-skill
Codex Handoff — Supervisor Loop
Claude Code is the supervisor/judge. Codex CLI is the executor. You orchestrate a loop: send plan to Codex, review results, re-run if incomplete, until the task is comprehensively done.
Announce at start: "Using codex-handoff to orchestrate Codex CLI execution of the plan."
Prerequisites
- Codex CLI must be installed (
codex --version) - A plan must exist (in
docs/plans/,.claude/plans/, or provided inline) - The working directory should be a git repo (for diff-based review)
Quick Start
- Locate the plan (from
docs/plans/,.claude/plans/, or user arguments) - Detect phases — scan for phase headings; if found, execute phase-by-phase
- Build a structured Codex prompt with plan (or phase) + project context + coding standards
- Execute Codex CLI in
--full-automode - Review git diff, run tests, audit completion with a scorecard
- Decide — loop with correction prompt if items remain, or advance to next phase / finalize
- Report final status with completed/remaining items and test results
Reference
| Task | Details |
|---|---|
| Build Codex prompt | prompt-templates.md |
| Review & audit results | review-process.md |
| Handle errors | error-handling.md |
Process
Step 1: LOCATE THE PLAN
Find the plan to execute. Search in order:
- If user provided a task description with the command, use that as context to find the relevant plan
- Check
docs/plans/for the most recent.mdfile (sorted by date prefix) - Check
.claude/plans/for any recent plan files - If no plan found, tell the user: "No plan found. Please create one first using /brainstorming or /writing-plans."
Once found:
- Read the plan file completely
- Present a brief summary to the user
- Ask: "Ready to hand off to Codex CLI?"
- Wait for confirmation before proceeding
Step 1b: DETECT PHASES
After reading the plan, scan for H2 headings matching: ## Phase N:, ## Stage N:, ## Part N:, or numbered sections like ## 1. Backend.
- Phases found — Report: "Detected {N} phases. Will execute sequentially." Use phased flow.
- No phases — Single-pass execution (Steps 2-6 as normal). No changes for simple plans.
--phase N— Optional. Re-run only phase N.
Step 2: BUILD THE CODEX PROMPT
See prompt-templates.md. Use the "Initial Execution Prompt" for single-pass, or "Phase-Scoped Execution Prompt" for phased mode (current phase only + completed phase summaries).
Step 3: EXECUTE CODEX
Parse optional arguments:
--max-iterations N— max loop iterations (default: 5, per-phase in phased mode)--model MODEL— pass to codex as-m MODEL--phase N— execute only this phase (phased mode only)
codex exec --full-auto -s workspace-write [-m MODEL] \x3C /tmp/codex-handoff-{timestamp}.md
Let the command run to completion. Capture stdout and exit code. Report: "Codex iteration {N} complete. Reviewing changes..."
Phased execution flow: For each phase (or single phase if --phase N): build phase-scoped prompt → run Codex → review → correction loop (up to max-iterations) → phase passes: record summary, advance → phase fails at max: ask user to continue or stop.
Step 4: REVIEW THE RESULTS
See review-process.md for the review checklist, scorecard, and decision matrix. In phased mode, the scorecard is scoped to current phase items only.
Step 5: DECIDE — LOOP OR COMPLETE
- All items DONE + tests pass: Move to Step 6 (or next phase).
- Items remain AND iterations \x3C max: Build correction prompt and re-run Codex.
- Max iterations reached: Move to Step 6. In phased mode, ask user to continue or stop.
Step 6: FINAL REPORT
See report format in review-process.md. In phased mode, report per-phase results then aggregate. If items remain, suggest --phase N to retry.
Key Principles
- Never modify code yourself — Your job is to supervise, not code. Codex does the coding.
- Be a strict judge — Don't pass items as "done" unless they genuinely are.
- Correction prompts are specific — Tell Codex exactly what's wrong and what to fix.
- Respect the plan — Don't add or remove plan items. Execute what was planned.
- Keep the user informed — Report status after each iteration and phase transition.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install codex-handoff-skill - 安装完成后,直接呼叫该 Skill 的名称或使用
/codex-handoff-skill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Codex Handoff (OpenClaw Plans, Codex Codex, OpenClaw Judges) 是什么?
Offload finalized coding plans to Codex CLI for automated execution. Use when: user says "hand off to codex", "let codex do it", "offload to codex", runs /co... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 108 次。
如何安装 Codex Handoff (OpenClaw Plans, Codex Codex, OpenClaw Judges)?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install codex-handoff-skill」即可一键安装,无需额外配置。
Codex Handoff (OpenClaw Plans, Codex Codex, OpenClaw Judges) 是免费的吗?
是的,Codex Handoff (OpenClaw Plans, Codex Codex, OpenClaw Judges) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Codex Handoff (OpenClaw Plans, Codex Codex, OpenClaw Judges) 支持哪些平台?
Codex Handoff (OpenClaw Plans, Codex Codex, OpenClaw Judges) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Codex Handoff (OpenClaw Plans, Codex Codex, OpenClaw Judges)?
由 philipbankier(@philipbankier)开发并维护,当前版本 v1.1.1。