Code Review Response Evaluator
Evaluate reviewer suggestions against your changes and codebase conventions to produce a structured verdict for each.
Inputs Required
- •Git diff of your changes
- •List of reviewer suggestions (numbered or bulleted)
- •Codebase access (if in claude-code) or relevant context files
Workflow
- •Parse the diff — Identify files changed, additions, deletions, and the intent behind changes
- •Gather context — If codebase access available, read related files to understand:
- •Existing patterns and conventions
- •Similar implementations elsewhere
- •Project structure and architecture
- •Evaluate each suggestion against:
- •Author's apparent intent
- •Codebase conventions
- •Technical merit
- •Practical tradeoffs
- •Produce verdicts with reasoning
Evaluation Criteria
For each suggestion, consider:
| Category | Questions to Ask |
|---|---|
| Style | Does surrounding code follow this convention? Is it project-wide or localized? |
| Architecture | Does the suggestion align with existing patterns? What's the refactor cost? |
| Performance | Is the concern measurable? Does it matter in this context? |
| Correctness | Is there a real bug? Edge case? Or is it overly defensive? |
| Refactoring | Does it improve clarity? Is it scope creep for this change? |
Output Format
For each suggestion, output:
code
## Suggestion N: "[Brief quote or summary]" **Verdict:** ACCEPT | REJECT | DISCUSS **Reasoning:** [2-4 sentences explaining why, referencing codebase patterns or technical tradeoffs] **Alternative (if applicable):** [If rejecting but a middle ground exists, propose it]
Verdict Guidelines
- •ACCEPT — Suggestion is valid, improves the code, and aligns with codebase style
- •REJECT — Suggestion conflicts with codebase conventions, author intent, or introduces unnecessary complexity
- •DISCUSS — Suggestion has merit but tradeoffs exist; needs conversation with reviewer
Default to DISCUSS when:
- •Both approaches are defensible
- •Suggestion is valid but scope/timing is questionable
- •Codebase has inconsistent patterns in this area
Context Gathering
When codebase access is available, examine:
- •Same file — Patterns above/below the change
- •Related files — Similar implementations, shared utilities
- •Config files — Linters, formatters, style guides (
.eslintrc,rustfmt.toml, etc.) - •Tests — How similar code is tested elsewhere
When context is provided as text, work with what's given and note if more context would change the verdict.
Example
Diff excerpt:
diff
+ const userData = await fetchUser(id); + if (!userData) return null; + return processUser(userData);
Suggestion: "Use early return pattern and add explicit type annotation"
Evaluation:
code
## Suggestion 1: "Use early return pattern and add explicit type annotation" **Verdict:** ACCEPT (partial) **Reasoning:** Early return is already used here. Type annotation aligns with other functions in this file which use explicit return types. The early return comment may indicate reviewer missed the existing pattern. **Alternative:** Accept the type annotation, clarify that early return is already implemented.