From TechCrunch · Russell Brandom · · 3m
AI code needs human judgment, Sonar CEO says
Tariq Shaukat argues that while AI writes code faster, verifying it still requires human expertise and careful oversight.
In brief
Tariq Shaukat argues that while AI writes code faster, verifying it still requires human expertise and careful oversight. Sonar CEO Tariq Shaukat says AI-generated code needs human verification because AI models give inconsistent results and lack context about existing codebases. Originally reported by TechCrunch.
AI writes code, but can't verify it
AI has made writing code easier than ever.The harder problem is determining whether that code works within complex codebases.
Sonar CEO: confidence in code is scarce
Sonar CEO Tariq Shaukat, formerly president of Google Cloud, highlighted a growing problem at the conference: while code is now abundant, confidence has never been more scarce.
AI works in pristine environments only

Demonstrations of AI coding work in controlled settings. But in complicated real-world codebases, problems emerge. Verifying a million lines of code requires judgment that AI cannot reliably provide.
AI models change their minds constantly
Research shows AI judges change their minds when contradicted by another model or asked the same question twice. Shaukat ran Claude code on one codebase three times: it found forty issues, then eleven, then eighteen.
“Claude code found 40 issues. Then I ran it again and it found 11. I ran it again, and it found 18.”
More AI agents won't fix the problem
Adding more agents to verify results compounds the problem because each agent has its own variance. It costs more tokens and time without reliably solving the inconsistency.
Teach the model what to look for
Instead of adding agents, tell the model the specific security issues to find and what good results look like. Encode expertise into the harness itself so the agent verifies its own results.
Three levels of automation exist
Dark factories are fully automated for low-stakes code. Light factories require human review by regulation. Dim factories, Sonar's model, check some code but not all, using trust but verify for low-risk parts.
Humans define what good looks like
The first step is figuring out what to build and what good means. Humans must plan verification, specify architecture, and ensure agents understand codebase compatibility. Agents find the shortest path, not the right one.
Humans stay in the loop
For the foreseeable future, humans must ensure coding agents have the right information, context, and verification steps. This is especially true for mission-critical applications.
Here's the gist
Sonar CEO Tariq Shaukat says AI-generated code needs human verification because AI models give inconsistent results and lack context about existing codebases.
Read the TL;DR — this story on one card.





