/agents-bridge:codex-orchestratefrom agents-bridge
Orchestrates large multi-slice plans by delegating implementation to Codex CLI through agents-bridge. Claude acts as architect/QA/committer while Codex executes slices with model routing per role.
Ships in agents-bridge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Claude Code only. In native Codex, use $slice-runner.
Claude is architect, QA and committer; Codex is the executor. Claude cuts the plan into sequential slices, imposes the interfaces, starts one Codex run per slice, checks the gates itself, and commits. Codex never commits and never designs: if Claude lets Codex invent an API, N slices produce N styles.
Pick the role when writing the slice's prompt:
| Slice | Role | Why |
|---|---|---|
| Standard code (features, wiring, specified refactor) | coding | Default. |
| Tests, mechanical fixes to pass a gate | bounded | Fastest and cheapest, enough for bounded work |
| Code that needs judgment or rigour, dense tricky points | audit | The highest ceiling |
"${CLAUDE_PLUGIN_ROOT}/scripts/codex-run.ts" models prints the model and
effort behind each role and every effort each model supports. Hard decisions
(architecture, API choices) stay Claude's work — a slice that contains one is a
slicing defect, not a reason to move up a tier.
These models delegate well themselves: on a heavy slice, allow the prompt to hand mechanical sub-parts to a cheaper model, rather than over-slicing on the orchestrator's side.
Context rule: read a slice through the final message (Codex's summary),
git diff --stat and the gates, not through the run's full event stream or its
full diff: those land in your context at every slice and crowd out the plan.
Targeted inspection (grep, partial Read) only when a gate fails or the
slice has a risk named in advance in its prompt.
validate alone for internal wiring; + e2e/visual
for what touches the DOM).TaskCreate one task per slice; TaskUpdate as you go.git diff --stat. Targeted
inspection only on the risks announced in the prompt.Always include, in this order:
@AGENTS.md import).One run per slice, in its own directory. The prompt is written to a file with the Write tool, never inline in the shell. Use the paths the commands print literally: shell variables do not survive between Bash calls.
# 1. Create the slice's run directory; it prints <dir>:
"${CLAUDE_PLUGIN_ROOT}/scripts/codex-run.ts" new orchestrate
# 2. Write <dir>/prompt.md (Write tool — content = the slice's prompt)
# 3. Start it in write mode against the target repository:
"${CLAUDE_PLUGIN_ROOT}/scripts/codex-run.ts" start <dir> --prompt-file <dir>/prompt.md --mode write --role coding -C /path/to/target-repo
codex-run.ts command alone, as written: a ;, && or echo $? added to it asks for permission, and the envelope's status already gives the exit code.codex_version; pass it to every later slice with
--codex-version <x.y.z>. Without it, the bridge may refresh its npm
resolution (24 h TTL) between two slices, and the version moves mid-run.
Corrections inside a slice resume the same run, which keeps its version.--git-write: Codex never commits, so its sandbox keeps the git
directories read-only."${CLAUDE_PLUGIN_ROOT}/scripts/codex-run.ts" wait <dir>, repeated while it
exits 10, or start with --wait 0 and do other work first.--skip-git-repo-check.<dir>/fix-2.md and resume the thread (cheaper than a
fresh context); resume replays the model, effort, mode and cwd:
"${CLAUDE_PLUGIN_ROOT}/scripts/codex-run.ts" resume <dir> --prompt-file <dir>/fix-2.md
blocked. Rule on each item as the codex skill's "Blocked
actions" section says; a slice that needs an action outside its sandbox is
often a slicing defect.| Symptom | Cause | Fix |
|---|---|---|
npm E404 on the tarball, exit 1 with the npm error in error mid-orchestration | upstream latest dist-tag broken, re-resolved over the network | environment failure, not code: the bridge falls back to the last installed version on its own; --codex-version from the first slice avoids any re-resolution mid-run |
| Red gate on files never touched | outside pollution (installed skills, artefacts) | hygiene fix yourself (ignore files), not by Codex |
| Codex announces green, local gate red | different environments | always re-run the gates yourself |
| Slice N depends on missing tooling | cross-cutting prerequisite found late | insert a slice, never fold it in |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub bengous/claude-code-plugins --plugin agents-bridge6 skills in this plugin
/adversarial-reviewAdversarial review by Codex (OpenAI) of local git changes, either the uncommitted work or the current branch against a base ref, with optional focus text. Codex runs read-only; each finding names a file, a line range and a concrete fix, and the review ends with a SHIP or NO-SHIP verdict. Use when the user asks Codex to review, challenge or attack their uncommitted changes, their diff or their branch before shipping./codexInvoke the OpenAI Codex CLI for cross-model collaboration, a second opinion, or delegated work. Use when the user asks Codex to review, debug, explain, plan or implement something, or names a Codex model./critiqueCritical second opinion from Codex (OpenAI) on a proposal Claude just made — confirms what is sound, challenges what is genuinely weak, and suggests a better path with clear reasoning when one exists. Constructive, not contrarian. Use to cross-check a Claude design, refactor, API, or fix with a non-Claude model before acting on it./imagegenGenerate or edit images with the Codex CLI's built-in image_gen tool. Use when the user asks to create, generate or draw an image, icon, logo, favicon, illustration or mockup, or to edit an existing image file — restyle, retouch, upscale, add or remove elements./pair-planningStart a session in pair-planning mode where Claude and Codex (read-only) each draft an independent implementation plan for a task, then cross-review through an open-point ledger until consensus, escalating remaining disagreements to the user. Produces one agreed plan; does not write code. Use at the start of a task to align two frontier models on the approach before implementation.