Review AI-generated code the way you'd review a teammate's: read it, find the issues, and drive quality up — using an advisor pass for a second opinion.
Read time13 min
LevelBasic → Advanced
Quiz3 questions
SectionBootcamp 2026
01 — what & why
You own everything you merge
The most important habit in the whole bootcamp: never merge code you can't explain. Review is where human judgement is non-negotiable.
Read AI output critically — check correctness, security, edge cases, and fit with existing patterns. Use a second model as an adversarial reviewer — reach for a stronger model (Opus 4.8) when the change is complex — as in Advisory Strategy and Advisor Strategy.
"It ran once" is not review. Correct-looking code can hide security holes and edge-case bugs.
02 — the technique
Review against a checklist
A checklist turns vibes into a repeatable standard the whole team shares.
✓
Correctness & edges
Does it handle empty/null/boundary/error paths?
✓
Security
Input validation, authz, secrets, injection.
✗
Don't rubber-stamp
"Looks fine" on code you didn't read is not review.
✗
Don't ignore fit
Correct but off-pattern code costs you later.
03 — worked example (Leave Management)
Reviewing an AI diff — three real issues
Claude produced this approve endpoint. It looks fine and it runs — but a real review finds three problems before merge.
Any acting user can approve — must be manager-only.
2
No re-validation
Approves without re-checking balance/overlap at decision time.
3
No state guard
Re-approves an already-approved/rejected request.
Now do this on YOUR project: run this checklist (authz, re-validation, state guards, edge cases) over a diff Claude wrote for you.
04 — best practices
You own everything you merge
AI-generated code gets the same scrutiny as a teammate’s — against a checklist, every time.
✓
Run /code-review before pushing
Free, terminal-native bug catching — costs nothing to run and catches issues before they become PR comments or production incidents.
✓
Review in a fresh subagent context
A reviewer who didn’t write the code finds what the author’s blind spots hide — separate the builder from the critic every time.
✗
Let AI review replace human review
AI review changes what humans focus on, not whether they review — it’s a first pass that handles the mechanical layer, not a substitute for judgment.
✗
Accept findings without a file:line cite
Require an exact file and line number for every finding — the single biggest lever against false positives and vague nitpicks.
Check your understanding
1. What is the non-negotiable rule of code review in this bootcamp?
Correct.Not quite — the correct answer is highlighted above.
2. Why is "it ran once" not the same as review?
Correct.Not quite — the correct answer is highlighted above.
3. What does a shared review checklist give the team?
Correct.Not quite — the correct answer is highlighted above.
Basic · GuidedProject: Leave Management System
Review an AI diff with a checklist
Objective: review a small piece of AI-generated code from your project against a correctness/security/fit checklist.
prompt
Review this code as a critical senior engineer.
Check correctness, edge cases, security, and fit with our patterns.
List concrete issues, most important first.
Take a recent AI-generated diff.
Run it through the checklist prompt.
Confirm each flagged issue is real by reading the code.
✓
Done when
You've found and verified the real issues in the diff.
✗
Watch out
Trusting the review prompt's output without reading the code yourself.
Discuss with your facilitator: which issue would you have missed without reading the code line by line?
Intermediate · Semi-guidedProject: Leave Management System
Find the planted bug
Objective: have Claude introduce a subtle bug or security issue into a working piece of code, then find it by review before running it.
Ask Claude to inject one subtle bug into working code.
Review to locate it — no running yet.
Confirm by running; note what tipped you off.
✓
Done when
You located the issue by reading, then confirmed it.
✗
Watch out
Only finding it by running — the point is to catch it in review.
Discuss with your facilitator: what class of bug is hardest to catch by eye, and how would you guard against it?
Advanced · Open challengeProject: Leave Management System
Review-and-improve with an advisor
Objective: review a larger change, use a second-model advisor pass to challenge your review, and drive the code to a mergeable state.
✓
Done when
The change is mergeable and you can explain every decision.
✗
Watch out
Deferring to the advisor without forming your own judgement.
Discuss with your facilitator: where did the advisor and your own review disagree — and who was right?