
The Trove library
Code Review for AI Agents
Complete reference for AI coding agents performing code reviews.
Create a free account to read it all
Read a previewFree this week.
You can read the contents and the first 2,000 characters.
Free accounts get the whole book.
- By Sahar Carmel
- 22 chapters
- Updated Nov 1, 2026
- 179 readers
What’s inside
- Naming & Readability
- Functions & Methods
- Classes & Modules
- Code Smells & Refactoring
- Type Safety & Data Integrity
- Error Handling
From the first page
This book is a lookup reference, not a narrative. It is designed for AI agents performing code reviews. Do not read it sequentially during a review — use the decision matrix (Chapter 2) to jump to the relevant chapter.
Page lookup: Chapter N is on page N + 1 (page 1 is the cover). Rule X.Y is in Chapter X, so it is on page X + 1 — for example, Rule 16.5 is on page 17.
Preview · 2,000 of 819,875 characters
Contents
- 01Code Review for AI Agentsp.1
- 02How to Use This Bookp.2
- Workflowp.2
- Severity Scalep.2
- Chapter Mapp.2
- Cross-References to Other Agent Booksp.2
- Per-Chapter Structurep.2
- 03Master Decision Matrixp.3
- Path 1: Pattern-Based — "I See This in the Code"p.3
- Path 2: Task-Based — "I'm Reviewing a PR That Does X"p.3
- Path 3: Severity-Based — Quick Filterp.3
- 04Naming & Readabilityp.4
- Red Flag Tablep.4
- Rulesp.4
- Verificationp.4
- Common Mistakesp.4
- 05Functions & Methodsp.5
- Red Flag Tablep.5
- Rulesp.5
- Verificationp.5
- Common Mistakesp.5
- 06Classes & Modulesp.6
- Red Flag Tablep.6
- Rulesp.6
- Verificationp.6
- Common Mistakesp.6
- 07Code Smells & Refactoringp.7
- Smell Catalog — Master Lookup Tablep.7
- Rulesp.7
- Smell-to-Action Quick Referencep.7
- Refactoring Safety Checklistp.7
- Severity Decision Treep.7
- Verificationp.7
- Common Mistakesp.7
- 08Type Safety & Data Integrityp.8
- Red Flag Tablep.8
- Rulesp.8
- Verificationp.8
- Common Mistakesp.8
See all 22 parts
- 09Error Handlingp.9
- Red Flag Tablep.9
- Rulesp.9
- Verificationp.9
- Common Mistakesp.9
- 10Performance Red Flagsp.10
- Red Flag Tablep.10
- Rulesp.10
- Verificationp.10
- Common Mistakesp.10
- 11Test Qualityp.11
- Red Flag Tablep.11
- Rulesp.11
- Verificationp.11
- Common Mistakesp.11
- 12Concurrency & Asyncp.12
- Red Flag Tablep.12
- Rulesp.12
- Verificationp.12
- Common Mistakesp.12
- 13Security Smellsp.13
- Red Flag Tablep.13
- Rulesp.13
- Verificationp.13
- Common Mistakesp.13
- 14API Design Qualityp.14
- Red Flag Tablep.14
- Rulesp.14
- Verificationp.14
- Common Mistakesp.14
- 15Dependencies & Architecturep.15
- Red Flag Tablep.15
- Rulesp.15
- Verificationp.15
- Common Mistakesp.15
- 16Writing Review Commentsp.16
- Comment Structurep.16
- Comment Propertiesp.16
- Severity Calibrationp.16
- Comment Grouping and Priorityp.16
- Comment Typesp.16
- Review Summary Templatep.16
- Common Mistakes When Writing Reviewsp.16
- 17Database & ORM Patternsp.17
- Red Flag Tablep.17
- Rulesp.17
- Verificationp.17
- Common Mistakesp.17
- 18Observability & Loggingp.18
- Red Flag Tablep.18
- Rulesp.18
- Verificationp.18
- Common Mistakesp.18
- 19Diff-Scanning Heuristics for AI Agentsp.19
- Scopep.19
- Referencesp.19
- The 5-Pass Strategyp.19
- File Priority Matrixp.19
- Large PR Heuristicsp.19
- Context Expansion Rulesp.19
- Red Flags That Deserve Extra Scrutinyp.19
- Common Scanning Mistakesp.19
- 20Distributed Systems & Service Boundariesp.20
- Red Flag Tablep.20
- Rulesp.20
- Verificationp.20
- Common Mistakesp.20
- 21Appendices: False-Positive Guidance, Severity Overrides & Cheat Sheetp.21
- Section 1: "When NOT to Flag" Addendump.21
- Section 2: Severity Override Matrixp.21
- Section 3: Quick Reference Cheat Sheetp.21
- 22Putting This Book to Work — An Automated Review Skillp.22
- 20.1 The Idea: From Reference to Reviewerp.22
- 20.2 The Reviewer Agent — How It Reads This Bookp.22
- 20.3 The Skill That Drives It — An Automated PR Pipelinep.22
- 20.4 Companion Books and Trigger Signalsp.22
- 20.5 Operating Rulesp.22



