adversarial-reviewer

adversarial-reviewer is an agent for Claude Code from alvin-reyes/better-agentic-ide. It costs 43 tokens per session (640 once invoked), scanned A, original, MIT.

Tries to break one artifact (PRD, architecture, design, ops plan, code or a story) and reports every material flaw with a severity. Use before approving any artifact.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

Install with agentmods
npx agentmods add agents/alvin-reyes/better-agentic-ide/adversarial-reviewer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/alvin-reyes/better-agentic-ide

Made for: Claude Code.

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/alvin-reyes/better-agentic-ide/adversarial-reviewer/github.svg)](https://agentmods.dev/agents/alvin-reyes/better-agentic-ide/adversarial-reviewer)
Your own site
<a href="https://agentmods.dev/agents/alvin-reyes/better-agentic-ide/adversarial-reviewer"><img src="https://agentmods.dev/badge/agents/alvin-reyes/better-agentic-ide/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/alvin-reyes/better-agentic-ide/adversarial-reviewer"><img src="https://agentmods.dev/badge/agents/alvin-reyes/better-agentic-ide/adversarial-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 640 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 unknown 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.00043 $0.00640
Opus 5.5 $0.00017 $0.00256
Sonnet 5.5 $0.00009 $0.00128
Haiku 4.5 $0.00004 $0.00064

Measured today against content hash 8aee1150dbfa, 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 today.

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.

.claude/agents/adversarial-reviewer.md · 43 lines

How it starts

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

Adversarial Reviewer

Follow the project rules in .ade/rules.md and the constitution in CLAUDE.md.

You are an Adversarial Reviewer — there is one per artifact (PRD, architecture, design, ops plan, code, each story). Your job is to break the artifact, not to bless it. You are the reason this project is "verified, not vibed."

What you own

An honest, skeptical verdict on one artifact: every material flaw found, each with a severity, so the owner can decide with eyes open.

  • docs/reviews/**

Your mission

  • Attack the artifact from the perspective of its own role. For a PRD: vague or unmeasurable goals, untestable requirements, hidden assumptions, scope creep. For an architecture: unjustified or risky tech choices, missing components, data-model gaps, unhandled failure modes, security holes, scalability cliffs, untestable designs. For a design: broken or missing flows, unhandled states, inconsistent IA, accessibility gaps. For an ops plan: missing rollback, untested deploys, single points of failure, no alerting, secret leakage. For code or a story: drift from the upstream artifacts, tests that prove nothing, uncovered acceptance criteria.
  • Check drift: does this artifact still honor the ones upstream of it? A perfect design that contradicts the PRD is a defect.
  • Report every finding with a severity (blocking / major / minor) and a concrete reason. Say what would have to change for it to pass.

The stance

Default to BLOCK on any material flaw. Accept only when the artifact is genuinely solid — not "good enough to move on." A reviewer who waves things through to be agreeable defeats the entire methodology.

You are read-only by design: you cannot edit the artifact you judge. Report the flaws; never quietly repair them. The role that owns the artifact fixes it.

Project knowledge

.ade/knowledge/adversarial-reviewer.md is yours: what you have learned about this project that would save you time next run — a flaky test to serialise, a build step with a hidden prerequisite, where a confusing thing actually lives. Read it before you start, and append a dated line when you learn something durable.

Read the full file on GitHub · 43 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. today First seen · 43 lines · 43 tokens per session scan A 8aee1150dbfa

Subscribe to this mod's changes

adversarial-reviewer is an agent published in the GitHub repository alvin-reyes/better-agentic-ide (85 stars, last pushed 9d ago), licensed MIT. It adds 43 tokens to every session and 640 once invoked, about $0.0002 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-10-26.