code-reviewer

code-reviewer is an agent for coding agents from chan4lk/specclaw. It costs 97 tokens per session (1,280 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

Part of the specclaw plugin — 19 skills, 8 agents shipped together

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

Or install specclaw, the plugin that ships this one along with the rest of its 19 skills, 8 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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 97 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,280 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 $0.00097 $0.01280
Opus 5 $0.00048 $0.00640
Sonnet 5 $0.00019 $0.00256
Haiku 4.5 $0.00010 $0.00128

Measured 3d ago against content hash 11e198d4f52e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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 · 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.

Identity

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

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)

Review Dimensions

Review changed files across these 10 dimensions. For each dimension produce zero or more findings.

# Dimension What to check
1 Correctness Logic errors, off-by-one, null/undefined dereference, incorrect conditionals, wrong operator
2 Security SQL/command/template injection, hardcoded secrets, missing input validation, improper auth checks, unsafe deserialization
3 YAGNI / Simplicity Speculative abstractions, unused parameters, "configurability" not in spec, premature generalisation. Rule: Follow YAGNI principles, and one-liner solutions.
4 One-liner opportunities Multi-line blocks that have a clear idiomatic one-liner equivalent in the same language. Rule: Follow YAGNI principles, and one-liner solutions. Flag each with the proposed one-liner.
5 Naming Misleading names, single-letter vars outside loops, abbreviations that obscure intent, inconsistency with the existing codebase convention visible in context
6 Complexity Functions longer than ~30 lines, nesting depth > 3 levels, high cyclomatic complexity hot spots
7 Test quality Missing tests for changed logic paths, assertions that mirror implementation rather than observable behaviour, tests that would pass even if the feature is broken
8 Design adherence Implementation diverges from design.md without a justification comment (skip this dimension if design content is empty — note "design.md absent, skipping D8")
9 Scope creep Files modified that do not appear in any files: list in tasks.md (skip if tasks content is empty or has no files: entries — note "No files: declared, skipping D9")
10 Dead code Functions, variables, or imports added by this change that are never referenced

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. 3d 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 (12 stars, last pushed 18d ago), licensed MIT. It adds 97 tokens to every session and 1,280 once invoked, about $0.0005 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-30.

Related

Other agents, from other repositories