
AI has made software development faster, but verifying the quality and reliability of AI-generated code remains a significant challenge, according to Sonar CEO Tariq Shaukat. Speaking at the AI Dev conference in New York, hosted by Andrew Ng’s DeepLearning.AI, Shaukat emphasized the importance of human judgment when deploying AI coding agents within complex software systems.
While AI models can effectively generate and verify smaller pieces of code, Shaukat said evaluating entire codebases containing millions of lines remains considerably more difficult. The challenge becomes particularly apparent when AI-generated code must comply with existing software architecture and security requirements.
AI Agents Produce Inconsistent Verification Results
Shaukat cited research showing that AI models evaluating results can change their judgments when challenged by another model or repeatedly asked the same question. Such inconsistencies raise concerns about relying entirely on AI for software quality assurance.
In one example, Shaukat said Anthropic’s Claude Code identified 40 issues during an initial codebase review, followed by 11 and 18 issues in subsequent evaluations. He argued that introducing additional AI agents to verify these findings could compound inconsistencies while increasing computational costs and processing time.
Instead, Shaukat recommends providing coding agents with specific verification criteria, security requirements and examples of acceptable results. Incorporating engineering expertise into the systems that guide AI agents could improve the reliability of their evaluations.
Software Automation Depends on Risk Levels
Shaukat distinguished between fully automated software development environments, known as dark factories, and environments requiring extensive human review, known as light factories. The appropriate approach depends on the importance of the software, organizational risk tolerance and applicable regulatory requirements.
Sonar advocates an intermediate approach called dim factories, where low-risk development tasks can operate with limited supervision while critical software undergoes more rigorous verification. Shaukat expects many large enterprises to adopt this approach rather than fully automate their development processes.
Human Developers Shift Toward Planning and Verification
As AI takes on more coding responsibilities, Shaukat expects human software engineers to concentrate on defining product requirements, establishing architectural standards and designing verification processes. Developers will also need to ensure AI agents receive sufficient context to produce code compatible with existing systems.
Shaukat anticipates that software engineers could eventually write very little code themselves, with AI handling most implementation tasks. However, he maintains that human involvement will remain essential for overseeing development and verifying results, particularly in mission-critical applications.
Featured image credits: Sonar
For more stories like it, click the +Follow button at the top of this page to follow us.
