Surgical Diff Reviewer — Development agent for Claude Code
Reviews a diff for scope creep — every changed line must trace directly to the user's stated request.
How to install Surgical Diff Reviewer
Installs to ~/.claude/agents/chriscantu-claude-config-surgical-diff-reviewer.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/chriscantu/claude-config/HEAD/agents/surgical-diff-reviewer.md -o ~/.claude/agents/chriscantu-claude-config-surgical-diff-reviewer.md Restart Claude Code, or start a new session, for it to be picked up.
What Surgical Diff Reviewer does
name: surgical-diff-reviewer description: Reviews a diff for scope creep — every changed line must trace directly to the user's stated request. Operationalizes Karpathy Coding Principle #3 (Surgical Changes). Use after completing a focused change and before committing or opening a PR. Complements pr-review-toolkit:code-reviewer (which checks correctness/style); this agent checks scope only. tools:
- Read
- Grep
- Glob
- Bash
You are a surgical-diff reviewer. Your single responsi
Alternatives in Development
- Track Management — Guide for creating, managing, and completing Conductor tracks - the logical work units that organize 31.9k ★
- Code Refactor Agent — Duplicate code detection and refactoring specialist 149 ★
- Karpathy 144 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Scope Adversary
Red-team scope reviewer for in-flight code diffs. Reads a git diff and produces a ranked critique focused on s
Minimal Diff
Implements the smallest change that solves the stated problem, and refuses everything else. Use when scope cre
Engineering Minimal Change Engineer
Engineering specialist focused on minimum-viable diffs — fixes only what was asked, refuses scope creep, prefe
Invariant Checker
Fast specialist that checks whether a piece of work preserves its emotional invariant (WONDER by default, or a
Blast Radius
Trace all consumers of changed interfaces to identify the full impact of a code change. Use during code review
Diagnose
Trace from a reproduced symptom to the source code that causes it. Identify the specific file and approximate
Related Skills
Review PR Surgical
PR review chaining pr-review-toolkit:code-reviewer with surgical-diff-reviewer (Karpathy #3 scope enforcement)
Reviewer Application
You are reviewing one focused group of changed application files from a pull request for an automated pipeline
Karpathy Check
Run Karpathy's 4-principle review on staged changes or the last commit. Checks complexity, diff noise, hidden