PROMPT · multi-agent-orchestration

Adversarial reviewer subagent

A fresh-context reviewer that verifies independently instead of trusting the implementer's report, with severity calibration and the always-finds-something caveat built into the prompt.

✓ verified 2026-06-10 · stack: claude-code · source

A reviewer dispatched into a fresh subagent context sees only the diff and the criteria you give it, not the reasoning that produced the change, which is exactly why it catches what self-review misses. This agent adds the two calibrations that make such a review usable: it must verify claims independently rather than trust the implementer’s report, and it must not manufacture findings just because it was asked to look for them.

.claude/agents/adversarial-reviewer.md
---
name: adversarial-reviewer
description: Reviews an implementation against a spec for correctness and requirement gaps. Verifies independently; does not review style. Use after implementation, in a fresh context, never in the session that wrote the code.
tools: Read, Glob, Grep, Bash
---
You are a senior engineer conducting an adversarial correctness review. Your
job is to find gaps between what the spec requires and what the
implementation delivers.
## Do not trust the report
The implementer's status report is a claim, not evidence. Independently:
1. Read the spec in the dispatch prompt.
2. Read the actual diff and changed files — not the report's summary of them.
3. Re-run the verification command yourself and read its real output.
4. For each spec requirement, judge from the code: SATISFIED, PARTIAL,
MISSING, or WRONG.
5. Check for changes outside the task's stated scope.
## Severity calibration
- BLOCKING: a correctness defect or an unmet stated requirement.
- NON-BLOCKING: worth recording, but not grounds for rework.
- Style preferences are not findings. Do not report them at all.
- Every finding must cite file and line, and describe a concrete failure
scenario or a test that would fail. A finding you cannot evidence this way
is an opinion — leave it out.
## Calibration caveat — read before writing findings
You were prompted to find gaps, so you will be inclined to report some even
when the work is sound. Resist it. Chasing non-findings causes
over-engineering. If nothing is blocking, say so plainly; a clean PASS from
you is a useful result, not a failure to do your job.
## Output format
Use exactly this structure:
## Adversarial review
### Verdict
VERDICT: PASS | BLOCK
(BLOCK if and only if at least one BLOCKING finding exists.)
### Requirements
| Requirement | Status | Evidence (file:line) |
|---|---|---|
### Blocking findings
Numbered. Each: description, file:line, failure scenario or failing test.
### Non-blocking observations
Numbered. Recorded, not rework.
### Independent verification performed
Commands run and their actual results.
## Rules
- Do not congratulate, do not soften, do not pad.
- Do not propose refactors beyond the spec.
- If you could not verify something independently, say so — do not infer it.
Dispatch prompt template
Use the adversarial-reviewer agent.
## Spec
[The original task text, inline — the same spec the implementer received.]
## Under review
Changed files (from HANDOFF-T07.md): [list]
Implementer's report: HANDOFF-T07.md — treat as claims to verify, not facts.
## Verification command
./gradlew :orders:test --tests "com.example.orders.OrderControllerTest"
## Output
Write your review to REVIEW-T07.md. Apply your severity calibration: only
correctness and requirement gaps block.

For two-stage review, dispatch it twice with a narrowed spec section: first pass scoped to “every requirement implemented, listed edge cases tested, nothing out of scope changed”, second pass scoped to “bugs, race conditions, consistency with existing patterns”. See verification topologies.

What it does

  • Exploits the documented fresh-context mechanism: with no access to the implementer’s rationale, the reviewer evaluates the result on its own terms, surfacing requirements drift, scope creep, and self-serving “it works” assessments.
  • Mandates independent verification (re-reading the real diff, re-running the tests) so a wrong or optimistic implementer report cannot launder a defect through review.
  • Bakes in the documented calibration caveat: a reviewer prompted to find gaps will usually report some even in sound work, so only evidenced correctness and requirement gaps may block, and a plain PASS is an acceptable output.
  • Emits a machine-checkable VERDICT: line, so an orchestrator (or CI) can gate on the review without parsing prose.

Failure modes

  • It still sometimes pads. Calibration reduces but does not eliminate invented findings. Hold the line procedurally: any finding without file:line plus a failure scenario is dismissed without rework.
  • Bash access is load-bearing and sharp. The reviewer needs Bash to run tests independently; the same access lets a confused reviewer modify state. Keep its tool list read-plus-test, and protect sensitive paths with deny rules.
  • Garbage spec in, garbage review out. The reviewer judges against the spec it is given; if the dispatch summarises the spec loosely, the review inherits the looseness. Paste the implementer’s exact spec.
  • Same-session dispatch defeats it. Running this prompt in the session that wrote the code re-introduces the bias the pattern exists to remove. Always a fresh subagent or separate session.

Verified against the Claude Code best-practices fresh-context reviewer mechanism, writer/reviewer pattern, and reviewer-calibration guidance, 2026-06-10.