12-04 更新 实时
首页/ 公司动向/ 正文

Sonar CEO:AI 软件工厂仍需人类协助

公司动向 来源:TechCrunch AI 2026-12-03 01:02 3 阅读 机器翻译
Sonar CEO:AI 软件工厂仍需人类协助

AI 让写代码变得前所未有的容易。更棘手的问题在于,如何判断这些代码到底好不好,以及它能否在一个庞大而复杂的代码库中正常运行。本周在纽约举行的 AI Dev 大会上,AI 驱动软件开发所面临的这些实际问题引发的紧张感,成为一个反复出现的主题。该大会由 Andrew Ng 的 DeepLearning.ai 本周主办。

软件工厂模式在以 AI 为核心的开发者中依然极受欢迎,但要让这些工厂高效运转,需要对核心模型以及围绕它们的运行框架(harness)和上下文进行大量细致的调试。

大会上观点最犀利的人之一是 Sonar CEO Tariq Shaukat,他在开场演讲中着重指出 AI 驱动开发中一个日益严重的问题:对其所产出代码的信任。Shaukat 曾任 Google Cloud 总裁,他提出,如今代码供给极其充沛,但信任却从未如此稀缺。这对 Shaukat 来说是一个常谈的话题,而且对整个行业有着重大影响。

我在大会期间与 Shaukat 坐下来交谈,聊了他的这些想法,以及它们对试图在 AI 时代蓬勃发展的软件开发者意味着什么。

在行业之外,很多人认为编程基本上可以交给 AI 去做。但你演讲的很大一部分是在说明,事情要比这复杂得多。你认为 AI 驱动开发中的问题会出现在哪些地方?

有很多演示展示了 AI 在编程上的高效,但它们都是在那种一尘不染的理想环境中进行的。一旦你进入任何更复杂的情形,这些问题就会浮现出来。模型可以验证一小段代码,但验证一百万行代码、验证整个代码库,则要困难得多。这仍然需要大量的判断力。

在你的演讲中,你引用了一项研究,展示当 AI 裁判被另一个模型反驳时,甚至只是被问同一个问题两次时,它有多频繁地改变自己的判断。我们是不是不该把这种判断托付给 AI?

我举个例子:就在我刚看的这个代码库里,Claude Code 找到了 40 个问题。然后我又跑了一遍,它找到了 11 个。再跑一遍,它找到了 18 个。那到底哪个是对的?你可以让下一个智能体来判断哪些对、哪些不对。但那时你其实是在把问题叠加起来,因为第二个智能体同样会有这种波动。

我不认为你往一个问题堆更多智能体,就能指望得到更好的结果。这会消耗多得多的 Token,会耗费大量时间。而我们看到的是,它并不总能解决问题。

你能做的是告诉模型:“我们要找的是这种特定类型的安全问题。好的结果长什么样,不好的结果长什么样,等等。”你教会智能体如何验证自己的结果,并把这种知识固化到 harness 本身里。到那时,一切就归结为找到专业知识并把它编码进 harness。

一旦你建立了这样的流程,你能完全自动化软件开发吗?还是说我们还没到那一步?

这取决于你对风险的接受程度。对大多数全球 2000 强企业来说,核心软件确实很重要。但你做的业务中仍有某些部分可能没那么重要,所以在那里你可以让它完全自动化,做所谓的黑灯工厂。还有一些部分,法规明确要求你必须审查这些代码,必须由人来审查。所以在那里,它就是一个完全的亮灯工厂。

在 Sonar,我们经常谈论「暗工厂」,意思是你不会检查每一个零件。我认为大公司内部的大多数软件都会采用这种做法。系统中有些部分风险很低,或者你对自动化有很高的信心。你会对它进行监督,信任但验证。而另一些部分,你则需要更严格的流程。可能不是检查每一行代码,而是审视所有已完成的工作,确保它以正确的方式完成。

如果你在验证上花那么多时间,听起来你并没有那么大的信心。

有很多我们有信心的事情,你仍然会去检查,对吧?这只是需要有证据证明它在正常工作。我知道我的洗衣机能洗干净衣服。我每次都得检查吗?不用。如果我开始发现衣服没洗干净,那就是个问题。但你有证据。你通过自己的经验知道它实际上做得很好。

在这一切中,人的角色是什么?哪些任务最终会落到人类软件工程师身上?

我会说,第一步是弄清楚你想构建什么。它应该是什么样子?它需要做什么?「好」的定义是什么,「完成」的定义是什么?你确实需要规划好你的验证流程。你不仅要指定功能方面,还要指定架构以及是否符合你的代码库规范。当你的开发者编写东西时,你可以相信他们会以与你的代码库兼容的方式来构建,但智能体并不知道要保持兼容,所以它们只会找到通向答案的最短路径。

至少在可预见的未来,人类在确保编码智能体获得正确的信息和正确的上下文、以及确保所有验证步骤和审查流程到位方面,仍将发挥巨大作用。这些工作大部分都可以借助 AI 来增强,但我认为不会出现人类完全抽身退出的局面,尤其是在任务关键型应用中。

那么,写代码的还是人吗?我预计他们几乎不写实际的代码。但这并不意味着你只需告诉它要构建什么,然后就走开让它自己去做。

当您通过我们文章中的链接进行购买时,我们可能会赚取少量佣金。这不会影响我们的编辑独立性。

Russell Brandom 自 2012 年起一直报道科技行业,重点关注平台政策与新兴技术。他此前就职于 The Verge 和 Rest of World,并为 Wired、The Awl 和 MIT 的 Technology Review 撰稿。可通过 [email protected] 或 Signal(412-401-5489)与他联系。

正在加载下一篇文章

译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。

查看英文原文(AI software factories still need human help, says Sonar CEO Tariq Shaukat)

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 judgment 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.

Now, is the person writing the code? I’d expect that they’re writing almost none of the actual code. But that doesn’t mean you just tell it what to build and then go away and let it build.

When you purchase through links in our articles, we may earn a small commission. This doesn’t affect our editorial independence.

Russell Brandom

Russell Brandom has been covering the tech industry since 2012, with a focus on platform policy and emerging technologies. He previously worked at The Verge and Rest of World, and has written for Wired, The Awl and MIT’s Technology Review. He can be reached at [email protected] or on Signal at 412-401-5489.

Loading the next article

原文为英文,正文由自动抓取并保留原文。

本文由采集器自动同步

原文发布于 TechCrunch AI(AI software factories still need human help, says Sonar CEO Tariq Shaukat),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。

阅读原文 ↗