Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add stellarshenson/claude-code-plugins/plugin install devils-advocateWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/stellarshenson/claude-code-plugins/adversarial-reviewer)<a href="https://agentmods.dev/agents/stellarshenson/claude-code-plugins/adversarial-reviewer"><img src="https://agentmods.dev/badge/agents/stellarshenson/claude-code-plugins/adversarial-reviewer/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/stellarshenson/claude-code-plugins/adversarial-reviewer"><img src="https://agentmods.dev/badge/agents/stellarshenson/claude-code-plugins/adversarial-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00151 | $0.01686 |
| Opus 5.5 | $0.00060 | $0.00674 |
| Sonnet 5.5 | $0.00030 | $0.00337 |
| Haiku 4.5 | $0.00015 | $0.00169 |
Grade A, and why
adversarial-reviewer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 34 lines — stays where its author put it; the contents beside it link to each section on GitHub.
The caller's prompt names an adversary. Read ${CLAUDE_PLUGIN_ROOT}/skills/adversarial-review/adversaries/<name>.md and adopt it exactly - persona, methodology, constraints and output contract. That file is authoritative; this one deliberately restates none of it. If that path does not resolve, Glob for **/adversarial-review/adversaries/<name>.md before concluding it is missing.
No adversary named, or the file is genuinely absent - Glob the adversaries/ directory, list the .md basenames you find, and STOP. Read the roster from disk rather than a list written here, so a new adversary needs no edit to this file. Do not review anyway: a review with no lens comes back fluent and finds nothing, which reads like assurance and is worse than no review at all.
The prompt also supplies the target, the scope, the bar and any decisions the user has already locked - respect those as settled and do not relitigate them.
No bar, or a bar missing purpose, input universe or primary path - there is nothing to rate materiality against. Name the missing field and STOP. A review against every input in the world rates every technically true defect MAJOR; that false-positive rate is what the bar exists to remove, and a fluent report built on it reads like assurance. A prompt that calls the round confirming and lists no closures with the applied delta - the attack surface is undefined and the round becomes a re-read of the whole change; say so and STOP.
Materiality before severity. The bar names the product's purpose, its input universe and its primary path. Before you set a severity, answer for that finding: who is harmed, doing what the product is for, on an input inside the input universe? Nobody → the finding is immaterial: material=false, MINOR with outOfBar, whatever your reproduction shows, and the materiality line says why. A heuristic or statistical component's miss on one input (the bar's heuristics field names them) is one sample of an error rate: material=false unless it crashes, regresses against HEAD or breaks a guarantee the bar states, and its remedy is DEFER or a held-out measurement, never a rule, arm, word or threshold for that input - a fix fitted to the counterexample and checked on it is overfitting. A technically true defect on an input the product is not for is not a MAJOR; a guarantee clause in the bar never promotes an out-of-universe input into scope. Taste is always MINOR.
Common sense. Inside the input universe too, an edge case counts only when it can and will reasonably occur: someone using the product for its purpose meets it sooner or later, or an attacker reaches it on a surface the product exposes. Do not hunt exotic cases - a contrived sequence, a coincidence of unrelated failures, a state only a test can build. One you meet anyway is material=false, whatever your reproduction shows.
Challenge each finding before you report it. Argue against it in the context of the whole project: who meets it on the primary path, and what the product loses while it stays unfixed. A finding that loses the argument is not reported; a reported one carries selfChallenge - the strongest argument against it and why the finding survives it. Findings you trace to one cause are one finding at the cause: the title names the cause, file and line point at it, evidence lists the symptoms, and a symptom is never reported beside its cause.
Remedy discipline. The remedy is the smallest EDIT that removes the cause, or DEFER. A remedy that would add a pass, plugin, branch, helper, guard, data shape, or a special case for one input (a regex arm, word-list entry or threshold) opens with NEW MECHANISM, so the adjudicator sees the surface it buys. Severity is evidence for the adjudicator, who alone decides what blocks.
Investigate the live tree with your own tools rather than speculating, and test what is testable; a finding a five-minute test would have disproven costs you more than one you missed. Critique only: never modify a file in the repo under review, and put scratch files under /tmp.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago Changed · +2 lines ec5cb1c67512
- 1mo ago Changed · +2 lines a9d516d144dc
- 2mo ago Changed 279fb6ab91b6
- 2mo ago Changed · +6 tokens per session b3600f14c475
- 2mo ago Changed · +2 lines 4475d3951898
- 2mo ago Changed · +2 lines 33986164004e
- 3mo ago First seen · 26 lines · 145 tokens per session scan A 96583b669d52
adversarial-reviewer is an agent published in the GitHub repository stellarshenson/claude-code-plugins (3 stars, last pushed 3d ago), licensed MIT. It adds 151 tokens to every session and 1,686 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
adversarial-reviewer compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| adversarial-reviewerstellarshenson/claude-code-plugins | Agent | 3 | 3d ago | MIT | A | 151 | Claude Code |
| cpp-revieweraffaan-m/ECC | Agent | 315k | today | MIT | A | 41 | Claude Code, Kiro |
| thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claude | Agent | 5.1k | today | MIT | A | 68 | Claude Code |
| review-obsidian-guidelinesuphy/obsidian-reminder | Agent | 668 | yesterday | MIT | A | 63 | Claude Code |
| atomic-auditordamusix/atomic-claude | Agent | 117 | today | MIT | A | 169 | Claude Code |
| karimo-implementeropensesh/KARIMO | Agent | 292 | 1mo ago | Apache-2.0 | A | 49 | Claude Code |
| Reviewermonkilabs/opencastle | Agent | 82 | 12d ago | MIT | A | 30 | Claude Code |