# code-review

code-review — a subagent for Claude Code that reviews a pull request through gh and posts a comment listing confirmed bugs. Skips closed, draft, or already-reviewed PRs without prompting.

- subagent · `type=agent` · Claude Code, Codex, Cursor · ★ 406 repo stars
- Author: syahiidkamil
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/syahiidkamil/Software-Engineer-AI-Agent-Atlas/tree/HEAD/.claude/agents/code-review.md
- Updated: 2026-06-25
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/agents/syahiidkamil-code-review

## What it does

The subagent breaks the review into stages. Three Haiku agents first check whether the PR is worth reviewing at all — closed, draft, automated, or already seen. Then five Sonnet agents run in parallel, each taking a different angle: `CLAUDE.md` compliance, shallow bug scan, `git blame` history, comments from earlier PRs on the same files, and code comments in the modified files.

Every candidate issue gets a confidence score from 0 to 100. Only issues scoring 80 or above reach the final comment. That threshold filters out linter-level nitpicks, pre-existing bugs, and intentional functional changes — things a senior engineer would skip.

The comment includes a short bug description, a direct link to the line with the full commit SHA, and a quote from `CLAUDE.md` when the violation traces there. Build and type-checking are out of scope: the subagent assumes CI handles those separately. The `gh` CLI must be installed with read access to PRs and write access to comments.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/agents/code-review.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-review.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-review.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/syahiidkamil/Software-Engineer-AI-Agent-Atlas/tree/HEAD/.claude/agents/code-review.md

## When to use it
- catch bugs in a pull request without manually reading the diff
- verify changes against project `CLAUDE.md` rules
- filter false positives using a per-issue confidence threshold
- post a review comment with links to exact lines and commit SHAs
- skip draft, closed, or already-reviewed PRs automatically

## Example prompts
- Review pull request #42 for bugs
- Check PR #17 against `CLAUDE.md` and flag any issues
- Run code-review on the latest open PR in this repo

## Similar
- [github-pr-review](https://affpapa.org/en/nevibecode/skills/github-pr-review.md) — skill · 581 installs
- [bug-review](https://affpapa.org/en/nevibecode/skills/bug-review.md) — skill · 264 installs
- [pr-review-comments](https://affpapa.org/en/nevibecode/skills/pr-review-comments.md) — skill · 2600 installs
- [groove-groovebook-review](https://affpapa.org/en/nevibecode/skills/groove-groovebook-review.md) — skill · 508 installs
- [addressing-pr-review-comments](https://affpapa.org/en/nevibecode/skills/addressing-pr-review-comments.md) — skill · 108 installs
- [post-review-comments](https://affpapa.org/en/nevibecode/skills/post-review-comments.md) — skill · ★ 1636 repo stars

From the same set: [syahiidkamil/software-engineer-ai-agent-atlas](https://affpapa.org/en/nevibecode/by/syahiidkamil/software-engineer-ai-agent-atlas.md) — 26 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
