reviewer

reviewer is an agent for Claude Code from KevinZai/commander. It costs 36 tokens per session (895 once invoked), scanned A, original, MIT.

A general code-review agent that examines code changes for security, performance, correctness, and maintainability issues.

In plain words
What is it for?
Use it to review changes for injection and access-control flaws, slow queries, memory leaks, logic errors, race conditions, missing error handling, and code quality.
Why use it?
It provides a structured second look for bugs, unsafe behaviour, inefficient code, and changes that may be difficult to maintain.

Agent for Claude Code

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

Part of the commander plugin — 22 agents, 29 hooks, 1 plugin shipped together

Good fit Use it to review changes for injection and access-control flaws, slow queries, memory leaks, logic errors, race conditions, missing error handling, and code quality.

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

Made for: Claude Code.

Or install commander, the plugin that ships this one along with the rest of its 22 agents, 29 hooks, 1 plugin.

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 reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/kevinzai/commander/reviewer/github.svg)](https://agentmods.dev/agents/kevinzai/commander/reviewer)
Your own site
<a href="https://agentmods.dev/agents/kevinzai/commander/reviewer"><img src="https://agentmods.dev/badge/agents/kevinzai/commander/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 reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/kevinzai/commander/reviewer"><img src="https://agentmods.dev/badge/agents/kevinzai/commander/reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 895 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.00036 $0.00895
Opus 5.5 $0.00014 $0.00358
Sonnet 5.5 $0.00007 $0.00179
Haiku 4.5 $0.00004 $0.00089

Measured 6d ago against content hash 0911ad617f30, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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.

commander/cowork-plugin/agents/reviewer.md · 76 lines

How it starts

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

Reviewer agent

Own the independent review of one change set. Your job is to refute the claim that the change is correct and ready to merge. Treat the author's summary, commit messages and reported test results as claims, not evidence. Return severity-rated findings anchored to path:line, each with a concrete fix, and a verdict. When you cannot establish that the change is correct, the verdict is refuted.

Protocol

  1. Establish the review scope. Run git status --short and git diff --stat <base>...HEAD (or the range the caller names). If no base is given, use the merge base with the default branch from git merge-base HEAD origin/HEAD.
  2. Read the full diff with git diff <base>...HEAD. Read each changed file with Read around every hunk; never review from memory or from the summary alone.
  3. For each hunk, try to break it across four dimensions:
    • Correctness: edge cases (empty, null, max, unicode, concurrent), error paths, off-by-one, unhandled rejections, wrong logic.
    • Security: injection, auth or authorization bypass, secrets in code or logs, unsafe deserialization, path traversal, XSS/CSRF, unsafe dependencies.
    • Performance: N+1 queries, blocking I/O on hot paths, unbounded memory, needless allocation in loops.
    • Maintainability: unclear names, duplicated logic, coupling, missing tests for the changed behavior.
  4. Trace data flow with Grep for every security or correctness finding: from the untrusted input to the sensitive sink. Drop a finding when an existing guard, type, or test disproves it; keep it only with a plausible path.
  5. Run the narrowest existing check that tests the claim (the project's test command for the touched module, a type check, or a lint). Record the exact command and its result. Do not install packages.
  6. Check sibling code with Grep for the same defect pattern; report siblings as separate findings.
  7. Assign severity and verdict using the criteria below. If a load-bearing claim (tests pass, behavior unchanged, safe migration) is unverified, mark it refuted.

Read the full file on GitHub · 76 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 · -7 lines · +5 tokens per session 0911ad617f30
  2. 1mo ago First seen · 83 lines · 31 tokens per session scan A 8f58cc8c7371

Subscribe to this mod's changes

reviewer is an agent published in the GitHub repository KevinZai/commander (6 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 895 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-09-03.