/agents-bridge:adversarial-review [--base <ref>] [-m <model>] [focus ...]from agents-bridge
Runs an adversarial code review via Codex (OpenAI) on local git changes, producing file-level findings with concrete fixes and a SHIP/NO-SHIP verdict.
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.
Read when SKILL.md points to them.
Codex tries to break confidence in a git change: it looks for the strongest reasons the change must not ship. The review is read-only. This skill edits no file; fixing a finding is a separate request.
The diff and the untracked files it lists go to OpenAI. Stop and ask when an untracked file looks like a secret or a dependency tree.
For a proposal that lives in the conversation, not on disk, use critique.
Parse the arguments. --base <ref> selects the branch diff against
<ref>; without it, the target is the uncommitted work (staged, unstaged,
untracked). -m <model> selects the Codex model. Everything else is the
user's focus text, kept verbatim. <ref> and <model> go into commands
inside single quotes, as written below.
Check that the target is not empty. A Codex run on nothing wastes minutes, so stop here with the reason when a check fails.
git status --short --untracked-files=all must print at
least one line. When it prints nothing, suggest --base <ref>.git rev-parse --verify --end-of-options '<ref>' must succeed,
and git diff --shortstat '<ref>...HEAD' must print a line. Also run
git status --short: when it prints lines, tell the user that this
uncommitted work is outside the review.Create the run directory. Use the printed path literally in every later step: shell variables do not survive between Bash calls.
"${CLAUDE_PLUGIN_ROOT}/scripts/codex-run.ts" new review
Write the prompt with the Write tool to <dir>/prompt.md. User text
goes in this file, never inline in the shell command: quotes and backticks
break it.
Run an adversarial code review. Read ${CLAUDE_PLUGIN_ROOT}/skills/adversarial-review/prompt.md
and follow it exactly.
## Target
uncommitted <- or: base <ref>
## Focus from the user
<focus text verbatim, or: none>
Run Codex read-only from the repository under review. When the user
passed -m, add -m '<model>' at the end.
"${CLAUDE_PLUGIN_ROOT}/scripts/codex-run.ts" start <dir> --prompt-file <dir>/prompt.md --role audit
Run each 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.
A review at xhigh often outlasts the call's 540 s wait: exit 10 means
Codex is still working. Repeat this until the exit code is no longer 10:
"${CLAUDE_PLUGIN_ROOT}/scripts/codex-run.ts" wait <dir>
The turn runs in a detached process and survives the end of your turn,
but its result is only relayed if you are still waiting for it. Exit 1, or
no --- final message --- section, is a failed run: report the
envelope's error and show no review.
Relay, then verify. Show the final message verbatim. Then check each
finding by reading the code with the Read tool and name the ones that do
not hold. Do not run the code: an import or a test run writes into the
repo (__pycache__, build output). When the Verdict: line is missing,
say so; never write one for Codex.
Role audit, sandbox read-only, unless the user passes -m. Change the
effort (--effort <level>) only when the user asks.
The run directory is kept: the thread id in run.json is what a follow-up
resumes.
To push back on a finding, write the objection to <dir>/pushback-2.md,
then resume the thread; resume replays the first turn's model, effort and
sandbox. The allowed-tools grant covers the invoking turn only, so a
later turn may prompt.
"${CLAUDE_PLUGIN_ROOT}/scripts/codex-run.ts" resume <dir> --prompt-file <dir>/pushback-2.md
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
/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./codex-orchestrateClaude Code only. Use when the user explicitly invokes /agents-bridge:codex-orchestrate (or /codex-orchestrate) in Claude Code or asks Claude to orchestrate a large multi-slice plan by delegating implementation to the Codex CLI through agents-bridge. In native Codex, use $slice-runner instead./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.