code-reviewer

code-reviewer is an agent for Claude Code from pyramidheadshark/claude-scaffold. It costs 17 tokens per session (620 once invoked), scanned A, original, MIT.

A code-review assistant that checks whether code follows the project's architecture, standards, tests, and security expectations, then reports findings by priority.

In plain words
What is it for?
Use it before merging a feature, after a major refactor, or when reviewing code from outside the usual project conventions.
Why use it?
It helps identify problems before code is merged, especially when a change crosses project layers or uses unfamiliar patterns.

Agent for Claude Code

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/pyramidheadshark/claude-scaffold/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/pyramidheadshark/claude-scaffold

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/pyramidheadshark/claude-scaffold/code-reviewer.svg)](https://agentmods.dev/agents/pyramidheadshark/claude-scaffold/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/pyramidheadshark/claude-scaffold/code-reviewer"><img src="https://agentmods.dev/badge/agents/pyramidheadshark/claude-scaffold/code-reviewer.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 620 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.1 $0.00017 $0.00620
Opus 5 $0.00009 $0.00310
Sonnet 5 $0.00003 $0.00124
Haiku 4.5 $0.00002 $0.00062

Measured 5d ago against content hash 7fc8b6ab2eed, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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.

.claude/agents/code-reviewer.md · 80 lines

How it starts

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

Agent: code-reviewer

Purpose

Reviews code for architectural consistency, adherence to project standards, and correctness. Produces a structured review report with prioritized findings.

When to Use

Before merging a feature branch. After a major refactor. When onboarding code written outside the standard patterns.

Review Checklist

Architecture

  • No business logic in api/ layer (routers only validate and route)
  • No framework imports (fastapi, sqlalchemy) in core/
  • Services use dependency injection, not direct instantiation
  • All external integrations are behind adapter interfaces in adapters/

Code Quality

  • All functions have type hints — mypy strict passes
  • No bare except: clauses — exceptions are specific
  • No TODO comments without linked issue numbers
  • No hardcoded strings where Enum or constant should be used
  • No commented-out code blocks

Tests

  • Every new public function in core/ has at least one unit test
  • New API endpoints have integration tests
  • No test adapts to fit existing code (tests define behaviour, code satisfies it)
  • Coverage did not decrease from baseline

Security

  • No secrets in code or logs
  • User inputs are validated via Pydantic before reaching service layer
  • SQL queries use parameterised statements (no f-string SQL)

ML-Specific (when applicable)

  • Model artifacts loaded via typed adapter, not raw pickle
  • ONNX preferred over pickle for model serialization
  • Large file paths come from config/env, not hardcoded

Output Format

## Code Review: {branch/PR name}

**Date**: {date}
**Reviewer**: Claude Code

### Critical (must fix before merge)
- [ ] {issue} — `{file}:{line}` — {explanation}

### Major (should fix before merge)
- [ ] {issue} — `{file}:{line}` — {explanation}

### Minor (fix in follow-up)
- [ ] {issue} — `{file}:{line}` — {explanation}

### Approved Patterns (worth noting)
- {good pattern observed}

Read the full file on GitHub · 80 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. 5d ago First seen · 80 lines · 17 tokens per session scan A 7fc8b6ab2eed

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository pyramidheadshark/claude-scaffold (4 stars, last pushed 4mo ago), licensed MIT. It adds 17 tokens to every session and 620 once invoked, about $0.0001 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-31.

Related

Other agents, from other repositories

history-management

The runtime keeps conversation history for each agent session and sends a provider-facing working history to the model. Two complementary limits operate on different representations.

zeroclaw-labs/zeroclaw · 0 tokens

internals

This page is the architecture-depth companion to the rest of the Agents section: how the runtime enforces per-agent permissions, scopes memory, and attributes logs. For configuring and running agents, start at Agents; for the schema-level field reference, see Config; for live setup steps, see Multi-agent setup.

zeroclaw-labs/zeroclaw · 0 tokens

architecture-reviewer

Architecture and design review agent — read-only. Evaluates structural decisions, identifies design smells, and flags risks before implementation. Never modifies code. Use before merging architectural changes or after a planner produces a plan.

FlorianBruniaux/claude-code-plugins · 45 tokens

planner

Strategic planning agent — read-only exploration before implementation. Use to decompose tasks, analyze codebases, and produce a detailed plan. Never modifies files.

FlorianBruniaux/claude-code-plugins · 33 tokens

planning-coordinator

Synthesis agent for dynamic research teams — read-only. Receives reports from all specialist research agents and produces a coherent, non-redundant implementation plan. Spawned automatically when 2+ agents are selected in /plan-start Phase 4.

FlorianBruniaux/claude-code-plugins · 54 tokens

pr-fix

Analyze one or more failing CI jobs on a GitHub PR (using logs already collected) and fix them - edit sources, validate locally, commit and push. Use after pr-watch reports failures. Returns a request for the user when it cannot fix cleanly.

hardisgroupcom/sfdx-hardis · 56 tokens