review

A command for reviewing a merge request, which is a proposed set of code changes awaiting review. It follows a ten-point checklist and checks changes across the application.

In plain words
What is it for?
Use it to inspect the current branch's changes, commits, project rules, architecture, lessons, and related ticket scenarios.
Why use it?
It provides a repeatable way to look for missing requirements, cross-layer problems, and project-specific mistakes.

Command 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 commands/brain-bootstrap/claude-code-brain-bootstrap/review
Clone the repo
git clone --depth 1 https://github.com/brain-bootstrap/claude-code-brain-bootstrap

Made for: Claude Code.

Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 547 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.00016 $0.00547
Opus 5 $0.00008 $0.00273
Sonnet 5 $0.00003 $0.00109
Haiku 4.5 $0.00002 $0.00055

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

Security

Grade A, and why

review 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/commands/review.md · 39 lines

How it starts

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

Perform a full MR review on the current branch.

ultrathink — use extended reasoning for thorough cross-layer analysis.

Pre-loaded context

Branch: !git branch --show-current Diff stat: !git --no-pager diff main...HEAD --stat 2>/dev/null || echo "Not on a feature branch" Commits: !git --no-pager log main...HEAD --oneline 2>/dev/null || echo "N/A"

Instructions

Read these files first:

  • claude/rules.md (review protocol)
  • claude/architecture.md (system context)
  • claude/tasks/lessons.md (past mistakes to avoid)

Step 0 — Lessons pre-scan: Before running the checklist, scan claude/tasks/lessons.md for entries whose file paths, module names, or topic keywords overlap with the files in the diff. Extract matching lessons and prepend them as project-specific check items at the top of your review (e.g. "⚠️ Lesson: hooks must be executable — check .claude/hooks/*.sh"). These lessons represent real mistakes from this project that the standard 10-point protocol won't catch.

Then execute the review protocol:

  1. Ticket re-read — If a ticket reference exists in the branch name, find and read it. Verify every scenario is addressed.
  2. Diff analysis — Run git --no-pager diff main...HEAD --stat to identify all changed files. Then read the full diff.
  3. Cross-layer consistency — For every new field/constant, grep across all layers. Report any gaps.
  4. Enum completeness — For any modified switch/case, verify all enum values are handled.
  5. Transaction safety — Trace every write caller. Confirm read callers don't write.
  6. Race condition analysis — Trace concurrent flows.
  7. Test scenario completeness — Verify every new branch/case has a dedicated test.
  8. Pre-existing vs introduced — Run linter on changed files. Distinguish pre-existing from introduced warnings.
  9. Cross-branch merge safety — Check if other branches are in flight that touch the same files.
  10. 100/100 confidence gate — Present a confidence score for each item. Do NOT generate MR description until all pass.
  11. Generate MR description — Write to claude/tasks/mr-description-<branch>.md using the template from claude/templates.md.

Read the full file on GitHub · 39 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 · 39 lines · 16 tokens per session scan A 310253d48589

Subscribe to this mod's changes

review is a command published in the GitHub repository brain-bootstrap/claude-code-brain-bootstrap (11 stars, last pushed 4mo ago), licensed MIT. It adds 16 tokens to every session and 547 once invoked, about $0.0001 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.