adversarial-reviewer

adversarial-reviewer is an agent for Claude Code from stellarshenson/claude-code-plugins. It costs 151 tokens per session (1,686 once invoked), scanned A, original, MIT.

A hostile code reviewer that tests a change from a chosen expert viewpoint, such as security, quality assurance, architecture, or user experience.

In plain words
What is it for?
Use it to review code, designs, data work, prompts, or operations from a specific critical perspective and return a verdict.
Why use it?
It looks for ways a change could fail or harm users instead of offering only approval. This helps expose important problems before release.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the devils-advocate plugin — 4 skills, 3 commands, 2 agents shipped together

Good fit Use it to review code, designs, data work, prompts, or operations from a specific critical perspective and return a verdict.

Compare 6 agents from other repositories ↓
Install

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.

Claude Code
/plugin marketplace add stellarshenson/claude-code-plugins
Claude Code
/plugin install devils-advocate

Made for: Claude Code.

Or install devils-advocate, the plugin that ships this one along with the rest of its 4 skills, 3 commands, 2 agents.

Wrote 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.

agentmods badge for adversarial-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/stellarshenson/claude-code-plugins/adversarial-reviewer/github.svg)](https://agentmods.dev/agents/stellarshenson/claude-code-plugins/adversarial-reviewer)
Your own site
<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.

agentmods 80×15 button for adversarial-reviewer

Your own site · 80×15
<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>
Per session 151 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,686 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 2d ago against content hash ec5cb1c67512, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

plugins/devils-advocate/agents/adversarial-reviewer.md · 34 lines

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.

Read the full file on GitHub · 34 lines

Changes

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.

  1. 2d ago Changed · +2 lines ec5cb1c67512
  2. 1mo ago Changed · +2 lines a9d516d144dc
  3. 2mo ago Changed 279fb6ab91b6
  4. 2mo ago Changed · +6 tokens per session b3600f14c475
  5. 2mo ago Changed · +2 lines 4475d3951898
  6. 2mo ago Changed · +2 lines 33986164004e
  7. 3mo ago First seen · 26 lines · 145 tokens per session scan A 96583b669d52

Subscribe to this mod's changes

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.

Related

adversarial-reviewer compared with agents from other repositories

adversarial-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
adversarial-reviewerstellarshenson/claude-code-pluginsAgent33d agoMITA151Claude Code
cpp-revieweraffaan-m/ECCAgent315ktodayMITA41Claude Code, Kiro
thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claudeAgent5.1ktodayMITA68Claude Code
review-obsidian-guidelinesuphy/obsidian-reminderAgent668yesterdayMITA63Claude Code
atomic-auditordamusix/atomic-claudeAgent117todayMITA169Claude Code
karimo-implementeropensesh/KARIMOAgent2921mo agoApache-2.0A49Claude Code
Reviewermonkilabs/opencastleAgent8212d agoMITA30Claude Code