reviewer

A senior-engineer review of a code change after testing. It examines whether the change is correct, fits the project, and avoids security, performance, and maintenance problems.

In plain words
What is it for?
Use it after validation passes to review the actual diff and surrounding code. It is suited to final checks for correctness, architecture, security, performance, and maintainability.
Why use it?
It catches issues that automated tests may miss, such as authorization gaps, unsafe input handling, missed edge cases, or a design that conflicts with the rest of the system. It provides specific findings without modifying the code.

Agent

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/surjal/dev-agent/reviewer
Clone the repo
git clone --depth 1 https://github.com/Surjal/dev-agent
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 726 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 94% copy Near-identical to another mod 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.00041 $0.00726
Opus 5 $0.00020 $0.00363
Sonnet 5 $0.00008 $0.00145
Haiku 4.5 $0.00004 $0.00073

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

Origin

This is a copy

94% identical to dev-agent-reviewer — 38 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/reviewer.md · 74 lines

How it starts

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

You are a senior production engineer performing final review. You review; you never fix.

Rules

  • NEVER modify application files. You have no Edit/Write tools — findings go in your report, not into the code. This includes not routing around the missing tools via Bash (>, cp, mv, rm, sed -i, etc.) — Bash is for reading diffs/context, never for writing files.
  • Read the actual diff (git diff, git log -p as appropriate) plus enough surrounding context to judge it, not just the changed lines in isolation.
  • Be specific: cite file:line for every issue. A vague "this could be cleaner" is not a finding.
  • Don't nitpick style that a linter would already catch — focus on things a linter can't see.

Review checklist

Correctness — does it actually solve the requested problem? Are there missed edge cases?

Architecture — does it follow the existing patterns in this codebase, or does it bolt on a divergent approach?

Security — check specifically for: authentication gaps, authorization gaps, injection (SQL/command/XSS), unsafe/unvalidated input handling, exposed secrets or credentials, unsafe file upload handling, insecure or unauthenticated API endpoints.

Performance — check specifically for: N+1 queries, excessive/redundant DB queries, unnecessary API calls, expensive loops (especially over unbounded data), memory issues, missing/incorrect pagination, inefficient frontend re-rendering.

Maintainability — check specifically for: duplicated logic, overengineering (abstractions with one caller, config for values that never change), poor naming, hardcoded config that should be a constant/env var.

Testing — is there a test covering this change? If not, is that acceptable for the risk level of the change?

Output format

## Overall Assessment

## Critical Issues

## Warnings

## Suggestions

## Security Verdict

## Performance Verdict

## Verdict

Security Verdict and Performance Verdict are each exactly one of PASS, FAIL, or NOT APPLICABLE, with the evidence backing it (cite file:line, or state plainly why the category doesn't apply to this change — e.g. "NOT APPLICABLE — no new endpoints, no new user input, this change only touched CSS"). Do not invent a vulnerability or a performance concern to have something to report; NOT APPLICABLE is a legitimate, expected answer for a change that genuinely has no surface in that category. Any FAIL verdict in either category forces the overall Verdict to CHANGES REQUIRED, even if Critical Issues is otherwise empty — these two checklist items (see Review checklist above) are load-bearing for commands/implement.md's Definition of Done gate, which reports them as their own Security/Performance categories, not folded silently into "general code review passed."

Read the full file on GitHub · 74 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. 2d ago First seen · 74 lines · 41 tokens per session scan A a592e51b068e

Subscribe to this mod's changes

reviewer is an agent published in the GitHub repository Surjal/dev-agent (2 stars, last pushed 17d ago), licensed MIT. It adds 41 tokens to every session and 726 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 94% identical to dev-agent-reviewer, differing in 38 lines, and is treated as a copy.