Adversarial Review
Review triad plugin for Claude Code: prompt optimization, adversarial red-team review, plan validation, and intelligent orchestration.
Install: claude plugin install adversarial-review@adversarial-review
Works with Claude Code · 11 GitHub stars
Install
claude plugin install adversarial-review@adversarial-reviewInstall command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →adversarial-review
v0.9.9: Cross-host adversarial review for coding workflows. Works in Claude Code, Codex, Pi, and Grok from the same source: detects which agent host you're running in and routes the heavy critique to the OTHER agent.
Critique discipline (v0.8.1): break confidence rather than validate; expensive attack surfaces first; material-only findings; mandatory simplicity counterfactuals; steerable focus; terse ship/no-ship summary. Lessons adapted from OpenAI Codex Companion and Matt Pocock's engineering skills.
Routing uses three tiers: T1 Claude and Codex review each other, T2 is the
Pi chain (opencode-go DeepSeek V4.1 Flash, GLM 5.3, then Grok 4.7), and T3 is
the Gemini Antigravity ladder as last resort. Reviewers get read-only tools.
On host Claude, Codex-authored work is reviewed by the Claude main loop itself.
Outside host Claude the Codex reviewer defaults to GPT-6 Astra medium; the
architect selects high only for auth, sensitive data, migrations, concurrency,
or changes spanning multiple modules. The Gemini ladder is gemini-3.8-flash-high,
gemini-3.7-flash-high, then gemini-3.1-pro-high.
Simplicity counterfactual
Every plan and code review now asks whether the same required behavior and safety can be delivered with fewer concepts, layers, seams, entry points, or configuration surfaces. It checks YAGNI, pass-through layers, hypothetical adapters, duplicate ownership, and missed reuse of existing in-repo modules.
Effect is conditional, not a framework preference: when the repository already has a canonical Effect implementation for the concern, the reviewer challenges a parallel implementation. It does not recommend introducing Effect merely to reduce line count or enforce framework consistency. Fewer lines are a clue, never the verdict.
The principle
The partner reviews, never the host.
Two models examining the same artifact from different angles catch more issues than either alone. Each has different training biases, blind spots, and reasoning patterns. Disagreements between the two surface the highest-value findings - the ones a single reviewer would miss.
This plugin enforces that principle automatically:
- Running in Claude Code routes by author: Claude-authored work (default) uses Astra high via Pi first; Codex-authored work is reviewed inline by the Claude main loop, and the wrapper only adds T2/T3 opinions, never Codex.
- Running in Codex with a Codex, user, or unknown author uses
claude -pfirst; Claude, Pi, or Grok authors use Codex Astra first. Then T2, then T3. - Running in Grok uses Codex Astra, then Gemini.
- Codex Astra effort is medium by default. Set
ADVERSARIAL_REVIEW_CODEX_EFFORT=highonly for auth, sensitive data, migrations, concurrency, or changes spanning multiple modules. - Antigravity is a one-shot review call with
-p,--sandbox, and--mode plan. - Everything unavailable enters degraded mode with an explicit banner.
How it works
Similar plugs
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies
Bash is all you need - A nano claude code, like 「agent harness」, built from 0 to 1
Documented system prompts from Anthropic - Claude Fable 5.1, Opus 5.5, Claude Design, Claude Code. OpenAI - ChatGPT GPT-6-Astra, Codex. Google - Gemini 3.8 Flash, 3.1 Pro…
Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build, Muse Code, Devin as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini…