Skip to main content
subagent CX Codex

code_reviewer — Claude Code subagent for code review

The code_reviewer Claude Code subagent reviews code changes for defects, security risks, and test gaps. It takes a diff and relevant repository context as input.

no license ★ 776 updated 2026-11-12

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 does

code_reviewer examines a change set and returns a Markdown report with an overall assessment, review scope, and findings ranked by severity. Each finding includes its location, likely consequence, a practical fix, and a way to verify it. The report also states plainly when it finds no actionable issue.

Findings must be supported by the diff or repository context; speculation cannot be presented as fact. The agent needs the changes and relevant details about surrounding code, requirements, or tests. It does not claim tests passed without evidence that they ran.

What it helps with

  • spot defects in a diff and describe their consequences
  • identify security and performance risks in code changes
  • check whether tests cover the changed behavior
  • get a concrete fix for each actionable finding

Example prompts for the agent

  • Review this diff and suggest fixes for confirmed issues.
  • Check these changes for security risks and point to the affected code.
  • Assess whether the tests cover these changes and suggest verification steps.

How to install code_reviewer

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

How do I install code_reviewer in Claude Code?

Add the agent file at .claude/agents/code_reviewer.md.

What does code_reviewer do?

It reviews code changes and produces a Markdown report with evidence, consequences, fixes, and verification suggestions for its findings.

What should I provide to code_reviewer?

Provide the changes as a diff, patch, changed files, or code excerpt, along with relevant repository context such as requirements and test evidence.

Similar subagents

All subagents for Code review and refactoring →

From the same set24

The whole set →
documentation_engineer documentation_engineer — a Claude Code subagent that writes documentation from supplied code, interfaces, and requirements. It turns a documentation request and source material into a task-focused Markdown document. CX Codex ★ 776repo stars data_analyst data_analyst — a subagent for Claude Code turns structured data and query results into reproducible findings. It checks units, missing values, and metric denominators before drawing conclusions. CX Codex ★ 776repo stars root_cause_debugger The root_cause_debugger Claude Code subagent investigates failures using logs, traces, and repository context. It ranks plausible causes and lays out how to repair and verify the issue. CX Codex ★ 776repo stars research_analyst The research_analyst Claude Code subagent turns a research question and supplied sources into a structured report. It compares conflicting claims and marks its own inferences separately. CX Codex ★ 776repo stars accessibility_tester accessibility_tester is a Claude Code subagent that reviews interface evidence for accessibility requirements. It covers keyboard use, focus, semantics, contrast, and interaction. CX Codex ★ 776repo stars business_requirements_analyst The business_requirements_analyst Claude Code subagent turns unclear stakeholder requests into testable business requirements. It connects goals to acceptance criteria and flags gaps or conflicting statements. CX Codex ★ 776repo stars test_driven_qa test_driven_qa — a subagent for Claude Code turns requirements and repository materials into a QA plan or test artifact. It ranks test scenarios and keeps observed evidence separate from proposed checks. CX Codex ★ 776repo stars performance_engineer The performance_engineer Claude Code subagent finds application, API, database, and infrastructure bottlenecks from measurements. It builds an optimization plan with baselines, experiments, and regression checks. CX Codex ★ 776repo stars

Project sponsors

Companies that keep this analytics open