Artificial intelligence is making software development faster by allowing developers to generate code with just a few instructions. However, ensuring that AI-generated code is reliable, secure, and compatible with complex software systems remains a major challenge. According to Sonar CEO Tariq Shaukat, human expertise is still essential, even as AI takes on a larger role in coding.
The issue was a major discussion point at the AI Dev conference in New York, organized by Andrew Ng’s DeepLearning.AI. Industry experts highlighted the growing challenges of using AI-powered coding tools, particularly when developers move beyond simple demonstrations and begin working with large, complicated codebases.
The software factory approach, which uses AI agents to automate different stages of software development, has gained popularity among technology companies. However, building an effective AI-driven development environment requires more than simply choosing a powerful language model. Developers must also configure the surrounding systems, provide the right context, and establish reliable methods for checking the generated code.
AI-Generated Code Raises Questions About Reliability
During his opening presentation, Shaukat highlighted a growing concern in the software industry: the gap between producing code and knowing whether that code is actually correct.
Shaukat, who previously served as president of Google Cloud, explained that AI coding tools often perform impressively in controlled environments. However, their limitations become more noticeable when they are used in large enterprise applications.
While an AI model might successfully review a small piece of code, checking an entire software project containing millions of lines is considerably more complicated. Such tasks require deeper technical understanding and human judgment.
He also pointed out that AI tools do not always deliver consistent results. As an example, Shaukat described testing Claude Code on the same software project multiple times. The tool identified 40 potential issues during its first run, 11 during the second, and 18 during the third.
This variation raises an important question for developers: How can companies confidently rely on AI systems when the same tool may produce different results under similar conditions?
According to Shaukat, simply adding more AI agents to review one another’s work does not necessarily solve the problem. It can increase costs, consume more computing resources, and extend development timelines without guaranteeing better results.
Better Instructions Can Improve AI Verification
Instead of depending on multiple AI agents to identify mistakes, Shaukat believes companies should provide coding systems with clearer instructions and specialized knowledge.
For example, developers can explain exactly which security vulnerabilities an AI tool should look for, what a valid finding should include, and which results should be considered incorrect.
This knowledge can then be incorporated into the development environment, often called a harness, which provides AI agents with the instructions, tools, and context they need to complete tasks.
By building verification expertise directly into these systems, organizations can improve the reliability of AI-generated code and reduce unnecessary errors.
The approach also highlights why experienced software engineers remain important. Their knowledge helps determine what good code looks like and how automated systems should evaluate their own output.
Why Complete Automation Is Not Right for Every Company
Shaukat believes the level of automation companies should adopt depends largely on the risks associated with their software.
For large global businesses, some applications are essential to daily operations. Errors in these systems could create serious financial, security, or operational problems. As a result, completely removing human oversight may not be practical.
He described three approaches to AI-powered software development: dark factories, light factories, and dim factories.
A dark factory represents a highly automated development environment where AI systems can complete work with little or no human intervention. This approach may be suitable for low-risk projects where mistakes have limited consequences.
A light factory involves much stricter human supervision. This is particularly important for software subject to regulatory requirements or applications where human code reviews are mandatory.
Between these approaches is the dim factory model, which Shaukat believes could become common across large enterprises. In this setup, AI handles much of the development work, while humans review important components and monitor the overall results.
Companies can adjust their level of oversight depending on the importance of the software and their confidence in the automated process.
Human Developers Will Continue to Play an Important Role
Although AI may eventually write most of the code, Shaukat does not believe human software engineers will disappear from the development process.
Instead, their responsibilities are likely to shift toward planning, system design, defining requirements, and verifying AI-generated results.
Before an AI agent starts building software, developers must clearly explain what needs to be created, how the finished product should behave, and what standards it must meet.
They also need to consider software architecture, security requirements, and compatibility with existing systems.
One major challenge is that AI agents do not automatically understand the internal structure and development practices of an existing codebase. Without proper instructions, they may choose the quickest solution rather than one that fits the company’s software architecture.
Shaukat believes human developers will remain responsible for providing the right context, preparing verification processes, and ensuring that AI-generated work meets business and technical requirements.
While AI can support much of this process, mission-critical applications will continue to require meaningful human involvement.
AI Will Change Software Engineering, Not Eliminate It
The growing adoption of AI coding tools is changing how software teams work. Developers may spend significantly less time writing individual lines of code and more time directing AI agents, reviewing results, and managing complex development processes.
However, faster code generation does not automatically mean better software.
Shaukat’s message is that companies should focus not only on how much code AI can produce but also on how confidently they can trust that code.
As AI-driven software factories become more common, successful organizations will likely be those that combine automation with human expertise, strong verification systems, and appropriate levels of oversight.
