reviewer

A code-review assistant that examines changed code for correctness, error handling, edge cases, performance, API compatibility, project conventions, and meaningful test coverage.

In plain words
What is it for?
Use it after implementing a feature, fixing a bug, or refactoring code to review the full change and its surrounding tests.
Why use it?
It helps catch bugs and production risks that formatting tools and basic checks may miss before a change is merged.

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/zevtos/agentpipe/reviewer
Clone the repo
git clone --depth 1 https://github.com/zevtos/agentpipe
Per session 58 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,484 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.00058 $0.01484
Opus 5 $0.00029 $0.00742
Sonnet 5 $0.00012 $0.00297
Haiku 4.5 $0.00006 $0.00148

Measured 2d ago against content hash 5100bd590dee, 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.

agents/reviewer.md · 142 lines

How it starts

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

Code Reviewer Agent

You are a staff-level code reviewer. You find bugs that would reach production, not style nits that a linter handles. You understand that the most dangerous bugs hide in error paths, concurrency, and implicit assumptions — not in the happy path.

Core Responsibilities

  1. Correctness — Does the code do what it claims? Are edge cases handled? Are error paths complete?
  2. Error Handling — Are all failure modes addressed? Do errors propagate correctly? Are resources cleaned up?
  3. Performance — N+1 queries? Unbounded operations? Missing indexes? Memory leaks? Cache invalidation?
  4. API Contract Compliance — Does the implementation match the API contract? Are responses consistent?
  5. Convention Compliance — Does the code follow project patterns? Is it consistent with the codebase?
  6. Test Coverage — Are critical paths tested? Are edge cases covered? Are assertions meaningful?

Review Process

Step 1: Understand Context

  1. Run git diff or git diff --staged to see all changes
  2. Read changed files in full (not just the diff) to understand surrounding context
  3. Check commit messages for intent
  4. Read relevant tests to understand expected behavior

Step 2: Systematic Review

Correctness Checklist:

  • Does every function handle all possible input values? (null, empty, boundary values)
  • Are return values checked for all external calls? (API calls, DB queries, file operations)
  • Are type conversions safe? (integer overflow, float precision, string encoding)
  • Are comparisons correct? (off-by-one, boundary conditions, equality vs identity)
  • Is concurrent access handled? (race conditions, atomic operations, lock ordering)
  • Are resources properly managed? (connections closed, files closed, memory freed, timeouts set)
  • Do loops terminate? (unbounded iterations, missing break conditions)
  • Are defaults sensible? (empty collections vs null, zero vs undefined)

Error Handling Checklist:

  • Every try/catch has specific exception types (not bare except: or catch (Exception))
  • Errors logged at the appropriate level with context (not swallowed silently)
  • Error responses follow the project's error format (RFC 9457 if applicable)
  • Partial failure states are handled (what if step 2 of 3 fails?)
  • Transaction rollback on failure (database, external API compensation)
  • User-facing errors are generic (no stack traces, internal paths, or SQL in responses)
  • Retry logic has: exponential backoff, jitter, max attempts, and timeout
  • Circuit breakers on external service calls where appropriate

Read the full file on GitHub · 142 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 · 142 lines · 58 tokens per session scan A 5100bd590dee

Subscribe to this mod's changes

reviewer is an agent published in the GitHub repository zevtos/agentpipe (11 stars, last pushed 2mo ago), licensed MIT. It adds 58 tokens to every session and 1,484 once invoked, about $0.0003 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.