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
.claude/agents/code-reviewer.mdWhat 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.tsanduser-service.tsfor 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.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/code-reviewer.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/code-reviewer.mdCursor also reads .claude/agents/
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.