AI makes writing code easier than ever. What is more difficult is how to determine whether the code is appropriate and will work within a sprawling and complex codebase. These tensions around the practical issues of AI-driven software development were a recurring theme this week at the New York AI Development Conference hosted by Andrew Ng’s DeepLearning.ai.
Software factory models remain very popular among AI-focused developers, but making these factories work effectively requires many careful adjustments to both the core models and the harness and context surrounding them.
One of the sharpest speakers at the conference was Sonar CEO Tariq Shaukat, whose opening talk highlighted a growing issue in AI-driven development: confidence in the code that AI generates. Shaukat, a former president of Google Cloud, argued that while code is now plentiful, trust is more scarce than ever. This is a common topic for Shaukat, and one that has important implications for the industry.
I sat down with Shaukat at the conference to talk about his ideas and what they mean for human software developers looking to thrive in the AI era.
Outside of the industry, many people think that coding is essentially something that can be left to AI. But a big part of your talk was to argue that it’s more complicated than that. Where do you see problems with AI-driven development?
There are many demonstrations of how effective AI is in coding, and they all take place in these natural environments. As you start doing more complex things, you’ll quickly see these problems appear. While this model can verify small pieces of code, it is much more difficult to verify a million lines of code, or an entire codebase. There’s still a lot of judgment involved in doing that.
In your talk, you mentioned research showing how often AI judges change their minds when contradicted by another model, or even when asked the same question twice. Shouldn’t we trust AI to make that decision?
Here’s an example: In this one codebase I was just looking at, I found 40 issues in the Claude code. Then I ran it again and found 11. I ran it again and found 18. So what’s right? You can have your next agent actually say what’s right and what’s wrong. But that second agent also has this difference, and at that point the problem becomes even more complicated.
I don’t think throwing more agents at the problem will yield better results. You will need more tokens. It will take a considerable amount of time. And what we’ve seen so far is that it doesn’t always solve the problem.
What you can do here is tell the model, “I’m looking for this particular type of security problem. A good result would be: The result would be: etc.” You can teach the agent how to verify its own results and incorporate that knowledge into the harness itself. At that point, it all comes down to finding your expertise and encoding it into your harness.
Once you have that process set up, can you fully automate your software development, or are you just not there yet?
It depends on your appetite for risk. For most of the world’s 2,000 companies, what really matters is the core software. But there are still certain parts of the work that are probably not so important, where you can fully automate and do the so-called dark factory. There are literally other parts of the code that say this code needs to be reviewed. Humans need to reconsider it. In other words, it becomes a completely lightweight factory.
At Sonar, we often talk about dimly lit factories. That is, not all parts are checked. I think most software within large companies takes that approach. There are certain parts of the system that are low risk or have high confidence in automation. You supervise it and trust it, but please check. And there are other parts that require a more rigorous process. It may not be checking every line of code, but it will look at all the work done and make sure it was done the right way.
It sounds like you’re not very confident if you’re spending that much time testing.
There are many things that we are confident about, but you are still checking, right? The only problem is having proof that it works. I know that the washing machine cleans my clothes. Do I need to check it every time? No, if you notice that your clothes are dirty, that’s a problem. But you have proof. You know through your own experience that it actually does a good job.
What is the role of humans in this? After all, what tasks are assigned to human software engineers?
What I’m saying is that the first step is to understand what you want to create. What should it look like? What do you need to do? What is your definition of “good”? What is your definition of “done”? You need to plan your validation process well. Specify not only functional aspects, but also things like architecture and codebase compliance. When you ask a developer to write something, you can trust them to build it in a way that is compatible with your codebase, but the agent doesn’t know if it’s compatible or not, so it just finds the shortest path to the answer.
At least for the time being, there’s a big role for humans to make sure that coding agents have the right information and the right context, and that all the right validation steps and reviews are in place. Much of that work can be augmented with AI, but I don’t think we’ll ever see a world where humans are completely removed, especially for mission-critical applications.
Now, are those people writing the code? I suspect they are writing very little actual code. But that doesn’t mean you just tell them what to build and then leave them to build.
If you buy through links in our articles, we may earn a small commission. This does not affect editorial independence.
