· AI dev tools

Robert Martin reviews agent-generated code structure using dynamic UML, CRAP scores, and mutation testing

Robert "Uncle Bob" Martin, whose work on Clean Code predates this discussion by nearly two decades, once taught engineers that code exists for other humans to read.


Yet, he notes that he rarely sees 95% of the code generated by his agents.

He acknowledges the speed challenge, stating, "Human beings are too slow when dealing with code. So if we're going to move at the speed of the agents, we're all going to have to back off a little bit and maintain the high-level supervision, but at the level of code, that's probably out of our domain now."

To address this, he demonstrated a tool where an agent breaks down a project into something resembling UML. This visualization allows for expansion, collapsing, and deep dives into specific areas.

Problems surface visually: functions exhibiting a high CRAP score, a low mutation-testing score, or dependencies pointing incorrectly. The agent remains attached to this diagram, allowing for "what-if scenarios" and reviewing proposed structures before any source code is written.

He explained that this shifts the focus from static pre-coding analysis to a dynamic review process post-code generation. For team approval, the reviewer must assess more than just the lines of code.

Ray Myers counters the notion that we should cease reading code, arguing that those who claim to stop reading are often engaged in a "lowercase form of actually reading the code." This includes relying on automated verification or selectively examining design elements.

The proposed modern code review focuses on three elements: Intent, Acceptance criteria, and Decisions. Intent captures the purpose and scope, often found in the agent's prompts.

Acceptance criteria involve both the specific change requirements and invariants from a team's AI slop registry. A verifying agent checks these criteria against evidence, allowing the reviewer to ask: "are we solving the right problem with the right constraints?"

Decisions—the architectural and technical choices made—are what humans contribute, and these warrant human scrutiny. Uncle Bob frames the new human role as taking responsibility "just above the code level," encompassing intent, criteria, and decisions.

Mitchell Hashimoto advocates for a "whiteboard defense," ensuring anyone shipping a customer-facing system can confidently explain its workings and defend its choices, even without recalling every function name.

David Poll of GitHub suggests the real question isn't whether one reads code, but whether attention is directed to where it is most useful. Clear intent, evidenced criteria, and recorded decisions allow more code to safely fall outside the attention set.

Ultimately, Uncle Bob reiterates that "The agents are not responsible for anything. They're entirely irresponsible. Only humans can be responsible," confirming that ownership remains a human accountability, regardless of code volume.

Why it matters

This discussion highlights a major shift in software development where AI agents are generating code faster than humans can review it line-by-line. Developers must adapt their review processes to focus on higher-level artifacts like intent, acceptance criteria, and architectural decisions. This signals a move from code-level scrutiny to validating system rationale.

Earlier coverage

Related coverage

Also worth reading

  1. Next.js 16.5.0-canary.61 adds experimental image optimization support, Turbopack cache recovery
  2. Dragos research finds three AI provider breaches, prompt theft, and ignored retention settings
  3. Firefox UI features glowing progress bar in URL bar, user criticizes "AI slop
  4. Grafana 13.3 adds shared dashboard variables, Notebooks in public preview
  5. QCon San Francisco 2026: Netflix engineer presents staff-plus alignment for tech strategy