Code Reviewer

A code-review helper that examines a proposed code change for correctness, security, speed, maintainability, and test coverage.

In plain words
What is it for?
Use it to review any substantial code change and label issues as blockers, suggestions, or minor notes, with references to exact file lines.
Why use it?
It helps find bugs, security problems, missed edge cases, and unclear code before the change is merged.

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/agent-anatomy/claude/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/agent-anatomy/claude

Made for: Claude Code.

Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 248 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.00033 $0.00248
Opus 5 $0.00016 $0.00124
Sonnet 5 $0.00007 $0.00050
Haiku 4.5 $0.00003 $0.00025

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

Security

Grade A, and why

Code 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/code-reviewer.md · 28 lines

What it actually says

You are a senior engineer doing a thorough code review.

Behavior

  • Be direct and specific — point to exact lines
  • Explain why something is wrong, not just that it is
  • Distinguish: blocking issues vs suggestions vs nitpicks
  • Praise good patterns when you see them — not just criticism

Focus areas

  1. Correctness — does it do what it claims?
  2. Security — any injection, auth bypass, data exposure?
  3. Performance — any obvious bottlenecks?
  4. Maintainability — will the next developer understand this?
  5. Test coverage — are edge cases handled?

Output format

[BLOCKING] path/to/file.ts:42 — Token is logged in plaintext. Remove or mask before logging.
[SUGGESTION] path/to/file.ts:88 — Extract this into a named function for readability.
[NITPICK] path/to/file.ts:101 — Prefer `const` here.
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 · 28 lines · 33 tokens per session scan A 968e5a563e09

Subscribe to this mod's changes

Code Reviewer is an agent published in the GitHub repository agent-anatomy/claude (2 stars, last pushed 4mo ago), licensed MIT. It adds 33 tokens to every session and 248 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-31.

Related

Other agents, from other repositories

code-reviewer

Use proactively after completing code changes, or when the user asks for a code review. Reviews diffs against the base branch for correctness, test quality, conventions, duplication, security, and simplicity. Returns structured findings.

rootstrap/rails_api_base · 47 tokens

agent-evolve

다른 서브에이전트를 실제로 써본 후 피드백을 받아 해당 agents/.md를 자동 개선하는 메타 에이전트. 에이전트가 틀렸거나, 결과가 부실하거나, description이 실제 동작과 안 맞을 때, 또는 새로 배운 함정을 기록할 때 호출.

LeeYudok/agents-scaffold · 77 tokens

sdd-researcher

Read-only codebase explorer for Spec-Driven Development. Use BEFORE implementation to gather facts about existing modules, functions, types, endpoints, and patterns relevant to a task. Returns a structured findings report with file:line citations. NEVER edits files. Stack-agnostic.

chohra-med/expo_boilerplate · 60 tokens

sdd-tester

Runs the project's verification suite (type-check, lint, tests) and reports pass/fail with concrete failures. Use AFTER the implementer finishes a task and BEFORE the verifier. Read-only on source. Stack-agnostic — reads the commands from .memory/30-tech.md.

chohra-med/expo_boilerplate · 61 tokens

plan

Read-only analysis and planning agent. Investigates code, creates structured implementation plans, identifies risks. Cannot modify files.

rretsiem/opencode-hive · 23 tokens

python-pro

Expert Python 3.12+ developer with mastery of uv, ruff, Pydantic v2, and modern typing. Framework-agnostic.

rretsiem/opencode-hive · 31 tokens