How to Review Agent-Written PRs: Break the Code on Purpose and See If Tests Fail
ITower__Education · reddit · 2026-10-12
The poster shares practical tactics for reviewing agent-generated PRs, where the danger is everything looks finished — green tests, confident descriptions, easy to merge. Three tips: (1) ignore diff size and ask what the change can break — a tiny auth change deserves more scrutiny than a big UI refactor; (2) compare against the original request, not the PR description — the feature worked but a stated requirement was silently missing; (3) since agents write their own tests, deliberately break the code and check tests actually fail — surprisingly often they don't. Asks how others split full vs. risk-based review.
More from coding & agent
- Product idea: cloud Android VMs and home WiFi proxies to make agents look human — Darpinian · 2026-11-29
- 38 free agent skills distilled from shipping three live AI products — PawelHuryn · 2026-11-29
- Step 5: run evals on synthetic data pre-launch, watch real traces after — PawelHuryn · 2026-11-29
- Agent build costs: Messages API $0.003/msg vs Agent SDK $0.041 in real test — PawelHuryn · 2026-11-29
- Break your agent before attackers do: 6 tests mapped to OWASP LLM Top 10 — PawelHuryn · 2026-11-29
- Step 1: have Claude draft an agent card before building your embedded agent — PawelHuryn · 2026-11-29