How to Review Code with AI (2026): A PR Workflow Tested Against Nine Seeded Defects
Use AI review as a first-pass filter on a pull request, then verify every finding against the code before acting. Our auditable evidence currently contains two completed local CLI review runs on the same nine-defect fixture: Claude Code found 8 of 9 seeded defects, while GitHub Copilot CLI found 5 of 9. Both results are useful evidence for triage, not permission to merge without human review.
What the two completed runs show
| Completed reviewer | Seeded defects found | Adjudicated false positives |
|---|---|---|
| Claude Code 2.1.117 | 8/9 | 1 |
| GitHub Copilot CLI 1.0.70 | 5/9 | 1 |
A workflow that remains safe when AI is wrong
Run the AI before requesting human review; sort the findings by security and user impact; reproduce each claim in code or a failing test; then ask humans to focus on system intent, authorization, time boundaries, and business rules. In this fixture, both completed reviewers missed the seeded timezone-parsing defect, so a clean AI report is never a semantic sign-off.
Should AI review replace human review?
No. Treat it as a fast first pass and verify its output. The completed runs show material detection coverage and one false positive each on the same small fixture, not a safe replacement for human accountability.
What should humans check after an AI review?
Check intent, authorization, dates and time zones, boundary behavior, and whether the proposed fix changes the product contract. Require a reproducible case for every AI finding before changing code.
Sources and evidence
Sources
- Claude Code documentationChecked 2026-07-11Medium volatility
Use for Claude Code product positioning only; benchmark results come from the archived run record.
- GitHub Copilot plansChecked 2026-07-11High volatility
Use for Copilot plan and product context only; benchmark results come from the archived run record.
Evidence
- BenchmarkChecked 2026-07-11
Two completed local CLI runs on one fixed nine-defect fixture. This is not a ranking of PR-integrated review products or a general performance claim.
Methodology