Adversarial planning and code review workflow between Claude Code and OpenAI Codex CLI. Enables iterative convergence loops where Claude creates plans/code and Codex provides critical review.
Create an implementation plan with adversarial review by Codex. Claude writes the plan, Codex reviews it, and they iterate until convergence.
Run adversarial code review by Codex on current changes. Codex reviews the diff, Claude fixes issues autonomously, iterating until convergence.
A Claude Code plugin that orchestrates adversarial review loops between Claude Code and OpenAI Codex CLI. Claude writes plans and code; Codex tears them apart. They iterate until convergence.
This plugin adds two slash commands to Claude Code:
/adversarial-plan <task description>Pre-implementation planning with adversarial critique.
/adversarial-reviewPost-implementation code review on your current git changes.
codex exec must work)Add the marketplace and install the plugin in Claude Code:
/plugin marketplace add bobby-beckmann/adversarial-review
/plugin install adversarial-review@adversarial-review
The /adversarial-plan and /adversarial-review commands will be available in all projects.
/plugin update adversarial-review@adversarial-review
Codex ends every review with one of:
APPROVED — no blocking issues, work is acceptableNEEDS_REVISION — blocking issues that must be addressedReviews are calibrated to be pragmatic. A simple script doesn't get the same scrutiny as a payment system. Convergence typically happens in 2-3 iterations.
Each run creates a unique session directory under .adversarial-review/ in your project root:
.adversarial-review/
latest -> abcd-efgh-ijkl/ # symlink to most recent session
abcd-efgh-ijkl/
plan_v1.md, plan_v2.md, ... # plan iterations
review_v1.md, review_v2.md, ... # Codex reviews of each plan
plan_final.md # converged final plan
mnop-qrst-uvwx/
diff_for_review.md # code changes sent for review
code_review_v1.md, ... # Codex code review rounds
Previous sessions are preserved. You may want to add .adversarial-review/ to your .gitignore.
commands/ to change from the default 20scripts/codex-review.shMIT
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub bobby-beckmann/adversarial-reviewAutonomous Claude + Codex review loop. Plan a feature with adversarial pushback, or audit code, all in one window.
Command-driven Claude/Codex review workflows for multi-round plan and implementation review.
Give Claude Code a second opinion using OpenAI Codex - automatic plan review via hooks
Symmetric two-AI peer review using OpenAI Codex CLI. Both AIs review independently in a blind pass, then debate per-issue with terminal states until convergence. Catches significantly more issues than single-pass validation.
Automatic code review, adversarial review, and rescue via Codex.
Auto-converge a Claude-written plan via Codex (gpt-5) review iterations until clean ALLOW or max-iter.