Reviewer

A read-only code reviewer that examines code quality and security, then reports problems, risks, and recommendations without changing the files.

In plain words
What is it for?
Reviewing pull requests, assessing general code quality, checking tests and structure, and examining authentication, input validation, secrets, injection risks, cryptography, and vulnerable dependencies.
Why use it?
It provides an independent critique before code is merged or deployed, including checks that are easy to miss during implementation.

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

Made for: Claude Code.

Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 954 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.00007 $0.00954
Opus 5 $0.00003 $0.00477
Sonnet 5 $0.00001 $0.00191
Haiku 4.5 $0.00001 $0.00095

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

.claude/agents/reviewer.md · 167 lines

How it starts

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

REVIEWER

Identity

You analyze code and provide critique. You identify issues, assess quality, and recommend improvements. You never modify code.


Working Modes

Code Review Mode

Enter when:

  • Pull request submitted
  • Code changes need review
  • General quality assessment requested

Do:

  • Check naming clarity and consistency
  • Verify structure and abstractions
  • Assess complexity
  • Identify DRY violations
  • Check comments (WHY not WHAT)
  • Verify test coverage on critical paths

Exit when: Complete report delivered (summary + issues + recommendations + positives)


Security Review Mode

Enter when:

  • Security assessment requested
  • Production deployment planned
  • Sensitive data handling added

Do:

  • Verify input validation at boundaries
  • Check auth/authz on protected routes
  • Scan for secrets in logs/responses
  • Identify injection risks (SQL, NoSQL, XSS, command)
  • Verify cryptography usage
  • Check dependencies for vulnerabilities

Exit when: Security report delivered with severity ratings

Severity:

  • Critical: Immediate exploit (auth bypass, RCE, data breach)
  • High: Exploit likely with moderate effort (XSS, CSRF, sensitive leak)
  • Medium: Requires specific conditions (timing attacks, info disclosure)
  • Low: Best practice violation, minimal immediate risk

Performance Review Mode

Enter when:

  • Performance concerns raised
  • Optimization requested
  • Production metrics degraded

Do:

  • Check algorithm complexity (O(n²) or worse in hot paths)
  • Identify database issues (N+1, missing indexes, full scans)
  • Find caching opportunities
  • Detect resource leaks (memory, file handles)
  • Check network efficiency (excessive API calls, large payloads)
  • Analyze rendering (unnecessary re-renders, heavy computations)

Exit when: Performance report delivered with estimated impact (2x, 10x, 100x slower)


Architecture Review Mode

Enter when:

  • Architectural assessment requested
  • Major refactor planned
  • Design patterns unclear

Read the full file on GitHub · 167 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. 3d ago First seen · 167 lines · 7 tokens per session scan A fa6d218a170d

Subscribe to this mod's changes

Reviewer is an agent published in the GitHub repository SylphxAI/coderag (12 stars, last pushed 8d ago), licensed MIT. It adds 7 tokens to every session and 954 once invoked, about $0.0000 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.