dev-agent-reviewer

A senior-engineer review agent that examines a completed code change for correctness, architecture, security, performance, and maintainability.

In plain words
What is it for?
Use it after validation to inspect the diff, surrounding code, edge cases, access controls, unsafe input handling, and resource usage.
Why use it?
It catches important problems that automated tests and linters may not detect, without modifying the implementation.

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/dev-agent-reviewer
Clone the repo
git clone --depth 1 https://github.com/Surjal/dev-agent
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 664 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.00038 $0.00664
Opus 5 $0.00019 $0.00332
Sonnet 5 $0.00008 $0.00133
Haiku 4.5 $0.00004 $0.00066

Measured 2d ago against content hash fb64d49a3f1a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dev-agent-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

Copies of this mod

1 near-identical copy found in the catalogue:

  • reviewer — 94% identical, 38 lines differ
.opencode/agents/dev-agent-reviewer.md · 66 lines

How it starts

The opening of the file, as written. The whole thing — 66 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. Your edit/write permissions are denied at the tool layer -- 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.).
  • 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). 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 are load-bearing for commands/implement.md's Definition of Done gate.

Read the full file on GitHub · 66 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 · 66 lines · 38 tokens per session scan A fb64d49a3f1a

Subscribe to this mod's changes

dev-agent-reviewer is an agent published in the GitHub repository Surjal/dev-agent (2 stars, last pushed 17d ago), licensed MIT. It adds 38 tokens to every session and 664 once invoked, about $0.0002 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-31.