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's AI Coding Philosophy: Trust Tests, Not Code Review(5 posts)→
More from coding & agent
- Krea 2 identity edit keeps the face but adds ghosting and blur — witcherknight · 2026-07-24
- Claude skills can fail even when the body is right, because routing depends on the description — socialwithaayan · 2026-07-24
- Claude skills should split prose, scripts, and tools instead of keeping everything as text — socialwithaayan · 2026-07-24
- Claude skills rot over time: a framework for auditing dead skills, collisions, and drift — socialwithaayan · 2026-07-24
- How to encode a writer’s voice into rules a fresh Claude session can reproduce — socialwithaayan · 2026-07-24
- How to chain Claude skills into a clean production line with strict handoff contracts — socialwithaayan · 2026-07-24