Sonar 首席执行官塔里克·肖卡特 (Tariq Shaukat) 表示,人工智能软件工厂仍然需要人类帮助
AI software factories still need human help, says Sonar CEO Tariq Shaukat
人工智能使编写代码变得比以往更容易。更棘手的一点是如何确定该代码是否良好,以及它是否可以在庞大、复杂的代码库中运行。本周由吴恩达 (Andrew Ng) 的 DeepLearning.ai 主办的纽约人工智能开发会议上,围绕人工智能驱动的软件开发实际问题的紧张局势是一个反复出现的主题。
软件工厂模型在专注于人工智能的开发人员中仍然非常受欢迎,但要让这些工厂有效地工作,需要对核心模型以及围绕它们的工具和上下文进行大量仔细的修改。
会议上最尖锐的声音之一是 Sonar 首席执行官 Tariq Shaukat,他在开场演讲中强调了人工智能驱动开发中一个日益严重的问题:对其生成的代码的信心。前 Google Cloud 总裁 Shaukat 表示,虽然现在代码丰富,但信心却从未像现在这样稀缺。这是 Shaukat 的一个常见话题,并且对整个行业具有重大影响。
我在会议上与 Shaukat 坐下来讨论了他的想法以及这些想法对于试图在人工智能时代蓬勃发展的人类软件开发人员意味着什么。
在行业之外,很多人认为编码基本上可以交给人工智能。但你演讲的很大一部分是在说明事情比这更复杂。您认为人工智能驱动的开发中出现了哪些问题?
有很多关于人工智能在编码方面如何有效的演示,但它们都是在这些原始环境中给出的。一旦你遇到更复杂的事情,你就会发现这些问题出现了。该模型可以验证一小段代码,但是验证一百万行代码(整个代码库)是一件困难得多的事情。要做到这一点仍然需要很多判断。
在您的演讲中,您引用了一项研究,显示人工智能法官在与另一个模型相矛盾时,甚至在同一问题被问到两次时,会改变主意的频率。我们不应该相信人工智能的判断吗?
我举个例子:在我刚刚查看的这个代码库中,Claude 代码发现了 40 个问题。然后我又跑了一次,结果是11。我又跑了一次,结果是18。那什么是对的呢?您可以要求下一位特工实际说出什么是正确的,什么是错误的。但此时你会加剧问题,因为第二个代理也会有这种差异。
我不认为你可以在一个问题上投入更多的代理并期望它有更好的结果。这将花费你更多的代币。这会花费你很多时间。我们所看到的是,它并不总能解决问题。
现在,您可以做的是告诉模型,“我们正在寻找这种特定类型的安全问题。这是一个好的结果。这是它不看起来的样子,等等。”您教代理如何验证自己的结果,并将这些知识构建到线束本身中。到那时,一切都归结于寻找专业知识并将其编码到工具中。
一旦建立了该流程,您可以完全自动化软件开发吗?还是我们还没有到那一步?
这取决于您的风险偏好。对于大多数全球 2,000 家公司来说,核心软件实际上很重要。但你所做的事情的某些部分可能并不那么重要,因此你可以使其完全自动化并进行所谓的黑暗工厂。法规确实规定您必须审查此代码的其他部分。人类必须对其进行审查。所以,这将是一个完全轻型的工厂。
在 Sonar,我们谈论了很多关于昏暗工厂的内容,这意味着你不需要检查每一个部件。我认为大公司内部的大多数软件都会采取这种方法。系统的某些部分风险较低,或者您对自动化有很高的信心。您将对其进行监督,信任但要验证。还有其他部分您需要有更严格的流程。它可能不会检查每一行代码,但您会查看已完成的所有工作并确保其以正确的方式完成。
如果你花那么多时间在验证上,听起来你就没有那么大的信心。
有很多我们有信心的事情你仍然会检查,对吧?这只是有证据表明它有效的问题。我知道我的洗衣机可以清洗我的衣服。我每次都必须检查吗?不。如果我开始发现我的衣服脏了,那就是个问题了。但你有证据。通过您自己的经验,您知道它实际上做得很好。
人类在这一切中扮演什么角色?什么样的任务最终落到了人类软件工程师的肩上?
我想说的第一步是,弄清楚你想要构建什么。它应该是什么样子?它需要做什么? “好”的定义是什么,“完成”的定义是什么?您确实需要规划您的验证过程。您不仅要指定功能方面,还要指定架构和对代码库的遵守等内容。当您让开发人员编写内容时,您可以相信他们将以与您的代码库兼容的方式进行构建,但代理不知道兼容,因此他们只会找到找到答案的最短路径。
至少在可预见的未来,人类在确保编码代理拥有正确的信息和正确的上下文以及确保所有正确的验证步骤和审查到位方面发挥着巨大作用。大多数工作都可以通过人工智能来增强,但我认为你不会看到一个人类完全离开的世界,特别是在关键任务应用程序中。
原文(English)
AI has made writing code easier than ever. The trickier bit has been how to determine whether that code is any good, and whether it works within a sprawling, complex codebase. That tension over the practical problems of AI-driven software development was a recurring theme this week at the AI Dev conference in New York, hosted this week by Andrew Ng’s DeepLearning.ai.
The software factory model remains hugely popular among AI-focused developers, but getting these factories to work effectively requires a lot of careful tinkering, both with the core models and with the harnesses and context surrounding them.
One of the sharpest voices at the conference was Sonar CEO Tariq Shaukat, who used his opening talk to highlight a growing problem in AI-driven development: confidence in the code it produces. Formerly the president of Google Cloud, Shaukat made the case that while code is now abundant, confidence has never been more scarce. It’s a common topic for Shaukat, and one with significant implications for the industry.
I sat down with Shaukat at the conference to talk through his ideas and what they mean for human software developers trying to thrive in the AI era.
Outside the industry, a lot of people see coding as something we can basically hand over to AI. But a big part of your talk was making the case that it’s more complicated than that. Where do you see problems cropping up in AI-driven development?
There’s a lot of demonstrations of how effective AI is at coding, but they’re all given in these pristine environments. The moment you get into anything more complicated, you see these problems emerge. The model can verify a small piece of code, but verifying a million lines of code, a whole codebase, is a much much harder thing. It still requires a lot of judgement to do that.
In your talk, you cited research showing how often AI judges will change their mind when contradicted by another model, or even just when asked the same question twice. Should we not trust AI with that judgement?
I’ll give you an example: In this one codebase I was just looking at, Claude code found 40 issues. Then I ran it again and it found 11. I ran it again, and it found 18. So what’s right? You could ask the next agent to actually say what’s right and what’s not right. But you’re kind of compounding the problem at that point because that second agent will also have this variance in it.
I don’t think you can throw more agents at a problem and expect it to have a better outcome. It’s going to cost you a lot more tokens. It’s going to cost you a lot of time. And what we’ve seen is that it doesn’t always solve the problem.
Now, what you can do is tell the model, “We’re looking for this specific type of security issue. Here’s what a good result looks like. Here’s what it doesn’t look like, etc.” You teach the agent how to verify its own results, and build that knowledge into the harness itself. At that point, it all comes down to finding the expertise and encoding it into the harness.
Once you’ve set up that process, can you fully automate software development? Or are we still not there yet?
It depends on your appetite for risk. For most global 2,000 companies, the core software actually matters. But there are still certain parts of what you do that probably don’t matter that much, and so there you can make it fully automated and do what’s called a dark factory. There’s other parts that literally the regulations say you must review this code. A human must review it. So there, it’s going to be a completely light factory.
At Sonar, we talk a lot about dim factories, which means you don’t check every single piece. I think most software inside of large companies is going to take that approach. There are certain parts of the system that are low stakes, or you have high confidence in the automation. You’ll have oversight over it, trust but verify. And there are other parts where you’re going to want to have a more rigorous process. It may not be checking every line of code, but you look at all the work that was done and make sure it was done the right way.
If you’re spending that much time on verification, it sounds like you don’t have that much confidence.
There’s plenty of things we have confidence in that you still check, right? It’s just a matter of having evidence that it’s working. I know my washing machine cleans my clothes. Do I have to check it every single time? No. If I start finding my clothes being dirty, that’s a problem. But you have the evidence. You know through your own experience that it’s actually doing a good job.
What’s the role of the human being in all this? What sort of tasks end up falling to human software engineers?
The first step I would say is, figure out what it is you want to build. What should it look like? What does it need to do? What’s the definition of “good” and what’s the definition of “done”? You really need to plan out your verification process. You’re not just specifying the functional aspect but also things like the architecture and adherence to your codebase. When you have your developers writing things, you can trust that they’re going to build in a way that’s compatible with your codebase, but agents don’t know to be compatible, so they’re just going to find the shortest path to the answer.
At least for the foreseeable future, there’s a huge role for human beings in making sure the coding agent has the right information and the right context, and that you have all the right verification steps and reviews in place. Most of that work can be augmented with AI, but I don’t think you’re going to see a world where the human just completely steps away, particularly with mission-critical applications.
本文为自动翻译,可能存在偏差,请以原文为准。发布于 2026-12-03 01:02
阅读原文 ↗https://techcrunch.com/2026/12/02/ai-software-factories-stil