adversarial-review

Multi-model, adversarial code review for Claude Code and Codex.
Free mechanical checks run first. Then two agents — The Optimizer and The
Skeptic — review your code independently and challenge each other's findings.
Only findings that survive the challenge at high confidence get auto-fixed, and a
bounded verification loop catches regressions from the fixes themselves. Add
OpenAI Codex as a cross-vendor reviewer and agreement across providers becomes
your strongest signal.
- Adversarial by design — every finding must survive a second, skeptical
pass backed by command output, not reasoning alone.
- Cost-gated — mechanical checks are free and run first; expensive LLM review
scales to the size and risk of the diff.
- Cross-vendor — Claude (Sonnet + Opus) plus optional OpenAI Codex, merged
into one synthesis. Learn more →
Install
Claude Code
/plugin marketplace add ng/adversarial-review
/plugin install adversarial-review
Re-run both commands to update.
Codex
Codex support ships through .codex-plugin/plugin.json and the
$adversarial-review skill. Requires Codex CLI v0.142.0 or newer — earlier
versions reject the repo-root marketplace path with local plugin source path must not be empty (openai/codex#17066,
fixed in #28771).
codex plugin marketplace add ng/adversarial-review
codex plugin add adversarial-review@adversarial-review
Usage
Claude can invoke the review skill when you ask in natural language, for example,
"Review this branch" or "Run an adversarial review of PR 405." You can also invoke
it directly with the commands below. Reviews auto-fix consensus issues by default;
ask for a review without changes or pass --no-fix for report-only mode.
Claude Code
/adversarial-review:run # auto-fix (default), auto-detect PR
/adversarial-review:run 405 # auto-fix, specific PR
/adversarial-review:run --no-fix # review only, no code modifications
/adversarial-review:run --no-fix 405 # review only, specific PR
/adversarial-review:run --paths "src/api/**,src/auth/**" # review only branch changes under these paths
/adversarial-review:run --with-codex # add OpenAI Codex as a cross-vendor sidecar reviewer
/adversarial-review:run --codex-lane # run the full Codex-native review lane alongside Claude
Codex
$adversarial-review # auto-fix (default), auto-detect PR
$adversarial-review 405 # auto-fix, specific PR
$adversarial-review --no-fix # review only, no code modifications
$adversarial-review --paths "src/api/**,src/auth/**" # review only branch changes under these paths
$adversarial-review --compare-claude # compare Codex findings with Claude artifacts
Flags combine — see Configuration to set defaults once
instead of passing them every run, and Cross-provider review
for the Codex modes.
How it works