code-reviewer

code-reviewer is an agent for Claude Code from joymin5655/Agent. It costs 99 tokens per session (913 once invoked), scanned A, original, MIT.

A read-only reviewer that examines code changes and reports issues with correctness, logic, maintainability, style, and tests. It groups findings by severity and leaves security findings to a separate security reviewer.

In plain words
What is it for?
Use it after modifying code or when reviewing a pull request to inspect the diff, compare nearby code, and identify blockers, major issues, minor issues, and notes.
Why use it?
It provides a structured second look at a diff before changes are merged, helping catch broken behavior, missing tests, and code-quality problems.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the agent-harness plugin — 14 skills, 1 command, 4 agents, 11 hooks shipped together

Good fit Use it after modifying code or when reviewing a pull request to inspect the diff, compare nearby code, and identify blockers, major issues, minor issues, and notes.

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

Made for: Claude Code.

Or install agent-harness, the plugin that ships this one along with the rest of its 14 skills, 1 command, 4 agents, 11 hooks.

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/joymin5655/agent/code-reviewer/github.svg)](https://agentmods.dev/agents/joymin5655/agent/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/joymin5655/agent/code-reviewer"><img src="https://agentmods.dev/badge/agents/joymin5655/agent/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/joymin5655/agent/code-reviewer"><img src="https://agentmods.dev/badge/agents/joymin5655/agent/code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 913 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.00099 $0.00913
Opus 5.5 $0.00040 $0.00365
Sonnet 5.5 $0.00020 $0.00183
Haiku 4.5 $0.00010 $0.00091

Measured 20d ago against content hash 55c7c42f966b, 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 20d 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 · 103 lines

How it starts

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

code-reviewer

Role

Independent reviewer of a diff. You do not write code. You read the diff, the surrounding context, and produce a structured findings list.

Inputs you expect

  • A diff range (git diff <base>..<head> or a list of files).
  • Optional context: the user's intent, the PR title, related issues.
  • If .agent/conventions.md exists, read it first — apply the project's conventions on top of the generic checks below.

Process

  1. Read the diff first. Understand what changed before reading surrounding files.
  2. For each change, ask:
    • Is it correct? (logic, edge cases, error handling)
    • Is it safe? (input validation, auth, secrets, race conditions)
    • Is it idiomatic for this codebase? (read 2–3 neighbouring files)
    • Is it tested? (corresponding *.test.* updated)
    • Is it minimal? (over-engineering lens — see below)
  3. Categorise findings by severity:
    • Blocker — must fix before merge (broken logic, security hole, missing rollback)
    • Major — should fix before merge (slow path, missing test for critical branch)
    • Minor — nice to fix (naming, dead code, style drift)
    • Note — informational (alternative approach, future cleanup)

Over-engineering lens

Flag code whose best fix is deletion or replacement with something that already exists:

  • Unrequested abstractions, config knobs, or "flexibility" (single caller behind an interface, speculative generality).
  • A new dependency where stdlib or an existing in-repo util covers it.
  • Reimplementation of a function that already exists in the codebase — name the existing one in the finding.
  • A diff that could be materially shorter with identical behavior.

Severity mapping: duplicate-of-existing / avoidable new dependency → Major; speculative knobs, verbose-but-working code → Minor. Never a Blocker on minimality alone.

Not over-engineering (never flag as such): input validation at trust boundaries, error handling that prevents data loss, security measures, accessibility, explicitly requested features.

Read the full file on GitHub · 103 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. 20d ago Changed · +1 lines 55c7c42f966b
  2. 1mo ago Changed · +21 lines · +22 tokens per session bbd2cf0d4a63
  3. 1mo ago First seen · 81 lines · 77 tokens per session scan A 46c9b826f5b4

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository joymin5655/Agent (2 stars, last pushed today), licensed MIT. It adds 99 tokens to every session and 913 once invoked, about $0.0004 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-31.

Related

Other agents, from other repositories

harmonyos-app-resolver

HarmonyOS application development expert specializing in ArkTS and ArkUI. Reviews code for V2 state management compliance, Navigation routing patterns, API usage, and performance best practices. Use for HarmonyOS/OpenHarmony projects.

affaan-m/ECC · 49 tokens

kotlin-reviewer

Kotlin and Android/KMP code reviewer. Reviews Kotlin code for idiomatic patterns, coroutine safety, Compose best practices, clean architecture violations, and common Android pitfalls.

affaan-m/ECC · 38 tokens

security-reviewer

Security vulnerability detection and remediation specialist. Use PROACTIVELY after writing code that handles user input, authentication, API endpoints, or sensitive data. Flags secrets, SSRF, injection, unsafe crypto, and OWASP Top 10 vulnerabilities.

affaan-m/ECC · 52 tokens

cpp-reviewer

Expert C++ code reviewer specializing in memory safety, modern C++ idioms, concurrency, and performance. Use for all C++ code changes. MUST BE USED for C++ projects.

affaan-m/ECC · 41 tokens

cavecrew-reviewer

Diff/branch/file reviewer. One line per finding, severity-tagged, no praise, no scope creep. Output format path:line: : . . Use for "review this PR", "review my diff", "audit this file". Skips formatting nits unless they change meaning.

JuliusBrussee/caveman · 75 tokens

residue

Sweeps a scope for residue - the half of a refactor that never got deleted. Files nothing imports, files reachable only from their own tests, shims left at an old address, one concept living under two names, budgets whose slack stopped enforcing them, guards reading a baseline that no longer exists. Reports leads with…

langwatch/langwatch · 171 tokens