Skip to main content
subagent CX Codex

code-reviewer-pro — Claude Code subagent: code review, how to install

code-reviewer-pro — a Claude Code subagent that reviews code for quality, security and best practices. Runs right after you write or modify code.

no license ★ 1,357 updated 2026-03-01

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/agents/code-reviewer.md
Open on GitHub

What code-reviewer-pro does

The subagent checks readability, testability, architectural consistency and performance. Acts as a senior engineer: finds vulnerabilities, evaluates test coverage, checks SOLID compliance and explains why a suggested change improves the code. Uses Context7 to look up standards and patterns, Sequential Thinking for systematic analysis.

Output is a terminal report with counts of critical and non-critical findings. Without the haiku model in the agent config, reviews will be slow or time out on large diffs.

What it helps with

  • check code for SQL injection, XSS and leaked secrets
  • evaluate test coverage for new features
  • find duplicated logic and SRP violations
  • identify N+1 queries and inefficient loops
  • verify UI code meets WCAG accessibility standards

Example prompts for the agent

  • Review the last commit for security and quality issues
  • Check auth.ts and user-service.ts for code quality
  • Review changes in api/orders — I added a new endpoint there

How to install code-reviewer-pro

Manually: put the files in place

.claude/agents/code-reviewer.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about code-reviewer-pro

How do I install code-reviewer-pro in Claude Code?

Save the subagent file at .claude/agents/code-reviewer.md in the project root.

What does code-reviewer-pro do?

It analyzes code for vulnerabilities, duplication, readability, test coverage and alignment with the project's architecture. Provides prioritized feedback with examples of fixes.

Why is the haiku model specified in the subagent config?

Haiku speeds up reviews of large diffs and reduces the risk of timeouts. Without it, the subagent may run slowly or hang on substantial changes.

Similar subagents

All subagents for Code review and refactoring →

From the same set112

The whole set →
spec-elicitation spec-elicitation conducts a rigorous interview to turn rough feature concepts into detailed technical specifications before writing code. CX Codex +1 ★ 1,357repo stars audit-ports-adapters The audit-ports-adapters command audits ports and adapters in Rust code, checking trait placement, implementations, and whether use cases depend on abstractions. CX Codex +1 ★ 1,357repo stars project-architect project-architect analyzes project requirements, recommends a tech stack, and scaffolds folder structure for new projects or architecture refactoring. Handles web apps, microservices, monorepos, and backend services. CX Codex ★ 1,357repo stars parallel-tasks parallel-tasks pulls task queues from issue trackers and assigns independent items across multiple parallel agents without file conflicts. CX Codex +1 ★ 1,357repo stars audit-env-variables audit-env-variables scans environment variables in a JS/TS codebase, flags unused ones, guesses the service behind each variable name, and maps where it's referenced in code. CX Codex +1 ★ 1,357repo stars release-manager release-manager handles SemVer bumps, drafts changelog records, and verifies checklists before production deployment. CX Codex ★ 1,357repo stars incremental-feature-build The incremental-feature-build command breaks a request into testable features, tracks progress in project files, and works through features one at a time. Use it for multi-stage implementation tasks. CX Codex +1 ★ 1,357repo stars spec-workflow-setup spec-workflow-setup — a slash command that walks you through wiring the spec-workflow MCP server into Claude: dependencies, .mcp.json, .spec-workflow.json, then a connection check. CX Codex +1 ★ 1,357repo stars

Project sponsors

Companies that keep this analytics open