adversarial-reviewer

adversarial-reviewer is an agent for Claude Code from dsifry/metaswarm. It costs 34 tokens per session (4,833 once invoked), scanned A, original, MIT.

An adversarial code reviewer that examines an implementation against its specification and review rules from a fresh context. It is read-only and can return an approval or require changes.

In plain words
What is it for?
Use it for internal review of code changes, checking diffs against requirements, and catching issues before submitting a pull request.
Why use it?
A separate review can find defects or missed requirements before a pull request, which is a proposed change submitted for review. Its rubric also assigns finding severity to guide follow-up.

Agent for Claude Code

Written for Claude Code: $CLAUDE_PLUGIN_ROOT variable. Also seen: model in frontmatter; names the NotebookEdit tool.

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 metaswarm plugin — 15 skills, 16 commands, 31 agents, 3 hooks shipped together

Good fit Use it for internal review of code changes, checking diffs against requirements, and catching issues before submitting a pull request.

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 dsifry/metaswarm
Claude Code
/plugin install metaswarm

Made for: Claude Code.

Or install metaswarm, the plugin that ships this one along with the rest of its 15 skills, 16 commands, 31 agents, 3 hooks.

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/dsifry/metaswarm/adversarial-reviewer/github.svg)](https://agentmods.dev/agents/dsifry/metaswarm/adversarial-reviewer)
Your own site
<a href="https://agentmods.dev/agents/dsifry/metaswarm/adversarial-reviewer"><img src="https://agentmods.dev/badge/agents/dsifry/metaswarm/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/dsifry/metaswarm/adversarial-reviewer"><img src="https://agentmods.dev/badge/agents/dsifry/metaswarm/adversarial-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,833 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.00034 $0.04833
Opus 5.5 $0.00014 $0.01933
Sonnet 5.5 $0.00007 $0.00967
Haiku 4.5 $0.00003 $0.00483

Measured 4d ago against content hash 55c84ae36786, 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 4d 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.

agents/adversarial-reviewer.md · 687 lines

How it starts

The opening of the file, as written. The whole thing — 687 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Adversarial Reviewer

Criteria receipt

Put one line directly after the verdict heading, as the first line of the body: Criteria applied: <role or mode> — <the criteria sections and the rubric or persona file you applied>. It names the rubric you actually applied, not a default. Read the rubric file for your mode before you review, even though this file summarises it: its classification tables set severity, and this summary does not override them. A review without this line is re-requested once.

In Collaborative mode the receipt names code-review-rubric; in Adversarial mode it names adversarial-review-rubric. When the spawn prompt names a different rubric (a security audit, for example), it names that one.

Plugin files: paths such as agents/… and rubrics/… in this file are relative to the metaswarm plugin root, not the project you are working in. Locate it with dirname "$(dirname "$(command -v metaswarm-agents.sh)")" (or use $CLAUDE_PLUGIN_ROOT if set) and read them from there.

Type: adversarial-reviewer Role: Internal code review before PR creation Spawned By: Issue Orchestrator Tools: Codebase read, diff analysis, BEADS CLI


Purpose

The adversarial-reviewer performs thorough internal code review before changes are submitted as a PR. This catches issues early, reduces PR review cycles, and maintains code quality standards. The review uses the code-review-rubric and applies learnings from the BEADS knowledge base.


Operating Modes

The adversarial-reviewer operates in one of two modes, determined by the orchestrator at spawn time:

Collaborative Mode (Default)

  • Rubric: rubrics/code-review-rubric.md
  • Verdict: APPROVED / CHANGES REQUIRED
  • Purpose: Improve code quality through suggestions and feedback
  • Severity levels: CRITICAL / HIGH / MEDIUM / LOW (for the iteration decision these map onto the finding contract per rubrics/code-review-rubric.md, "When to Stop Iterating")
  • Re-review: Same reviewer instance may re-review
  • When used: Standard pre-PR review, no orchestrated execution loop

Read the full file on GitHub · 687 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. 4d ago Changed 55c84ae36786
  2. 21d ago Changed · +21 lines 116510228005
  3. 24d ago Changed 276415f830e2
  4. 25d ago First seen · 666 lines · 34 tokens per session scan A 9351de99965c

Subscribe to this mod's changes

adversarial-reviewer is an agent published in the GitHub repository dsifry/metaswarm (442 stars, last pushed yesterday), licensed MIT. It adds 34 tokens to every session and 4,833 once invoked, about $0.0001 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-11-07.

Related

adversarial-reviewer compared with agents from other repositories

adversarial-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
adversarial-reviewerdsifry/metaswarmAgent442yesterdayMITA34Claude 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