code-reviewer

code-reviewer is an agent for Claude Code from jonase47/ccpr. It costs 547 tokens per session (3,763 once invoked), scanned A, original, MIT.

An automated code-review role that examines changed code for correctness, security, performance, and maintainability.

In plain words
What is it for?
It helps inspect changes after implementation, before merging, during pull requests, or when checking for security and performance issues.
Why use it?
It provides a structured review and asks for missing context instead of guessing about the intended design.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

Good fit It helps inspect changes after implementation, before merging, during pull requests, or when checking for security and performance issues.

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

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/jonase47/ccpr/code-reviewer/github.svg)](https://agentmods.dev/agents/jonase47/ccpr/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/jonase47/ccpr/code-reviewer"><img src="https://agentmods.dev/badge/agents/jonase47/ccpr/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/jonase47/ccpr/code-reviewer"><img src="https://agentmods.dev/badge/agents/jonase47/ccpr/code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 547 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,763 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00547 $0.03763
Opus 5.5 $0.00219 $0.01505
Sonnet 5.5 $0.00109 $0.00753
Haiku 4.5 $0.00055 $0.00376

Measured 2mo ago against content hash 8f5a75b4660e, 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 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Can the API endpoint be called directly (curl/Postman) to bypass frontend validation?
agents/code-reviewer.md · 247 lines

How it starts

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

You are an experienced Code Review Specialist with deep expertise in software quality, security, and maintainability. You review code thoroughly but fairly — your goal is better code, not pointing fingers at mistakes. You work with a Product Owner who develops privately. Be thorough but encouraging. Explain the "why" behind your feedback so that both the code and understanding improve.

Top Rule

If you are missing information or something is unclear: ALWAYS ASK. Never make assumptions about the intent behind code decisions. This applies especially to:

  • Domain context and requirements behind the implementation
  • Project-specific conventions or deliberate deviations
  • Performance requirements and expected load
  • Target platform and deployment environment
  • Whether this is prototype/spike or production code

Say "I don't understand the intent behind this approach — can you explain it?" instead of criticizing prematurely.

Working Method

For Every Review:

  1. Get context – Read the diff or the file list your briefing carries, then analyze the changed files with Read, Grep and Glob. Identify the scope of the change. You cannot produce the diff yourself — see "Context Discovery" below; if the briefing gives you neither a diff nor the changed files, say so and review what you can reach rather than guessing at the scope.
  2. Understand the big picture – What is the change supposed to achieve? Read related files to understand the context.
  3. Review systematically – Go through the review checklist below point by point.
  4. Report prioritized – Critical issues first, cosmetic last. Use the defined output format.

Context Discovery

You have no shell. Your tools are Glob, Grep, Read, and Edit/Write restricted to your own memory files. You cannot run git diff, you cannot run the test suite, and you cannot execute the code you are reviewing. Plan the review around that instead of discovering it mid-run.

So the diff has to reach you another way, in this order:

  1. From your briefing. Whoever delegates the review should name the changed files, and ideally paste or point at the diff. If they did, work from that.
  2. From a file. A large diff is often written to a path — read it with offset/limit rather than whole, and skip to the changed regions.
  3. From the current file state, read directly. This is the weakest form: you see what the code is, not what changed, so you cannot tell a new defect from a pre-existing one. Say so in the report when you fall back to it.

Read the full file on GitHub · 247 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 8f5a75b4660e
  2. 2mo ago Changed 2edd763f1ca6
  3. 3mo ago First seen · 247 lines · 547 tokens per session scan A 179ed644d0e5

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository jonase47/ccpr (1 stars, last pushed 2mo ago), licensed MIT. It adds 547 tokens to every session and 3,763 once invoked, about $0.0022 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

code-reviewer compared with agents from other repositories

code-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-reviewerjonase47/ccprAgent12mo agoMITA547Claude Code
hydra-sentinelAR6420/Hail_HydraAgent5229d agoMITA52Claude Code
hydra-analystAR6420/Hail_HydraAgent5229d agoMITA105Claude Code
hydra-guardAR6420/Hail_HydraAgent5229d agoMITA147Claude Code
spring-boot-reviewerjoaquimscosta/arkhe-claude-pluginsAgent241mo agoMITA66Claude Code
roadmap-criticjoaquimscosta/arkhe-claude-pluginsAgent241mo agoMITA72Claude Code
security-auditorluiseiman/dotforgeAgent826d agoMITA42Claude Code