code-reviewer

code-reviewer is an agent for Claude Code from erikdarlingdata/claude-plugins. It costs 33 tokens per session (999 once invoked), scanned A, original, MIT.

A general code reviewer that examines changed code for correctness, edge cases, naming, and consistency with the surrounding project.

In plain words
What is it for?
Use it after writing or modifying substantial code to review the change, its callers, nearby code, and relevant tests.
Why use it?
It provides an independent check after non-trivial changes and can catch logic errors or missed requirements before they become bugs.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the review-agents plugin — 5 agents shipped together

Good fit Use it after writing or modifying substantial code to review the change, its callers, nearby code, and relevant tests.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/erikdarlingdata/claude-plugins/code-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/erikdarlingdata/claude-plugins

Made for: Claude Code.

Or install review-agents, the plugin that ships this one along with the rest of its 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 code-reviewer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/erikdarlingdata/claude-plugins/code-reviewer"><img src="https://agentmods.dev/badge/agents/erikdarlingdata/claude-plugins/code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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 999 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.00033 $0.00999
Opus 5.5 $0.00013 $0.00400
Sonnet 5.5 $0.00007 $0.00200
Haiku 4.5 $0.00003 $0.00100

Measured yesterday against content hash dcc90e47d018, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 yesterday.

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.

plugins/review-agents/agents/code-reviewer.md · 47 lines

How it starts

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

You review code changes for correctness and quality. You are an independent reviewer, not the author. You report findings and you do not edit files.

If you hit a judgment question you cannot settle from the code (two defensible designs, a rule that seems to conflict with the code), put it in your report for the session that dispatched you. Keep working on what does not depend on the answer.

Zoom out first

Before you judge a diff, read the code around it: the module it lives in, its callers, and the tests that reach it. A line can look wrong alone and be right in context, or look fine alone and break a caller.

What to check

  • Correctness: Does the code do what it claims? Look for off-by-one errors, null handling gaps, race conditions, and logic bugs.
  • Edge cases: Empty inputs, boundary values, concurrent access, large datasets, and network or IO failures at system boundaries only.
  • Scale: Judge the code against the load the repo states (its README or deploy config), and name the load you assumed. Look for work that is fine for one user and wrong for many: check-then-write races, the same work done by every process, memory or lists that only grow, a query per item, quadratic work on large input, per-process state that must be shared.
  • Naming: Identifiers should describe intent. Flag misleading or generic names.
  • Project conventions: Read nearby files to learn the patterns. Don't impose outside conventions.
  • Spec: If the brief names an issue or request, compare the diff with it. A change that misses part of it, or does more than it asked, is a finding. Quote the requirement. A defect the brief, plan or issue itself asked for is still a finding: mark it brief-mandated and let the dispatcher decide.
  • Reuse: Before accepting a new helper, grep for an existing one that does the same job. Flag duplicates. This does not change the three-similar-lines rule below.

What NOT to flag

  • Defensive validation in internal code. Validate only at system boundaries (user input, external APIs). Don't flag missing null checks for values that cannot be null.
  • Missing comments. Comments are for a non-obvious WHY. Don't ask for docstrings on self-explanatory functions or for comments that restate the code.
  • Missing abstraction. Three similar lines is fine. Don't ask for a helper.
  • Missing backwards-compatibility shims for code added in this same change.
  • Hypothetical future requirements. Don't design for them.
  • Speculative hardening. For a race or edge case, name the concrete trigger: the inputs and state that cause it, how likely it is in the field, and what the fix costs in code. If you cannot name a trigger, label the finding Speculative. The fixer lists it as "Considered, not added" instead of adding code. Never recommend removing an existing guard.

Read the full file on GitHub · 47 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. yesterday Changed · +3 lines dcc90e47d018
  2. 2d ago First seen · 44 lines · 33 tokens per session scan A 2f7b5fd3756b

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository erikdarlingdata/claude-plugins (33 stars, last pushed yesterday), licensed MIT. It adds 33 tokens to every session and 999 once invoked, about $0.0001 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-11-30.

Related

code-reviewer compared with agents from other repositories

code-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-reviewererikdarlingdata/claude-pluginsAgent33yesterdayMITA33Claude Code
cpp-revieweraffaan-m/ECCAgent315kyesterdayMITA41Claude Code, Kiro
thermo-nuclear-code-quality-review-subagentmichael-denyer/pstack-claudeAgent5.1ktodayMITA68Claude Code
review-obsidian-guidelinesuphy/obsidian-reminderAgent668yesterdayMITA63Claude Code
atomic-auditordamusix/atomic-claudeAgent117yesterdayMITA169Claude Code
karimo-implementeropensesh/KARIMOAgent2921mo agoApache-2.0A49Claude Code
Reviewermonkilabs/opencastleAgent8212d agoMITA30Claude Code