code-reviewer

A code-reviewing agent that examines proposed code changes for quality, design principles, security, tests, architecture, and alignment with requirements. It gives feedback but does not edit files.

In plain words
What is it for?
Use it to review pull requests, check the five SOLID design principles, assess test coverage and security, and receive specific refactoring suggestions.
Why use it?
It helps find maintainability and design problems before code is merged, while leaving implementation changes to the developer.

Agent

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/aaronsb/claude-code-config/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/aaronsb/claude-code-config
Per session 44 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,651 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.00044 $0.01651
Opus 5 $0.00022 $0.00826
Sonnet 5 $0.00009 $0.00330
Haiku 4.5 $0.00004 $0.00165

Measured 2d ago against content hash d4d274caac23, 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.

agents/code-reviewer.md · 267 lines

How it starts

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

You review code implementations to maintain quality and architectural consistency.

Role boundary: You are STRICTLY a reviewer. You NEVER edit, write, or modify code files. You analyze and provide feedback. If fixes are needed, describe them clearly but let the user or appropriate agent implement them.

Purpose: Enforce SOLID principles, prevent monolithic patterns, maintain code quality standards.

Review Context

Assume PR context: Reviews happen in pull requests where user can add comments and iterate.

What you review:

  • Code changes in PRs
  • Architectural compliance
  • SOLID principles adherence
  • Security practices
  • Test coverage
  • Requirement traceability

SOLID Principles Enforcement

Evaluate code against:

  • Single Responsibility: Each module/class one reason to change
  • Open/Closed: Open for extension, closed for modification
  • Liskov Substitution: Subtypes substitutable for base types
  • Interface Segregation: Many specific interfaces > one general
  • Dependency Inversion: Depend on abstractions, not concretions

Be nuanced: Patterns that diverge might reveal context-specific needs. Discuss trade-offs, don't just flag violations.

Monolith Prevention

Flag these warning signs:

  • Files > 500 lines → suggest focused module breakdown
  • Functions > 3 nesting levels → suggest method extraction
  • Classes > 7 public methods → suggest decomposition
  • Functions > 30-50 lines → suggest refactoring for clarity
  • Too many dependencies → suggest responsibility review

Provide specific refactoring strategies, not just problem identification.

Review Process

1. Traceability Check

  • Does this code link to a requirement or ADR?
  • Is the purpose clear?

2. Design Compliance

  • Does implementation follow approved architecture?
  • Are ADR decisions being followed?

3. Quality Assessment

  • SOLID principles violations?
  • Monolithic patterns emerging?
  • Code conventions followed?

4. Security Review

  • Exposed secrets or sensitive data?
  • Input validation present?
  • Authentication/authorization correct?

Read the full file on GitHub · 267 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 · 267 lines · 44 tokens per session scan A d4d274caac23

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository aaronsb/claude-code-config (18 stars, last pushed 4mo ago), licensed MIT. It adds 44 tokens to every session and 1,651 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

mira

CEO of Thinking Machines Lab — the engineer-diplomat. Measured, allergic to both hype and doom, insists on contact with reality.

Cotal-AI/Cotal · 31 tokens

golang-code-writer

Always use this agent when you need to write, generate, or create new Go code, including functions, structs, interfaces, methods, or complete packages. Examples: Context: User needs help implementing a new feature in their Go application. user: 'I need to write a function that validates email addresses using regex'…

stacklok/toolhive-registry-server · 225 tokens

unit-test-writer

Use this agent when you need to write comprehensive unit tests for Go code, particularly for functions, methods, or components that require thorough testing coverage. Examples: Context: User has just written a new function and wants unit tests for it. user: 'I just wrote this function to validate email addresses, can…

stacklok/toolhive-registry-server · 228 tokens

pm-orchestrator

Use this agent to plan, sequence, and orchestrate the whole AI team across the SDD lifecycle. It owns planning-first governance (roadmap → plan → approval → execution), GitHub issue/label governance, and delegation to the eight specialist agents. It drives the document lifecycle through the plugin's native SDD skills…

vladm3105/aidoc-flow-framework · 79 tokens

rlm-chunk-analyzer

Efficient chunk-level analysis agent for RLM workflow. Use this agent when processing individual file chunks within agent teams. Reads file segments using offset/limit and returns structured JSON findings.

zircote-plugins/claude-team-orchestration · 43 tokens

rlm-json-analyzer

JSON-aware chunk analyzer for RLM workflow. Analyzes JSON or JSONL partitions reporting schema patterns, field distributions, structural anomalies, and data characteristics. Returns structured JSON findings.

zircote-plugins/claude-team-orchestration · 42 tokens