code-reviewer

code-reviewer is an agent for Claude Code from chan4lk/specclaw. It costs 24 tokens per session (1,583 once invoked), scanned A, original, MIT.

A code reviewer that examines files changed for a specclaw change across correctness, security, simplicity, naming, complexity, tests, design fit, scope, and unused code.

In plain words
What is it for?
Use it to review a change’s modified source files against its specification, design, and tasks, producing review-report.md.
Why use it?
It turns a broad review into a structured report with findings marked as BLOCK, WARN, or NOTE.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions subagents.

Part of the specclaw plugin — 7 skills, 2 agents shipped together

Good fit Use it to review a change’s modified source files against its specification, design, and tasks, producing review-report.md.

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

Made for: Claude Code.

Or install specclaw, the plugin that ships this one along with the rest of its 7 skills, 2 agents.

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/chan4lk/specclaw/code-reviewer/github.svg)](https://agentmods.dev/agents/chan4lk/specclaw/code-reviewer)
Your own site
<a href="https://agentmods.dev/agents/chan4lk/specclaw/code-reviewer"><img src="https://agentmods.dev/badge/agents/chan4lk/specclaw/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/chan4lk/specclaw/code-reviewer"><img src="https://agentmods.dev/badge/agents/chan4lk/specclaw/code-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 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,583 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.00024 $0.01583
Opus 5.5 $0.00010 $0.00633
Sonnet 5.5 $0.00005 $0.00317
Haiku 4.5 $0.00002 $0.00158

Measured 6d ago against content hash a62c225a7e07, 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 6d 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.

plugins/specclaw/agents/code-reviewer.md · 129 lines

How it starts

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

Identity

You are code-reviewer, a specclaw subagent. You review changed source files for a given change and produce a structured review-report.md.

Two modes

Whole-change (the default, at /specclaw:verify). Everything below applies.

Task-scoped (build.task_review, after a single task's commit). You are reviewing ONE TASK, and the rules are different:

  • Read .specclaw/changes/<change>/reviews/<task>.diff once. It carries the base and head SHAs, the task brief, the diff stat and the full diff.
  • Do not crawl the repository. If something outside the diff worries you, state it as one named risk and move on. Without that rule a per-task reviewer re-reads the codebase once per task — twelve times in a twelve-task build — and an unaffordable gate is a gate that gets switched off.
  • Judge spec compliance first: did this task build what it said it would, nothing more, nothing less? In spec mode that is the whole job; in full mode the ten dimensions follow. Scope creep and silently-dropped scope are what this seat exists for, and they are invisible in a whole-change review that sees twelve tasks of diff and asks "is this good code?".
  • Write .specclaw/changes/<change>/reviews/<task>.md and end with exactly one of BLOCK | WARN | NOTE | PASS. Bash acts on that token — a BLOCK marks the task failed and re-dispatches it through the normal retry path.

In whole-change mode, read changes/<change>/reviews/ first when it exists, and do not repeat a finding already recorded there. Two seats billing twice for one finding is how a reviewer's output starts being skimmed.

Inputs

You will be invoked with a change name and these context blocks in your prompt:

  • Changed files — content of every file modified for this change
  • Spec — .specclaw/changes/<change>/spec.md
  • Design — .specclaw/changes/<change>/design.md (may be empty if not authored)
  • Tasks — .specclaw/changes/<change>/tasks.md (may be empty)

Read the full file on GitHub · 129 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. 6d ago Changed · -73 tokens per session a62c225a7e07
  2. 1mo ago Changed · +26 lines 29ba765571d9
  3. 1mo ago First seen · 103 lines · 97 tokens per session scan A 11e198d4f52e

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository chan4lk/specclaw (13 stars, last pushed 2d ago), licensed MIT. It adds 24 tokens to every session and 1,583 once invoked, about $0.0001 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

Other agents, from other repositories

style-analyzer

Use this agent after UI implementation or when the user requests design consistency audits. Ensures visual consistency, catches design drift from locked tokens, identifies technical debt in UI code, and guards the integrity of the design language. Context: Multiple UI components were built during the cycle. user…

drobins25/craft · 203 tokens

maze-architect

Route planner for perpendicular PR review. Reads a raw diff with ZERO intent context (no story files, no commit messages, no PR descriptions) and generates 2-4 questions that the code demands answers to. These questions become coordinates for parallel maze-runner review agents. The architect throws the frisbee blind …

drobins25/craft · 157 tokens

verifier

Verification agent for /craft:research-verify. Takes a single claim from existing research and attempts to disprove it using independent primary sources. Returns a verdict (CONFIRMED/REFUTED/PARTIALLYTRUE/UNVERIFIABLE) with evidence. NOT a researcher. Does not discover new topics or cast a wide net. Takes one claim…

drobins25/craft · 178 tokens

changes-review

Changes review agent that verifies plan compliance, code quality, and goal achievement in a single pass. Returns structured JSON findings.

maxritter/pilot-shell · 27 tokens

spec-review

Spec review agent that verifies alignment with user requirements and challenges dangerous assumptions. Returns structured JSON findings.

maxritter/pilot-shell · 22 tokens

qa-tester

The QA Tester of the aSPARK team. Use in the Review phase (/demo-day) to test the running application hands-on in a real browser: verify every acceptance criterion from the spec, explore beyond the happy path, check console and network, and file reproducible bugs. Requires a browser integration (Claude in Chrome…

a-lottes/aSPARK · 79 tokens