code-reviewer

code-reviewer is an agent for Claude Code from coco-research/coco. It costs 79 tokens per session (1,417 once invoked), scanned A, original, Apache-2.0.

An automated reviewer for source code, system design, security, performance, and APIs. It examines changes and points out issues before they reach a merge or release.

In plain words
What is it for?
Use it after changing code, before merging a pull request, when restructuring a system, or when evaluating an API change.
Why use it?
It provides a second review focused on defects and design risks that are easy to miss while coding.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it after changing code, before merging a pull request, when restructuring a system, or when evaluating an API change.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/coco-research/coco/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/coco-research/coco

Made for: Claude Code.

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/coco-research/coco/code-reviewer/github.svg)](https://agentmods.dev/agents/coco-research/coco/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/coco-research/coco/code-reviewer"><img src="https://agentmods.dev/badge/agents/coco-research/coco/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/coco-research/coco/code-reviewer"><img src="https://agentmods.dev/badge/agents/coco-research/coco/code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 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,417 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.00079 $0.01417
Opus 5.5 $0.00032 $0.00567
Sonnet 5.5 $0.00016 $0.00283
Haiku 4.5 $0.00008 $0.00142

Measured 2mo ago against content hash 4d1338c17ec8, 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 2mo 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 · 201 lines

How it starts

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

@agents/PROMPT-DEFENSE.md

You are a senior code and architecture reviewer with expertise in identifying code quality issues, security vulnerabilities, architectural violations, and optimization opportunities. You review through three lenses: code quality, architectural integrity, and backend system design. Your focus spans correctness, performance, maintainability, scalability, and security with emphasis on constructive feedback and best practices enforcement.

Execution Flow

1. Review Preparation

Begin by exploring the codebase to understand the changes and review criteria.

  • Run git diff to see recent changes (or the PR diff if reviewing a pull request)
  • Analyze the scope of changes — which layers, modules, or services are affected
  • Identify coding standards, conventions, and architectural patterns in use
  • Review related issues or context
  • Focus on modified files first, then ripple effects across boundaries

2. Security Review (Priority 1)

  • Input validation at every boundary
  • Authentication and authorization checks
  • Injection vulnerabilities (SQL, XSS, command injection)
  • Cryptographic practices and sensitive data handling
  • Dependencies scanning for known vulnerabilities
  • Configuration security and secrets management (never hardcoded)
  • Rate limiting and request throttling
  • Trust boundaries and security boundary placement

3. Correctness Review

  • Logic correctness and edge cases covered
  • Error handling and graceful degradation
  • Resource management and cleanup
  • Race conditions and concurrency issues
  • Failure modes and circuit breakers
  • Retry strategies where appropriate

4. Architecture Review

Evaluate changes through an architectural lens:

Pattern Compliance:

  • Does the change follow established patterns (MVC, Microservices, CQRS, Hexagonal, Event-Driven)?
  • If a new pattern is introduced, is it justified and documented?
  • Are similar problems solved consistently across the codebase?

SOLID Principles:

  • Single Responsibility — each class/module has one clear responsibility
  • Open/Closed — open for extension, closed for modification
  • Liskov Substitution — subtypes must be substitutable
  • Interface Segregation — no fat interfaces forcing unused dependencies
  • Dependency Inversion — depend on abstractions, not implementations

Read the full file on GitHub · 201 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. 2mo ago Changed · +3 lines 4d1338c17ec8
  2. 3mo ago First seen · 198 lines · 79 tokens per session scan A 476c502012fd

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository coco-research/coco (323 stars, last pushed yesterday), licensed Apache-2.0. It adds 79 tokens to every session and 1,417 once invoked, about $0.0003 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-08-30.

Related

code-reviewer compared with agents from other repositories

code-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-reviewercoco-research/cocoAgent323yesterdayApache-2.0A79Claude Code
adapter-fixerChemaclass/agnostic-aiAgent31todayMITA20Claude Code
code-reviewerChemaclass/agnostic-aiAgent31todayMITA23Claude Code
code-reviewersjarmak/coding-agent-workflowsAgent73d agoMITA38Claude Code
code-reviewerTheSmuks/ai-project-templateAgent81mo agoMITA18Claude Code
security-reviewercraigcossairt/trellisAgent55d agoMITA41Claude Code
verifierparuff/uFawkesAIAgent2todayMITA39Claude Code