# code-reviewer

code-reviewer is a Claude Code subagent that independently evaluates git diffs for SOLID principles, architectural flaws, and security risks.

- subagent · `type=agent` · Claude Code, Codex, Cursor · ★ 155 repo stars
- Author: serpro69
- License: Elastic-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/serpro69/claude-toolbox/tree/HEAD/klaude-plugin/agents/code-reviewer.md
- Updated: 2026-10-29
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/agents/serpro69-code-reviewer

## What it does

Running on `claude-opus-5-5`, this subagent examines changes from an objective stance. The calling setup strips out conversation logs, debugging iterations, and implementation struggles. Instead, the agent receives only the diff manifest, scope specifications, design rationale, and predefined checklist profiles.

Its tool access is locked down to `Read`, `Grep`, `Glob`, and `mcp__capy__capy_search`. Because terminal and git execution tools are absent, it analyzes contracts and consumers purely through source inspection without running test suites directly.

The review workflow enforces strict file ordering: protocol instructions load before analyzing code diffs. Without a valid absolute path under the `## Plugin Root` header, the agent halts and reports an error immediately.

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add serpro69/claude-toolbox
```
In the agent chat (not a shell):
```text
/plugin install kk@claude-toolbox
```

2. **Manually: put the files in place**
- File: `.claude/agents/code-reviewer.md` — For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

### Codex

**Manually: put the files in place**
- File: `.codex/agents/code-reviewer.toml` — Codex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/

### Cursor

**Manually: put the files in place**
- File: `.cursor/agents/code-reviewer.md` — Cursor also reads .claude/agents/

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/serpro69/claude-toolbox/tree/HEAD/klaude-plugin/agents/code-reviewer.md

## When to use it
- evaluate git diffs against SOLID design principles
- spot security flaws and architectural smells in pull requests
- verify interface contracts across dependent components
- conduct code reviews free from implementation session bias

## Example prompts
- Run the code-reviewer subagent on this pull request diff
- Review the staged changes against our design spec using code-reviewer
- Invoke subagent code-reviewer to check boundary contracts across consumers

## Similar
- [ns-reviewer](https://affpapa.org/en/nevibecode/skills/ns-reviewer.md) — skill · 140 installs
- [adversarial-reviewer](https://affpapa.org/en/nevibecode/skills/adversarial-reviewer.md) — skill · 813 installs
- [git-pr-reviewer](https://affpapa.org/en/nevibecode/skills/git-pr-reviewer.md) — skill · 339 installs
- [general-code-reviewer](https://affpapa.org/en/nevibecode/agents/general-code-reviewer.md) — subagent · ★ 372 repo stars
- [architect-reviewer](https://affpapa.org/en/nevibecode/agents/qdhenry-architect-reviewer.md) — subagent · ★ 1357 repo stars
- [code-review-specialist](https://affpapa.org/en/nevibecode/skills/luongnv89-code-review-specialist.md) — skill · ★ 47494 repo stars

## Other versions with the same name
- [code-reviewer · anthropics](https://affpapa.org/en/nevibecode/agents/anthropic-code-reviewer.md) — 31050 installs
- [code-reviewer · anthropics](https://affpapa.org/en/nevibecode/agents/code-reviewer.md) — 31050 installs
- [code-reviewer · voltagent](https://affpapa.org/en/nevibecode/agents/voltagent-community-code-reviewer.md) — 31050 installs
- [code-reviewer · chriswiles](https://affpapa.org/en/nevibecode/agents/chriswiles-code-reviewer.md) — ★ 6091 repo stars
- [code-reviewer · worldflowai](https://affpapa.org/en/nevibecode/agents/affaan-mustafa-code-reviewer.md) — ★ 6739 repo stars

From the same set: [serpro69/claude-toolbox](https://affpapa.org/en/nevibecode/by/serpro69/claude-toolbox.md) — 30 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
