Sonar CEO: AI software factories still require human oversight
Sonar CEO Tariq Shaukat argues that AI-driven development lacks the necessary confidence for complex codebases, making human context essential.
Source: TechCrunch — AIThe promise of fully autonomous AI software development faces a significant reality check as experts highlight the critical need for human intervention in complex environments. While AI can generate code with ease, ensuring that this code functions correctly within massive, interconnected systems remains a major hurdle.
Why is AI-driven coding facing a confidence crisis?
According to TechCrunch, the primary issue is not the ability to write code, but the ability to verify it. During the AI Dev conference in New York, Sonar CEO Tariq Shaukat noted that while AI performs well in isolated, "pristine" environments, it struggles when tasked with managing a million lines of code.
Shaukat highlighted a significant problem with variance and reliability. He cited an example where a model identified 40 issues in a codebase during one run, but only 11 in the next, and 18 in a third. This inconsistency makes it difficult to trust the output without human judgment. Shaukat argued that simply adding more AI agents to solve these discrepancies often results in higher token costs and wasted time without necessarily improving the outcome.
What is the difference between dark, light, and dim factories?
To address the varying levels of risk in software production, Shaukat introduced a framework of different "factory" models. This classification helps companies decide how much human oversight is required based on the stakes of the software being produced.
In a "dark factory," the process is fully automated, which is suitable for low-stakes tasks where the impact of an error is minimal. Conversely, a "light factory" involves high levels of human intervention, often required by regulations that mandate human review for mission-critical code.
Most enterprise software will likely fall into what Shaukat calls "dim factories." In this model, companies do not check every single line of code but instead use a "trust but verify" approach. This involves high-level oversight to ensure the work follows the correct architecture and standards, rather than manual inspection of every individual character.
How can developers improve AI code verification?
Rather than relying on more agents to fix errors, Shaukat suggested that the solution lies in better "harnesses." This means teaching the AI how to verify its own work by providing specific context and examples.
Developers can improve reliability by instructing models on exactly what type of security issues to look for and providing clear examples of both good and bad results. The goal is to encode human expertise directly into the automated process. By defining the architecture and adherence to existing codebase standards, humans provide the guardrails that prevent AI from simply taking the "shortest path" to an answer, which might break the broader system.
What role will human engineers play in the future?
While the act of typing out lines of code may diminish, the role of the software engineer is shifting toward high-level planning and verification. Shaukat emphasized that humans are essential for defining what "good" and "done" actually look like.
Human engineers will be responsible for providing the necessary context, planning the architecture, and designing the verification steps. For mission-critical applications, the human element remains indispensable to ensure that the AI's output is compatible with the wider ecosystem and meets all functional and regulatory requirements.
How to apply these insights in Grafy
For developers working with AI-assisted coding, managing the tension between speed and accuracy is a daily task. In Grafy, you can experiment with different model outputs and refine your logic using Grafy Code, which serves as an AI coding studio. To tackle the problem of variance mentioned by Shaukat, you might also use Grafy Chat to compare how different models approach the same logic problem side by side, helping you build the "harness" of knowledge needed to verify complex outputs.
Frequently asked questions
Why does AI code verification struggle in large codebases?
AI models often struggle with large codebases because they can verify small, isolated snippets of code effectively but lack the ability to understand how those snippets interact within millions of lines of existing logic. This lack of holistic context leads to inconsistencies and errors in complex, real-world software environments.
Can more AI agents solve the problem of inconsistent code output?
Adding more agents to a problem does not necessarily guarantee better results. According to Shaukat, this approach can lead to increased costs in tokens and time while potentially compounding the variance issues. A more effective method is encoding human expertise into the model's verification harness.
What defines a dim factory in software development?
A dim factory is a middle-ground approach where not every single piece of code is manually checked. Instead, it relies on a "trust but verify" system where developers focus on high-level oversight and ensure the automation follows the correct processes and architectural standards for low-to-medium stakes tasks.
Source: TechCrunch — AI — AI software factories still need human help, says Sonar CEO Tariq Shaukat


