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
- The browser main thread is expensive: a practical guide to JavaScript and CSS animation cost — jh3yy · 2026-09-11
- Inspired by OpenAI's 10,000-agent run, dev open-sources a crowdsourced agent problem-solving platform — Benjaminsen · 2026-09-11
- Lucid: open-source Mac app keeps your laptop awake only while AI agents run — Pitiful_Hedgehog_600 · 2026-09-11
- banteg's snail project crowdsources AI agents to finish matching Snail Mail's 20 remaining functions — banteg · 2026-09-11
- Alex Townsend posts 200 open problems in numerical linear algebra for humans and AI agents — IgorCarron · 2026-09-11
- Kimi K2.8 Preview rolls out: near-K3 coding performance, 1M context for all tiers — teortaxesTex · 2026-09-11