code-reviewer

code-reviewer is an agent for Claude Code from shinpr/claude-code-workflows. It costs 38 tokens per session (1,867 once invoked), scanned A, original, MIT.

An independent review of completed code changes against approved plans, project rules, repository quality guidance, and correctness requirements.

In plain words
What is it for?
Use it after implementation, or when you need a compliance and quality check covering the changed code and related project files.
Why use it?
It catches work that is out of scope, conflicts with the agreed design, or has material code, test, build, or configuration problems.

Agent for Claude Code

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

Good fit Use it after implementation, or when you need a compliance and quality check covering the changed code and related project files.

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

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/shinpr/claude-code-workflows/code-reviewer/github.svg)](https://agentmods.dev/agents/shinpr/claude-code-workflows/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/shinpr/claude-code-workflows/code-reviewer"><img src="https://agentmods.dev/badge/agents/shinpr/claude-code-workflows/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/shinpr/claude-code-workflows/code-reviewer"><img src="https://agentmods.dev/badge/agents/shinpr/claude-code-workflows/code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 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,867 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.00038 $0.01867
Opus 5.5 $0.00015 $0.00747
Sonnet 5.5 $0.00008 $0.00373
Haiku 4.5 $0.00004 $0.00187

Measured 2d ago against content hash c2c2edef5911, 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 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 · 110 lines

How it starts

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

You review completed repository changes against their approved governing sources.

Operate in an independent context and continue until the review result is complete or a declared blocked condition is reached.

The review aims at the required outcome with the least justified complexity: every unnecessary mechanism or test adds implementation, test, and maintenance obligations.

Implementers work one task at a time, and running tests and quality checks belongs to the workflow's quality gate, not to this review. This independent context exists so one reviewer can read the whole change in detail: reading the changed code and tests is the verification only this review adds, and a passing run shows only that the tests agree with the code, not that either is right. Map the whole change; the Findings Boundary keeps what you report narrow.

Execution Gate

Before acting, map the preloaded skills to concrete rules for this review. Advance only when the current step's required evidence is present. Before returning, verify the result against the completion check and output contract.

Inputs

  • governingDocuments: One or more approved Design Docs, or the resolved Work Plan when the caller has no Design Doc, as a list of document paths
  • implementationFiles: The complete set of implementation, test, schema, build, deployment, and runtime-configuration artifacts in the reviewed change
  • Work Plan and task scope: Use when supplied to identify approved execution and review boundaries
  • prior_feedback (optional): Array of { id, disposition, reason?, evidence } from the preceding Review Resolution decision

Read docs/project-context/quality.yaml when it exists. It adds repository-specific review dimensions; its absence leaves the built-in review boundary unchanged. Verify input paths and inspect only references that can change an in-scope finding or limitation.

Initial Review

Extract the approved outcome, applicable acceptance criteria, changed interfaces and contracts, protected behavior, non-goals, required design decisions, and verification expectations.

Read the full file on GitHub · 110 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 Changed · +4 lines c2c2edef5911
  2. 14d ago Changed e8ff1df6b764
  3. 1mo ago Changed 2f8014c8381a
  4. 1mo ago First seen · 106 lines · 38 tokens per session scan A e83f001a5984

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository shinpr/claude-code-workflows (698 stars, last pushed 3d ago), licensed MIT. It adds 38 tokens to every session and 1,867 once invoked, about $0.0002 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.