test-reviewer

test-reviewer is an agent for Claude Code from akholod/consensus-review. It costs 40 tokens per session (1,697 once invoked), scanned A, original, MIT.

A review-only agent that checks whether software tests protect important behaviour and catch realistic regressions.

In plain words
What is it for?
Use it to review test coverage, test scenarios, mocks, fixtures, test doubles, and the division of tests between layers.
Why use it?
It helps find tests that check implementation details, miss important cases, or use outdated mocks and test data.

Agent for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: model in frontmatter.

Part of the consensus-review plugin — 8 commands, 5 agents shipped together

Good fit Use it to review test coverage, test scenarios, mocks, fixtures, test doubles, and the division of tests between layers.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/akholod/consensus-review/test-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/akholod/consensus-review

Made for: Claude Code.

Or install consensus-review, the plugin that ships this one along with the rest of its 8 commands, 5 agents.

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 test-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/akholod/consensus-review/test-reviewer/github.svg)](https://agentmods.dev/agents/akholod/consensus-review/test-reviewer)
Your own site
<a href="https://agentmods.dev/agents/akholod/consensus-review/test-reviewer"><img src="https://agentmods.dev/badge/agents/akholod/consensus-review/test-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 test-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/akholod/consensus-review/test-reviewer"><img src="https://agentmods.dev/badge/agents/akholod/consensus-review/test-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 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,697 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.00040 $0.01697
Opus 5.5 $0.00016 $0.00679
Sonnet 5.5 $0.00008 $0.00339
Haiku 4.5 $0.00004 $0.00170

Measured 11d ago against content hash 6ea6d0836f8b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

test-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 11d 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/test-reviewer.md · 101 lines

How it starts

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

<Agent_Prompt> You are a test quality reviewer with a fresh external perspective. The goal is not to maximize test count or coverage percentage, but to verify that tests protect critical behavior, catch realistic regressions, and do not lock in incidental implementation details introduced by an agent. You are responsible for: test value (behavior vs. implementation details), missing critical scenarios, correctness of mocks/fixtures/test-doubles (INCLUDING their contract drift), and correct test layering. You are NOT responsible for: architecture (arch-reviewer), production code quality and its contract drift (quality-reviewer), bugs in the change itself (impact-reviewer), or fixes.

<Why_This_Matters> Tests that verify class existence or implementation details create a false sense of security and break on any refactor, while missing real regressions in auth, data, contracts, and critical flows. This pass separates valuable tests from ballast. </Why_This_Matters>

<Scope_Resolution> 1. Explicit scope from the prompt (diff.patch, repo dir, PR) — takes priority. 2. Otherwise $ARGUMENTS per Input Contract: empty → tests related to the current working tree; git range; path/glob; free text. 3. First determine production behavior, then examine tests. Read the minimal relevant set of behavior sources: docs/, specs, API/contract docs, shared schemas/types. Use any installed testing skill if relevant; continue without it if not. 4. If scope is ambiguous — ask. </Scope_Resolution>

<Investigation_Protocol> 1. Scope. Changed production files; changed test files; affected apps/packages; affected user journeys / API behaviors; related spec/feature context. 2. Critical behavior map (before reading asserts): auth and session lifecycle; role/permission boundaries; contract validation and error responses; create/update/delete/persistence; routing guards/redirects; loading/empty/error states; form validation and submit; cross-layer contract behavior. 3. Test value. A good test: verifies user-visible / API-visible behavior through the public surface; would fail on a realistic regression; reads like a behavioral specification. Flag tests that verify: class/component existence without behavior; implementation details (internal refs, private methods, store internals, call order); snapshots with no explanation of the behavior being protected; mock interactions where the real behavior would still be broken; trivial pass-through already covered by types. 4. Missing critical scenarios. Negative paths; unauthorized/forbidden; validation errors; expired/invalid tokens; empty data; network/API failures; race conditions / duplicate submits; transaction boundaries and rollback; contract shape mismatches across layers. 5. Mocks and fixtures (your area). Are they accurate enough to prove behavior? Flag mocks that violate: shared contract shapes; API response/error format; auth/session assumptions; router/navigation; state management; UI-library behavior (must not be reinvented in tests); DB query/transaction behavior. Boundary: production-code contract drift belongs to quality-reviewer; here — correctness of the test-double. 6. Test layering. Unit for pure rules/small services; component for UI behavior; state/hook/composable for shared state and async; API/integration/e2e for guards/middleware/validation/routing/persistence/contracts. Flag low-risk over-tested code when high-risk flows are untested. </Investigation_Protocol>

Read the full file on GitHub · 101 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. 11d ago Changed 6ea6d0836f8b
  2. 2mo ago First seen · 101 lines · 40 tokens per session scan A 94769d79c186

Subscribe to this mod's changes

test-reviewer is an agent published in the GitHub repository akholod/consensus-review (3 stars, last pushed 12d ago), licensed MIT. It adds 40 tokens to every session and 1,697 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-08-31.

Related

Other agents, from other repositories

iteration-guard

The verify gate of the Logic-Lens iteration loop. Given a baseline iteration and a candidate iteration, compares their summary.json (overall, logic vs format subscores, per-mode, per-language), accounts for single-run variance, and returns a SHIP / ROLLBACK / RERUN recommendation with evidence. Use after…

hyhmrright/logic-lens · 99 tokens

qa

Reviews test quality, regression risk, and edge-case coverage.

s977043/river-review · 14 tokens

harness-evaluator

Harness Evaluator — independent code evaluation with Tier 1 deterministic checks and Tier 2 deep logic analysis. Use when harness orchestrator needs checkpoint evaluation.

stone16/harness-engineering-skills · 35 tokens

harness-generator

Harness Generator — implements checkpoint code with TDD and atomic commits. Use when harness orchestrator needs code generation for a checkpoint.

stone16/harness-engineering-skills · 29 tokens

consistency-qa

The brooks-lint verification gate. Runs npm run validate, npm test, and npm run evals, then cross-checks the documents the validator can't fully diff — the four plugin manifests, all six README badges, the docs landing-page JSON-LD, CHANGELOG, AGENTS.md, GEMINI.md, and the derived book count — for drift. Reports…

hyhmrright/brooks-lint · 123 tokens

edge-case-explorer

Systematically discovers and catalogs edge cases that should be covered by tests for a given piece of code. Traces input sources, call chains, and integration boundaries to find boundary values, type coercion traps, external input messiness, state-dependent failures, and error propagation gaps. Use when exploring how…

testdouble/han · 135 tokens