Uncle Bob says he no longer reads AI-generated code, relying on tests and QA instead
机器之心 · wechat · 2026-07-24
Uncle Bob says he no longer reads AI-generated code line by line
A Machine Heart article summarizes a debate sparked on X: once AI agents can break down tasks, edit files, write tests, run code, and iterate on errors, should developers still review every line they generate?
Robert C. Martin (“Uncle Bob”) argues for a more radical workflow:
- He says he does not read agent-written code at all.
- Instead, he surrounds the agent with strict guardrails: unit tests, Gherkin tests, QA flows, quality metrics, mutation testing, coverage targets, and other automated checks.
- In his view, this shifts quality control from manual code reading to an industrial-style verification system.
The article also lays out the counterargument:
- Many developers feel they must understand any code they are responsible for.
- Tests and constraints help, but they do not guarantee the agent did not miss requirements, change tests to fit its own implementation, or leave deeper bugs undetected.
- Even in an AI coding workflow, many developers believe some level of code review remains necessary.
The practical question is no longer whether to review code at all, but which parts must still be reviewed, and how much can be delegated to automation.
Related event: Uncle Bob Stops Reading AI Code, Trusts Tests and Constraints(10 posts)→
More from coding & agent
- Dev turns DJI Mavic into local AI security drone built with Opus 5.5 — alexcovo_eth · 2026-10-27
- Microsoft Research: ForkPilot cuts long-horizon agent compute by up to 59% — EliasEskin · 2026-10-27
- Cursor launches Agent SDK: agents as code with Markdown prompts and TypeScript tools — soleio · 2026-10-27
- Vibecheck, the 'usable formal methods' hackathon, sells out two floors in SF — spikedoanz · 2026-10-27
- How do you verify AI agent outputs beyond unit tests and LLM-as-judge? — Practical_Green5775 · 2026-10-27
- AI agents may soon become the only way to run code, not just write it — IgorCarron · 2026-10-27