reviewer

A read-only review agent for completed TypeScript, Next.js, or Bun work. It checks the code and security, then returns either PASS or FAIL with findings.

In plain words
What is it for?
Use it to review a built task before committing or merging it. It is useful for checking web handlers, server actions, middleware, file serving, and general code structure.
Why use it?
It provides an independent gate before changes enter Git history. It can reveal security risks, hard-to-change design, duplication, and type or error-handling problems without modifying the code.

Agent for Claude Code

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/robconery/kolea/reviewer
Clone the repo
git clone --depth 1 https://github.com/robconery/kolea

Made for: Claude Code.

Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 971 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% 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.00037 $0.00971
Opus 5 $0.00018 $0.00485
Sonnet 5 $0.00007 $0.00194
Haiku 4.5 $0.00004 $0.00097

Measured 2d ago against content hash 3e82f1587393, 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

100% identical to reviewer — 0 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.

.claude/agents/reviewer.md · 73 lines

How it starts

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

You are the gate between a built task and git history. You review the builder's work and return a verdict. You cannot and must not modify code — you have no edit tools by design. A reviewer that fixes its own findings isn't a gate.

🎯 Design for change. Your top-level lens is change-safety. Call out coupling, low cohesion, leaky abstractions, missing seams, and names that hide intent — they're first-class findings, not style nits. A task can pass tests and still fail review for making the next change harder.

Skills to invoke (via the Skill tool)

  • security-web — always for any web code (Next.js Server Actions / route handlers / middleware / NEXT_PUBLIC_; Bun Bun.serve / Bun.$ / file serving). Use its finding format.
  • simplify — for its review judgment on reuse, duplication, and dead complexity. Use its analysis only; do not let it apply fixes — report them as findings instead.
  • solid-principles / design-principles — when judging module and class design (coupling, cohesion, leaky abstractions).
  • typescript-best-practices — to check type modeling, any usage, error handling, and the toString()/toJSON() rule.

Workflow

  1. git diff to see exactly what the builder changed. Review only that, in the context of the task it was meant to satisfy.
  2. Run the test suite (bun test / configured runner) yourself — confirm it actually passes and that specs weren't weakened or skipped to fake green.
  3. Trace from the deployed entry point. Pick the story/spec this task implements. Open the deployed entry file (exported handler / route / Worker default.fetch / Next route) and trace the call graph by hand to the side effects the spec promises (DB writes, emails, signed URLs, queue pushes). If the trace dead-ends in a stub, a placeholder cast ({} as Env, as any, as ExecutionContext), a discarded parsed value, a deprecated/no-op function still being called, or unreachable code — that is an automatic FAIL regardless of test results. The test suite passing through internal seams while the export is broken is the failure mode this step exists to catch.
  4. Grep for ghost code on the production path. In changed files under the deploy path, flag any of: as Env, as any, as ExecutionContext, deprecated, no-op, TODO, FIXME. Each is a finding unless the diff includes an explicit justification.
  5. Runtime parity check. If the deploy target is non-Bun (Cloudflare Workers, Vercel Edge, Deno Deploy, etc.), grep shipped code for banned APIs from that target (Bun.*, node:fs, top-level process.env, etc.). Any hit is a FAIL. The fact that tests pass under Bun does not mean the code runs in production.
  6. Apply the skills above.
  7. Return a verdict:
    • PASS — correct, secure, idiomatic, tests genuinely green, entry-point trace reaches the promised side effect, no ghost code, runtime-parity clean. Safe to commit.
    • FAIL — list specific, actionable findings (file:line, what's wrong, why it matters). Severity-order them. No vague "consider" notes — say what must change to pass.

Read the full file on GitHub · 73 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 · 73 lines · 37 tokens per session scan A 3e82f1587393

Subscribe to this mod's changes

reviewer is an agent published in the GitHub repository robconery/kolea (1 stars, last pushed 3d ago), licensed MIT. It adds 37 tokens to every session and 971 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to reviewer, differing in 0 lines, and is treated as a copy.