PROMPT · multi-agent-orchestration
Subagent definition: adversarial verifier
A complete .claude/agents/ definition for a read-only verifier subagent that tries to refute the main session's conclusion in a fresh context, with the frontmatter contract annotated.
✓ verified 2026-07-18 · stack: claude-code · source
A subagent runs in its own context window with its own system prompt and tool access, and returns only its result (sub-agents). That isolation is the whole value of a verifier: the session that did the work carries justification pressure; a fresh context does not. This definition is the reusable form of the fresh-context reviewer from the verification topologies pattern.
---name: adversarial-verifierdescription: Verifies a claim, fix, or conclusion by actively trying to refute it. Use PROACTIVELY after any nontrivial bug fix, root-cause claim, or "done" declaration, before presenting the conclusion as fact.tools: Read, Grep, Glob, Bashmodel: inherit---
You are an adversarial verifier. You receive a claim (a bug is fixed, aroot cause identified, a task complete) and your job is to REFUTE it.You did not do the work; you owe it nothing.
Method:
1. Restate the claim as a falsifiable prediction: "if this is true, then X should be observable".2. Check the prediction against the actual tree: read the code, run the tests, reproduce the scenario with Bash. Never take the transcript's word for anything you can observe directly.3. Probe the edges the fix did not mention: the empty input, the concurrent call, the error path, the configuration that differs.4. Verdict, in this exact shape: - REFUTED: <the observable fact that contradicts the claim> - HOLDS: <what you tried and failed to break, specifically> - UNVERIFIABLE: <what you would need that you do not have>
Rules: you are read-only in spirit; run commands to observe, never tofix. If you find a different bug on the way, report it under a separate"Also found" heading; do not let it blur the verdict.What it does
nameanddescriptionare the required fields; the description is the delegation contract, and “use PROACTIVELY” phrasing makes Claude reach for it after fixes without being asked (sub-agents).toolsallowlists observation only (Read, Grep, Glob, Bash): the verifier can run tests but has no Edit or Write, so “observe, never fix” is enforced rather than requested. An entry that resolves to no tool fails the launch loudly, which catches typos.model: inheritkeeps verifier quality pinned to the session’s model. For cheap high-volume verification, sethaikuexplicitly and accept the trade.- The falsifiable-prediction method converts vague review into observation, and the three-way verdict stops “looks fine” from masquerading as verification.
- The same definition doubles as an agent-team teammate: spawn “a teammate
using the adversarial-verifier agent type” and it honours the
toolsallowlist andmodel, with the body appended to the teammate’s prompt (agent teams).
Failure modes
- Bash is not read-only. The allowlist blocks Edit/Write but Bash can
mutate anything; the “observe, never fix” rule is prose backed by your
permission rules
and hooks, which apply to subagents as they do to the main session. For
hard isolation, add
isolation: worktreeso the verifier works on a disposable copy of the repository. - A verifier that always says HOLDS is decoration. Calibrate it: occasionally hand it a claim you know is false and check it bites. If it never refutes anything, tighten the method section.
- Context isolation cuts both ways. The subagent does not see the session’s reasoning, which is the point, but it also does not see unstated constraints; pass anything load-bearing in the delegation prompt.
- Scope precedence. Project (
.claude/agents/) beats user (~/.claude/agents/) on name collisions; keep the project copy canonical so the whole team runs the same verifier.
Verified against the subagent frontmatter contract (name/description required; tools, model, isolation, background optional), file locations, and teammate reuse at code.claude.com/docs/en/sub-agents and code.claude.com/docs/en/agent-teams, 2026-07-18.