Uncle Bob Stops Reading AI Code, Trusts Tests and Constraints
Veteran software engineer Uncle Bob (Robert C. Martin) recently shared his new philosophy for using AI coding agents: to keep up with AI's productivity advantages, he no longer reads AI-generated code line by line. He believes that trust should not be placed in manual review, but rather by putting the agent into a rigorous system of external constraints to guarantee output quality.
Confirmed
According to Uncle Bob, his current workflow relies entirely on external constraint mechanisms to validate code. Specific constraints include unit tests, Gherkin tests, a comprehensive QA process, quality metrics, mutation testing, and code coverage. In terms of division of labor, unit tests can be generated directly by the agent without individual human review, while Gherkin acceptance tests, QA processes, and final manual testing are still personally overseen by him.
Furthermore, he emphasized that the clean code principles advocated in his book Clean Code remain crucial in the AI agent era, and methods must be found to ensure agents produce clean code. Currently, the most significant manual effort in development is concentrated on writing the initial specifications and conducting the final tests, while almost all work between these two nodes can be fully automated by agents.
Why it matters
As AI agents gradually acquire the ability to autonomously break down requirements, modify files, supplement tests, and self-iterate, the traditional model of "human line-by-line review" is being challenged. Uncle Bob, an industry titan who has been programming since the late 1960s, symbolically proposes a new paradigm with this shift: the role of the human engineer is transitioning from a "code writer and reviewer" to a "designer of test and constraint systems." This provides a highly valuable practical direction for development teams on how to ensure engineering quality while embracing the extreme efficiency of AI.
2026-07-24 ~ 2026-07-25 · 10 related posts
Primary sources
- Uncle Bob says coding agents are only trustworthy when tests and QA box them in — jdjohnson · 2026-07-24
- [source] Uncle Bob says he trusts agents only after tests and constraints, not by reading their code — tokenbender · 2026-07-24
- A Veteran Coder's Agent Philosophy: Don't Read the Code, Use Extreme Constraints — tokenbender · 2026-07-24
- Robert C. Martin says he trusts coding agents only after tests and strict constraints — bennash · 2026-07-24
- [source] Uncle Bob says he no longer reads AI-generated code, relying on tests and QA instead — 机器之心 · 2026-07-24
- Veteran engineers say coding agents work best when boxed in by strict tests — intellectronica · 2026-07-24
- Clean Code Still Matters in AI Era, Says Uncle Bob — burny_tech · 2026-07-25
- Uncle Bob: agents write unit tests, humans review QA and final checks — burny_tech · 2026-07-25
- Specs and Final Testing Remain Biggest Manual Costs in AI Coding — burny_tech · 2026-07-25
1 near-duplicate retellings: burny_tech