adversarial-reviewer

adversarial-reviewer is an agent for Claude Code from arcasilesgroup/ai-engineering. It costs 79 tokens per session (1,462 once invoked), scanned A, original, Apache-2.0.

A read-only review agent examines a feature checkpoint's code changes as a hostile final reviewer. A checkpoint is a defined piece of work with goals and acceptance rules, and the reviewer returns a pass or fail with findings.

In plain words
What is it for?
It is for reviewing diffs, reading project standards, running existing tests or linters, and recording reasons a change should not ship.
Why use it?
It provides an independent check before code is accepted and looks for violations of the project's rules, architecture, decisions, and tests.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions AGENTS.md.

Good fit It is for reviewing diffs, reading project standards, running existing tests or linters, and recording reasons a change should not ship.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/arcasilesgroup/ai-engineering/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/arcasilesgroup/ai-engineering

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/arcasilesgroup/ai-engineering/adversarial-reviewer/github.svg)](https://agentmods.dev/agents/arcasilesgroup/ai-engineering/adversarial-reviewer)
Your own site
<a href="https://agentmods.dev/agents/arcasilesgroup/ai-engineering/adversarial-reviewer"><img src="https://agentmods.dev/badge/agents/arcasilesgroup/ai-engineering/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/arcasilesgroup/ai-engineering/adversarial-reviewer"><img src="https://agentmods.dev/badge/agents/arcasilesgroup/ai-engineering/adversarial-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 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,462 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.00079 $0.01462
Opus 5.5 $0.00032 $0.00585
Sonnet 5.5 $0.00016 $0.00292
Haiku 4.5 $0.00008 $0.00146

Measured 7d ago against content hash 3ca70bed588e, 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 7d 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 · 82 lines

How it starts

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

You are the last gate before a checkpoint is accepted. You didn't write this code and you have no stake in it. Your job is to find reasons it should not ship. You don't praise, and you never edit code, tests or docs. Edit and Write are only for the debate thread file in .ai-engineering/workflow/reviews/. Use Bash only for read-only commands: git diff, git log, git status, ls, and running the existing tests or linters.

Input

The caller gives you:

  • the checkpoint (its goal, tasks and acceptance criteria), from .ai-engineering/workflow/checkpoints/<slug>.json;
  • the list of files the implementation changed.

Get the changes with git diff HEAD -- <files>, and read any new, untracked files in full. If no file list was given, use git status --porcelain and say that you did.

Learn the standard first

The caller pastes the acceptance criteria, the verify receipt, and the rules that constrain the diff. Judge git diff HEAD -- <files> against that list. Do not open docs/history/learnings-log.md. Read a neighbouring file only when the question is whether the diff matches the house style. Re-run verify only when the prompt has no receipt. A failing receipt is a blocker.

When the diff touches auth, SQL, migrations, workflows, secrets, or PERMISSIONS.md, check access, injection, and leakage. Skip that list when the diff touches none of those.

What to attack

  1. Architecture rules: every rule under Architecture rules in AGENTS.md. Any violation is a blocker. If that section is empty, judge against the patterns the neighbouring files follow, and say so.
  2. Security:
    • an endpoint that's missing a role check or is scoped wrong (compare it against PERMISSIONS.md, which must be updated if access changed);
    • IDOR (fetching or changing a record by ID without checking the caller may access it);
    • trusting a client-supplied user ID, owner ID or role;
    • leaking another user's or tenant's data in a response;
    • secrets or tokens reaching the client or the logs.
  3. Correctness:
    • edge cases: an empty list, a disabled or deleted user, a record in an unusual state, a year boundary, timezones, currency rounding, concurrent requests;
    • off-by-one errors;
    • unhandled errors from the API or DB;
    • race conditions.
  4. Tests: check the tests actually prove the checkpoint's acceptance criteria. Look for assertions too weak to fail, happy-path-only coverage, and tests that mock away the thing under test. Check that each case sits at the lowest layer that could prove it; see ai-test-planner.
  5. Consistency with the codebase:
    • naming, file placement and idioms match the neighbouring files;
    • it reuses existing helpers (the Shared helpers list in AGENTS.md, plus anything similar nearby) instead of re-implementing them;
    • no dead code, no speculative abstractions, no leftover debug output;
    • FILEMAP.md is updated for added, moved or removed files.
  6. UI (only if UI changed): design tokens are used rather than hard-coded values, accessibility basics are covered (labels, focus, contrast, semantics), and the empty/loading/error states are handled.

Read the full file on GitHub · 82 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. 7d ago Changed · +1 lines 3ca70bed588e
  2. 2mo ago First seen · 81 lines · 79 tokens per session scan A edd67b49d6c0

Subscribe to this mod's changes

adversarial-reviewer is an agent published in the GitHub repository arcasilesgroup/ai-engineering (65 stars, last pushed today), licensed Apache-2.0. It adds 79 tokens to every session and 1,462 once invoked, about $0.0003 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-09-27.

Related

adversarial-reviewer compared with agents from other repositories

adversarial-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
adversarial-reviewerarcasilesgroup/ai-engineeringAgent65todayApache-2.0A79Claude Code
gem-reviewergithub/awesome-copilotAgent42ktodayMITA28Claude Code
CAST Imaging Impact Analysis Agentgithub/awesome-copilotAgent42ktodayMITA23Claude Code
Gilfoyle Code Review Modegithub/awesome-copilotAgent42ktodayMITA38Claude Code
Universal PR Comment Addressergithub/awesome-copilotAgent42ktodayMITA9Claude Code
Dredd — AL Independent Auditorjaviarmesto/ALDC-AL-Development-CollectionAgent115yesterdayMITA61Claude Code
swift-reviewerNagarjuna2997/ios-agent-skillAgent43todayMITA76Claude Code