/codex:delegate-codex [task] [--model <m>] [--effort <e>]from codex
Hand a write task to OpenAI Codex and let it edit the working tree — a cross-model "go implement this" to a different provider's model. User-invoked only. Use when you want Codex (not Claude) to make the change — "delegate this to Codex", "have Codex implement X", "let Codex fix this in the repo". With a task it runs immediately in a workspace-write sandbox; with no task it suggests 2–4 context-derived tasks to choose from. One foreground run — it surfaces Codex's output and the resulting git diff (attributing Codex's edits vs any pre-existing changes) and leaves the edits uncommitted and unstaged. It does NOT commit, stage, branch, retry, or auto-fix; it does NOT apply edits as Claude when Codex is unavailable (it reports and stops, fail-open); and it is NOT for read-only review/Q&A (use review-codex / ask-codex). Needs an OpenAI-authenticated Codex CLI.
Ships in codex. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Delegate a write task to OpenAI Codex: Codex (not Claude) edits the working tree in a
workspace-write sandbox, and you surface its output plus the resulting git diff, then
stop. User-invoked only. This skill never runs without a task and never makes the
edits itself as Claude.
Codex availability (probed at load):
!python3 "${CLAUDE_PLUGIN_ROOT}/scripts/codex_bridge.py" --probe
!python3 "${CLAUDE_PLUGIN_ROOT}/scripts/codex_bridge.py" --resolve-defaults
Arguments: $ARGUMENTS
First, read ${CLAUDE_PLUGIN_ROOT}/references/shared-behavior.md — it governs untrusted-output
handling, prompt composition, the --model/--effort override picker, the exact bridge call,
exit-code branching, fail-open, verbatim+delimited output, and the session id. The rules below
are delegate-specific.
Proceed only when the probe above shows CODEX: YES (only the CODEX: YES verdict matters;
whatever text follows it is an informational reason that may change — ignore it). Any other line
— a CODEX: NO … line, a blank line, or an error / denied result — means Codex is unavailable:
tell the user (quote the line) and stop. No write is attempted and you do not make the
change as Claude. A denied or failed probe is never a crash; it just means Codex couldn't be
reached.
--model/--effort.
Resolve overrides per the shared rules.AskUserQuestion offering 2–4 suggested tasks derived
from the conversation context (the built-in "Other" covers a freeform task — do not add
a manual one). If context is sparse, ask the user to type a task rather than
inventing one — especially important here, since this skill writes to the tree.git status --porcelain — so you can attribute
Codex's edits afterward (see references/delegate.md). If this is not a git repo, note that
no diff/attribution will be possible and continue (the bridge still runs).--write mode (workspace-write) — see references/delegate.md for the
task prompt template. Exactly one foreground run: no job store, no retries, no auto-fix
loop, no post-processing beyond surfacing the output and the diff.git diff,
attributing Codex's changes vs any pre-existing ones using your pre-run snapshot (or stating
plainly that you cannot cleanly attribute them). If there is no diff, say no workspace
change resulted — and still print the session id. If there is no git repo, report that no
diff can be shown.git diff so any partial changes are visible — do not roll back,
and never finish the task yourself as Claude. Report the one diagnostic line.git add, never commit, never branch.What SKILL.md sets; muted values are Claude Code's defaults
opusmediumOther plugins' skills for the same job
3 skills in this plugin
/ask-codexAsk OpenAI Codex a free-form question for a cross-model second opinion — an explanation, a plan/approach review, a repo question, or a take on a diff, answered by a different provider's model. Use when the user wants Codex's view — "ask Codex how X works", "what would Codex do here", "get Codex's opinion on this approach", "ask Codex about this repo". With a question it runs immediately; with no question it suggests 2–4 context-derived questions to choose from. Read-only — Codex inspects the repo but changes nothing. Surfaces Codex's answer verbatim, then stops. It does NOT edit files or run a write task (that is delegate-codex), and it does NOT answer as Claude when Codex is unavailable (it reports and stops, fail-open). Needs an OpenAI-authenticated Codex CLI./review-codexHand the current diff or a named target to OpenAI Codex for one read-only, cross-model code review that reports only blocking (P0) and must-fix (P1) findings, each with evidence or marked unproven. Use when the user wants Codex to review their work — "have Codex review this", "get Codex's take on the diff", "cross-model review of my changes", "what does Codex think of this code" — or to recheck fixed findings ("recheck these with Codex", `--recheck <findings file>`), which runs in a fresh Codex session that sees the evidence, not the author's argument. With no argument it reviews the uncommitted working tree. Surfaces the findings verbatim, then stops. It does NOT fix anything, does NOT loop review rounds, and does NOT run Claude and Codex side by side. When Codex is unavailable it runs the same review once in a fresh read-only Claude subagent and labels it as the fallback.npx claudepluginhub zakattack9/agentic-coding --plugin codex