codex-delegate is a Claude-oriented skill for using Codex CLI as an execution specialist for implementation-heavy coding work while keeping planning, review, and acceptance in Claude.
📚 Part of the agentic AI learning roadmap — a 7-stage curated path for building agentic AI, multilingual (zh-TW · zh-CN · English). This skill is referenced in §13 (Multi-LLM Delegation).
This skill is for tasks that are expensive in tokens but cheap in judgment:
- multi-file implementation
- mechanical refactors
- boilerplate generation
- test scaffolding
- large batch edits
It is not meant for architecture, root-cause debugging, security review, or ambiguous product decisions.
- clearer routing boundary between Claude, Codex, and Gemini
- explicit supervisor acceptance gate
- machine-readable wrapper output via
<log>.result.json - regression tests for bash and PowerShell wrappers
- Claude writes a task file describing scope and constraints.
- Claude launches Codex synchronously through the wrapper.
- The wrapper emits sentinel files plus
result.json. - Claude reviews the diff and runs verification before accepting the result.
Wrapper success is not final acceptance. Claude still owns the judgment.
OpenAI ships an official Codex integration for Claude Code,
openai/codex-plugin-cc. It is a
capable, broker-based plugin — and a different design point from this skill.
The two are complementary; the table below is meant to help you pick, not to
rank them.
For a normal Claude Code integration, prefer the official plugin when its
runtime fits your environment. Retain this wrapper as a minimal compatibility
adapter when an existing workflow requires .ai briefs, the legacy
result.json/sentinel contract, a synchronous one-shot process, or the
PowerShell/Bash distribution. Do not add a second broker here. Neither this
wrapper nor its brief template has demonstrated better coding quality or
lower total model cost than the official plugin on matched live tasks.
| Aspect | codex-delegate (this repo) |
openai/codex-plugin-cc |
|---|---|---|
| Form | A single Claude Code skill | A multi-command plugin suite |
| Execution model | Thin synchronous wrapper: run → write result.json → exit |
Persistent broker process with background jobs |
| Job tracking | None by design — one run, one result | /codex:status, /codex:result, /codex:cancel |
| Invocation | Claude invokes the skill; the wrapper script runs Codex | Slash commands (/codex:review, /codex:rescue, …) plus a proactive subagent |
| Review gate | Claude's own acceptance gate (skills/codex-delegate/references/review-checklist.md) |
Optional Stop-hook review gate |
| Platform | bash + PowerShell wrappers, Windows-tested, no Node runtime |
Node.js 18.18+ runtime |
| Delegate routing | Claude supervisor / Codex mechanical execution guidance | Codex-focused |
| Maintainer · License | Wenyu Chiou · MIT | OpenAI · Apache-2.0 |
In short: reach for codex-plugin-cc when you want background async jobs, a
slash-command UX, and an OpenAI-maintained integration. Reach for
codex-delegate when you need a thin, synchronous compatibility adapter with
the existing result contract. The supervisor must still verify scope and
tests; the wrapper is not an acceptance engine. Hosted Windows/Linux fixture
tests verify transport behavior, not native Claude loading or model quality.
codex-delegate also borrows from the official plugin: the prompt-engineering
reference (skills/codex-delegate/references/codex-prompt-blocks.md) is adapted
from its gpt-5-4-prompting skill (Apache-2.0).
codex-delegate/
├── .claude-plugin/plugin.json
├── README.md
├── README_zh-TW.md
├── scripts/ # canonical wrappers for repository consumers
│ ├── run_codex.sh
│ └── run_codex.ps1
├── skills/codex-delegate/
│ ├── SKILL.md
│ ├── scripts/ # byte-identical, self-contained skill mirrors
│ └── references/
└── tests/
python -m pytest -qCurrent wrapper tests cover:
- result contracts, quota/error classification, stdin closure, and changed-file snapshots
- caller-relative/repo-relative brief resolution when Codex uses a different working root
- canonical/packaged wrapper parity and isolated portable-skill execution
--model/--effort/--service-tierpass-through only when given, including theCODEX_DELEGATE_EFFORTandCODEX_DELEGATE_SERVICE_TIERdefaults and invalid-value refusal- PowerShell parity (runs with pwsh or Windows PowerShell when available)
1. Install the skill via the ai-research-skills Claude Code marketplace:
claude plugin marketplace add WenyuChiou/ai-research-skills
claude plugin install codex-delegate@ai-research-skillsFor a marketplace plugin, invoke bash "${CLAUDE_PLUGIN_ROOT}/scripts/run_codex.sh"
from the loaded skill; the host resolves the plugin's versioned installation path.
For direct portable-skill installations, use <skill-root>/scripts/run_codex.sh.
Do not assume marketplace plugins live in ~/.claude/skills/.
Current stable manifest: 0.1.5, collecting the previously merged patches (0.1.1:
compatibility fixes; 0.1.2: no built-in default model; 0.1.3: optional
--effort / -Effort and CODEX_DELEGATE_EFFORT; 0.1.4: optional
--service-tier / -ServiceTier and CODEX_DELEGATE_SERVICE_TIER). Version 0.1.5
adds a bounded, once-per-test-session PowerShell startup/module probe; individual
wrapper deadlines and runtime behavior are unchanged. See runtime/package compatibility
for the observed CLI version, current primary docs, and verification limits.
Default scope is user (this OS account, all projects). Add
--scope project to install only for the current project.
2. Make sure Codex CLI is on $PATH:
npm install -g @openai/codex
codex --versionMIT