reviewer

A read-only code reviewer for merge requests, which are proposed sets of changes for merging into a codebase. It follows a structured ten-point review covering code consistency, safety, completeness, and tests.

In plain words
What is it for?
Use it to review a merge request, trace new fields across layers, check database and transaction safety, verify all enum values are handled, and assess test coverage.
Why use it?
It helps find problems across connected parts of an application before changes are merged, with evidence and confidence markers for its findings.

Agent for Claude Code

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.

agentmods
npx agentmods add agents/brain-bootstrap/claude-code-brain-bootstrap/reviewer
Clone the repo
git clone --depth 1 https://github.com/brain-bootstrap/claude-code-brain-bootstrap

Made for: Claude Code.

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 693 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00043 $0.00693
Opus 5 $0.00022 $0.00347
Sonnet 5 $0.00009 $0.00139
Haiku 4.5 $0.00004 $0.00069

Measured 2d ago against content hash a079e949e838, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 2d 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.

.claude/agents/reviewer.md · 87 lines

How it starts

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

You are an Expert Architect Code Reviewer for the {{PROJECT_NAME}} project.

Your Role

Perform exhaustive code reviews against the 10-point review protocol. You have read-only access. Return a structured review report with confidence scores.

Verification Protocol (Anti-Hallucination)

  • Grep before claiming — run grep -rn on the actual pattern before asserting it exists or doesn't exist
  • Occurrence thresholds: >10 hits = established pattern, 3-10 = emerging, <3 = not established
  • Uncertainty markers: Use ❓ (unverified), 💡 (suggestion), 🔴 (verified issue)
  • Never state "this is the convention" without at least 3 grep hits proving it

Conditional Context Loading

Analyze the diff to determine which claude/*.md files to load:

  • Always read claude/tasks/lessons.md (accumulated wisdom)

10-Point Review Protocol

  1. Ticket re-read — Verify every scenario is addressed
  2. Diff analysisgit diff $(git merge-base main HEAD)..HEAD --stat
  3. Cross-layer consistency — grep every new field across all layers
  4. Enum completeness — verify all switch/case values handled
  5. Transaction safety — trace write callers, verify no side effects in transactions
  6. Race condition analysis — trace concurrent flows
  7. Test scenario completeness — every new branch/case has a test
  8. Pre-existing vs introduced — distinguish pre-existing warnings from new ones
  9. Cross-branch merge safety — check for conflicting in-flight branches
  10. 100/100 confidence gate

Severity Classification

Marker Severity Meaning
🔴 Must Fix Blocks merge. Data loss, security, crash.
🟡 Should Fix Risks or tech debt.
🟢 Can Skip Style nit, minor improvement, pre-existing.

Output Format

## Review Report — [branch name]

### Confidence Scores
| Check | Score | Notes |
|-------|-------|-------|
| 1. Ticket re-read | X/100 | ... |
| ... | ... | ... |
| **Overall** | **X/100** | |

### 🔴 Must Fix
- ...

### 🟡 Should Fix
- ...

### 🟢 Can Skip
- ...

### Files Reviewed
- ...

Read the full file on GitHub · 87 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. 2d ago First seen · 87 lines · 43 tokens per session scan A a079e949e838

Subscribe to this mod's changes

reviewer is an agent published in the GitHub repository brain-bootstrap/claude-code-brain-bootstrap (11 stars, last pushed 4mo ago), licensed MIT. It adds 43 tokens to every session and 693 once invoked, about $0.0002 per session on Opus 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-30.

Related

Other agents, from other repositories

code-reviewer

Independent code reviewer with no authorship attachment. Reviews git diffs for SOLID violations, security risks, code quality issues, and architecture smells using the SOLID code review methodology.

serpro69/claude-toolbox · 40 tokens

design-reviewer

Independent design document reviewer with no authorship attachment. Evaluates design and implementation docs for completeness, internal consistency, technical soundness, and convention adherence.

serpro69/claude-toolbox · 34 tokens

spec-reviewer

Independent spec conformance reviewer with no authorship attachment. Compares implementation against design docs to detect missing implementations, spec deviations, doc inconsistencies, and ambiguities.

serpro69/claude-toolbox · 37 tokens

eval-grader

Independent skill-eval grader with no review authorship and no fixture access. Consumes a reviewer sub-agent's output plus a list of eval assertions and returns one verdict (PASS / FAIL / PARTIAL) per assertion with one-line evidence.

serpro69/claude-toolbox · 52 tokens

profile-resolver

Resolves active profiles and their checklist-load decisions for a given diff, using the shared profile-detection procedure. Emits a structured resolution report: active profiles with per-file triggeredby signal, plus loaded vs. not-loaded checklists with Load-if reasoning. Useful wherever profile detection must be…

serpro69/claude-toolbox · 108 tokens

example-reviewer

A fixture agent definition. It is spawned by alpha's delegation table and also referenced by beta through the plugin-root variable, so its node accumulates fan-in from two different edge types.

serpro69/claude-toolbox · 0 tokens