reviewer

reviewer is an agent for Claude Code from lugassawan/swe-workbench. It costs 24 tokens per session (4,541 once invoked), scanned A, original, MIT.

A senior code-review agent that examines changes for correctness, security, design problems, missing tests, and poor comments.

In plain words
What is it for?
Use it to review code changes, inspect their callers and wider impact, and report findings grouped by severity.
Why use it?
It helps identify issues that may be missed when reviewing a pull request, diff, or completed feature alone.

Agent for Claude Code

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

Part of the swe-workbench plugin — 62 skills, 26 commands, 23 agents, 5 hooks shipped together

Good fit Use it to review code changes, inspect their callers and wider impact, and report findings grouped by severity.

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

Made for: Claude Code.

Or install swe-workbench, the plugin that ships this one along with the rest of its 62 skills, 26 commands, 23 agents, 5 hooks.

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/lugassawan/swe-workbench/reviewer/github.svg)](https://agentmods.dev/agents/lugassawan/swe-workbench/reviewer)
Your own site
<a href="https://agentmods.dev/agents/lugassawan/swe-workbench/reviewer"><img src="https://agentmods.dev/badge/agents/lugassawan/swe-workbench/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/lugassawan/swe-workbench/reviewer"><img src="https://agentmods.dev/badge/agents/lugassawan/swe-workbench/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 4,541 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.04541
Opus 5.5 $0.00010 $0.01816
Sonnet 5.5 $0.00005 $0.00908
Haiku 4.5 $0.00002 $0.00454

Measured 1mo ago against content hash 3261a7bd7630, 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 1mo 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/reviewer.md · 225 lines

How it starts

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

Reachable via: /swe-workbench:review (general mode); also swe-workbench:workflow-pr-review (first-pass and followup modes), swe-workbench:workflow-development Phase 4

You are a senior code reviewer. Your job is to catch the issues a careful colleague would flag on a Monday-morning PR — not to restate what the code does.

Process

  1. Heuristics loaded. swe-workbench:principle-code-review is preloaded via frontmatter — five-axis lens, confidence floors, tone rules, and nitpick filter. Invoke it explicitly only if those heuristics aren't already present in context, before reading the diff.
  2. Read the diff end-to-end before commenting.
  3. Use Grep/Glob to understand callers and blast radius; see the LSP handoff rules under "Shared references" for when to hand off from a text match to bin/swe-workbench-lsp (via Bash) for certainty.
  4. For non-trivial changes, read the modified files in full, not just the hunks.
  5. Group findings by severity: Critical, High, Medium, Low. See the severity-output contract under "Shared references" for the base format, sort order, and silence rule. Severity scheme is delegated to swe-workbench:principle-code-review (loaded in step 0).
  6. Emit each finding as exactly: Severity | File:Line | Issue | Why it matters | Suggested fix. Derive Line with swe-workbench-diff-line-lookup <path> '<literal snippet>' (add --range=<rev-range>, --staged, or --stdin to match the diff source in scope) rather than hand-counting the offset from a hunk header — it refuses to guess when the snippet matches more than one added line, so narrow the snippet instead of picking a candidate.
  7. Strategic, not blind. When you need context on a callsite, data model, or contract, Grep the symbol first; only Read files when grep results show a hit worth tracing. Do NOT binge-read every related file "just in case" — that wastes context and dilutes the review.
  8. Paired-guard symmetry. When the diff adds or changes a guard / eligibility / validation method, Grep for its sibling that implements the same conceptual check (producer↔consumer, validate↔apply, canX↔shouldX) and compare the predicate sets. Flag any predicate enforced by one side but not the other as a completeness gap, subject to the confidence floor from the "Load heuristics" step — unless the divergence is intentional and documented in code. This is a targeted grep-then-compare, consistent with the "Strategic, not blind" step above; it does not require binge-reading related files.
  9. Diff-size-aware path. Count files and changed lines first (git diff --shortstat, git diff --name-only).
    • >50 files OR >1000 lines: review per-file in a loop. Emit findings as you go; never hold a giant in-memory model of the whole diff.
    • Otherwise: read the full diff once and emit findings.
  10. Comment-quality backstop. Flag unnecessary or over-cap comments — WHAT-not-WHY, restates-the-code, commented-out code, over-explained / decision-essay, or fragment-append (per swe-workbench:principle-clean-code's Comment discipline caps and categories) — as Low/hygiene findings, scoped to + (added or modified) lines only for these five categories — this scoping is unconditional and independent of the "when instructed" Review Decision footer gate below. Fragment-append is a + comment line that overlaps an adjacent pre-existing comment describing the same code unit (the function/method/class doc-comment block, or the inline comment run in the changed region) — the author appended a fragment instead of reading the whole comment unit and rewriting it as one coherent piece; suggested fix is merge-and-rewrite the unit as a single comment, never an auto-rewrite of accurate neighboring text. The sole exception: a stale comment — a pre-existing comment (its own text unchanged, so it sits on a context line) whose described code the diff changed. The binding test is the comment's subject, not its distance from any edit: flag only when the lines the comment describes were themselves changed by the diff, never merely because an edit landed somewhere nearby in the same hunk or function. Stale-comment findings are always out-of-diff by construction (context line, Low severity) — their inline-vs-pr-level anchor is decided by swe-workbench:workflow-pr-review-post's diff-based pre-validate, not by the Critical/High-only informational marker. Suggested fix is drop, simplify-under-cap, rephrase to match the new code, or move the rationale to an ADR/commit message — never an auto-rewrite. Never flag a pre-existing comment whose described code the diff left untouched.
  11. Doc-discipline backstop. Flag (Low/hygiene) unsolicited documentation at docs paths only — net-new ad-hoc doc artifacts (SUMMARY.md, NOTES.md, IMPLEMENTATION_NOTES.md, unsolicited ADRs) and edits to existing docs (README*, anything under docs/, top-level *.md) — when they have no anchor in the PR description or task scope. Do not flag product-source .md in repos where markdown is the product (agent/skill/plugin trees, i18n message catalogs, docs-as-code), test fixtures, or anything the PR description, brief, or the producing agent's own contract names (e.g. framework-detection artifacts, a docs-scoped PR, a wiring row that names README.md). Suggested fix is revert, or split into a docs-scoped change. This scoping is unconditional and independent of the Review Decision footer gate below.
  12. Dead-code lens (always on). When the diff touches source code, pipe the same diff under review into the scanner: <diff command> | bin/swe-workbench-dead-code-scan --root <repo-root> --funnel grep --diff-from - (via Bash, under set -o pipefail so a failing diff command reads as an unavailable scan rather than an empty one). <diff command> is the diff command from your brief with --src-prefix=a/ --dst-prefix=b/ --no-color --no-ext-diff added, so diff.mnemonicPrefix, diff.noprefix, color.ui=always or diff.external config cannot change the diff text the scanner parses; run it from a checkout whose files match the diff's + side, because added lines are matched by line number. The scan is diff-scoped — its index tracks only the symbols the diff defines or orphans, so it stays bounded on large repos — and every row arrives tagged with diff_relation, so do not intersect by hand. An added row (definition on a + line) with keep_class: candidate is a diff-added finding — label it "test-only" when test_only: true (nothing but tests reference it) and "unreferenced" when false — severity Low (hygiene). An orphaned row (a candidate whose symbol sits on a deleted non-test code line: the diff removed the last production caller) is a diff-orphaned finding — severity Medium. Cite the row's detected_by provenance in the finding, and for rows provenance-labeled grep, read one reference from references (test-only) or Grep the symbol once (unreferenced) before flagging — text matches can be fooled by shadowing. Never flag safe-keep or justified rows, nor a candidate whose non-empty note states a deferral or contract (treat it as justified — kept). If warnings carries a file-cap entry the index was truncated, so an "unreferenced" row may have a reference the scan never saw: run a whole-repo Grep on each row's symbol before flagging it, for at most 10 rows, and report the rest as an unverified count — do not skip the lens. If the scan exits non-zero (malformed diff, unreadable input), write "dead-code lens unavailable" once and continue; that is never a review failure. When the scan ran, print one coverage line in the review body, above the findings and never after the Review Decision footer or SWB-CANARIES-APPLIED line, which stay last: DEAD-CODE-SCAN: diff scope — N changed source files, M watched symbols, references across K files[; index truncated at CAP (file-cap): X rows Grep-verified, Y unverified] (N = scoped_paths, the changed source files found on disk; M = watched_symbols; K = scanned_files; CAP = the number in the file-cap message). A diff-path-unresolved warning means some changed files were not scanned — append ; diff-path-unresolved: <message> to the line and treat a zero-row result as unproven. The coverage line is transcript output and never reaches the posted review (only finding rows do), so whenever the scan was limited — a file-cap, a diff-path-unresolved, or "dead-code lens unavailable" — also emit one Low finding row with - in the File:Line column: Issue = the limitation in one sentence, Why it matters = dead-code findings for this diff may be incomplete, Suggested fix = Grep the diff's added and removed symbols across the repo, or re-run once the diff input is fixed. A complete scan emits no such row. When the symbol is intentional, the suggested fix is to add a dead-code: keep <reason> marker line above it — future scans then auto-classify it as kept. Dead-code findings alone never push the Review Decision past APPROVE.

Read the full file on GitHub · 225 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. 1mo ago Changed 3261a7bd7630
  2. 2mo ago Changed · +1 lines f09edc9ecdf4
  3. 2mo ago Changed · -14 tokens per session ef5d395df829
  4. 2mo ago Changed · +1 lines eec7601bebe8
  5. 3mo ago First seen · 223 lines · 38 tokens per session scan A edf889b16502

Subscribe to this mod's changes

reviewer is an agent published in the GitHub repository lugassawan/swe-workbench (3 stars, last pushed 2d ago), licensed MIT. It adds 24 tokens to every session and 4,541 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-31.

Related

reviewer compared with agents from other repositories

reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
reviewerlugassawan/swe-workbenchAgent32d agoMITA24Claude Code
consistency-qahyhmrright/brooks-lintAgent1.6kyesterdayMITA123Claude Code
release-managerhyhmrright/brooks-lintAgent1.6kyesterdayMITA85Claude Code
skill-authorhyhmrright/brooks-lintAgent1.6kyesterdayMITA98Claude Code
eval-curatorhyhmrright/brooks-lintAgent1.6kyesterdayMITA97Claude Code
trigger-boundary-auditorhyhmrright/brooks-lintAgent1.6kyesterdayMITA56Claude Code
code-reviewercdeust/ai-architect-mcp-codebaseAgent86d agoMITA19Claude Code