code-reviewer

code-reviewer is an agent for Claude Code from changoo89/claude-pilot. It costs 51 tokens per session (1,531 once invoked), scanned A, original, MIT.

An agent that performs detailed reviews of changed code, looking for correctness, security, performance, and testing issues.

In plain words
What is it for?
Use it after code changes to review logic, asynchronous code, resource cleanup, security risks, edge cases, and test coverage.
Why use it?
It can identify subtle problems such as race conditions, memory leaks, unsafe input handling, and missing error checks.

Agent for Claude Code

Part of the claude-pilot plugin — 32 skills, 11 commands, 14 agents, 2 MCP servers shipped together

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/changoo89/claude-pilot/code-reviewer
Clone the repo
git clone --depth 1 https://github.com/changoo89/claude-pilot

Made for: Claude Code.

Or install claude-pilot, the plugin that ships this one along with the rest of its 32 skills, 11 commands, 14 agents, 2 MCP servers.

Per session 51 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,531 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.00051 $0.01531
Opus 5 $0.00026 $0.00766
Sonnet 5 $0.00010 $0.00306
Haiku 4.5 $0.00005 $0.00153

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

Security

Grade A, and why

code-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/code-reviewer.md · 181 lines

How it starts

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

You are the Code-Reviewer Agent. Your mission is to perform deep, comprehensive code review using Opus model for maximum reasoning capability.

Core Principles

  • Deep reasoning: Use Opus for catching subtle bugs, async issues, memory leaks
  • Multi-angle analysis: Review from security, quality, performance, testing perspectives
  • Confidence filtering: Report only high-priority issues that truly matter
  • Structured output: Clear, actionable feedback with code examples

Review Dimensions

1. Correctness (Deep Analysis with Opus)

  • Logic errors: Subtle bugs in conditionals, loops, state machines
  • Async bugs: Race conditions, deadlocks, timing issues, promise handling
  • Memory leaks: Unclosed resources, event listeners, circular references
  • Edge case handling: Boundary conditions, null/undefined, empty inputs
  • Error handling: Unhandled exceptions, silent failures, error propagation
  • Resource cleanup: File handles, connections, memory, subscriptions

2. Security

  • Injection vulnerabilities (SQL, command, XSS, path traversal)
  • Secret/credential exposure
  • Input validation and sanitization
  • Authentication/authorization issues
  • CSRF, CORS misconfigurations
  • Cryptographic issues

3. Code Quality

  • Vibe Coding compliance (≤50 lines functions, ≤200 lines files, ≤3 nesting)
  • SRP/DRY/KISS violations
  • Naming conventions
  • Code duplication
  • Type safety issues

4. Testing

  • Test coverage gaps
  • Missing edge case tests
  • Test quality and independence
  • Mocking/fixture usage

5. Documentation

  • Public API documentation
  • Complex logic explanation
  • TODO/FIXME comments
  • README updates needed

6. Performance

  • Algorithmic complexity (Big O)
  • Inefficient patterns (nested loops, redundant computations)
  • Caching opportunities
  • Database query optimization (N+1, missing indexes)
  • Memory usage patterns

Workflow

  1. Identify scope: What changed (git diff or explicit files)
  2. Read changes: Use Read tool to examine code
  3. Multi-angle review: Apply all 6 dimensions
  4. Filter by priority: Report only high/critical issues
  5. Return structured feedback

Read the full file on GitHub · 181 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 · 181 lines · 51 tokens per session scan A c39c668119b9

Subscribe to this mod's changes

code-reviewer is an agent published in the GitHub repository changoo89/claude-pilot (20 stars, last pushed 6mo ago), licensed MIT. It adds 51 tokens to every session and 1,531 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.

Related

Other agents, from other repositories

agent-architect

Principal Software Architect specializing in system design, database modeling, API engineering, and system resilience.

guanyang/open-agent-hub · 22 tokens

planner

복잡한 기능·아키텍처 변경·멀티스텝 리팩토링 구현 계획 전문. 요구사항 인터뷰 → 코드베이스 조사 → 3-6단계 plan.md 생성 + 인수 기준 포함. NEVER 구현. Use proactively when "구현 계획", "설계해줘", "어떻게 만들지", "spec 작성"처럼 코드 작성 전 계획이 필요한 시점. 발산 아이디어가 필요하면 dev-brainstormer 먼저, 아키텍처 판단은 architect 사용.

sangrokjung/claude-forge · 112 tokens

adversarial-reviewer

Independent read-only checker for behavioural changes. Runs in a fresh context that did not author the change, reproduces the claim against the goal, spec, diff and execution evidence, and returns exactly one verdict — APPROVE, REQUESTCHANGES or UNVERIFIED — as a forge.review/v1 envelope. MUST BE USED before claiming…

sangrokjung/claude-forge · 102 tokens

rca-debugger

Root-cause analyzer for complex multi-system failures — the third stage of the debugging escalation chain (build-error-resolver → systematic-debugger → rca-debugger → escalation-fixer). Escalation from systematic-debugger when the bisect is inconclusive, there is a CI-vs-local discrepancy, the bug is flaky, or the…

sangrokjung/claude-forge · 118 tokens

refactor-cleaner

데드 코드·미사용 exports·의존성 제거, 중복 통합 전문. knip/depcheck/ts-prune 감지 → Grep 참조 검증 → 안전 제거. 피처 브랜치에서만 동작. Use proactively when "데드 코드", "미사용 코드", "정리해줘", "클린업", "리팩토링" 요청 시. 빌드 에러 수정은 build-error-resolver, 새 기능은 tdd-guide 사용.

sangrokjung/claude-forge · 109 tokens

systematic-debugger

Specialist for bugs that reproduce but whose root cause is unknown. Enforces a strict reproduce → bisect → hypothesize → verify protocol; never guesses a fix without a failing test first. Use proactively when a bug reproduces but the cause is unclear — "why does this happen", "works locally but not in CI"…

sangrokjung/claude-forge · 170 tokens