读见

Salesforce 如何使用 Claude Code

原题How Salesforce uses Claude Code

约 14 分钟原文英文已翻译

视频由 YouTube 提供

看前速览

3 个要点

Salesforce 工程师介绍如何用 Claude Code 补齐 API、衡量有效产出,并验证长任务 Agent。

  1. 衡量有实际意义的改动

    有效产出给注释和简单编辑较低权重,给逻辑变更和新增功能较高权重。

  2. 通过演示和技能共享推广

    现场演示和经过评估的技能市场帮助工程师从简单提示过渡到并行任务和自动化。

  3. 用历史失败任务检验新模型

    团队回放长短任务,纳入旧模型持续失败的案例,并验证现有行为没有受影响。

完整摘要

Salesforce 工程团队称,借助 Agent,他们在不到几个月内将各业务云的 API 覆盖率提升至约 80%–90%。团队从简单提示逐步过渡到并行开发和自动化,并与斯坦福研究人员合作,用「有效产出」衡量真正改变业务逻辑的代码。他们还会回放基准任务,要求 Agent 提供证据,说明改动没有破坏已有功能。

章节

文字稿

查看原文

简要描述Brief Description

Salesforce 工程师讨论了他们如何扩大 Claude Code 的使用规模、通过 API 让旧版应用能够被访问,以及如何衡量输出质量和模型成本。Salesforce engineers discuss how they scaled Claude Code adoption, made older applications accessible through APIs, and measured output quality and model costs.

目录Table of Contents

  • 数周内让 Salesforce 实现无头化,赋能 Claudeforce
    Making Salesforce headless in weeks, enabling Claudeforce
  • 用“有效产出”衡量投资回报率
    Measuring ROI with "effective output"
  • 智能体成熟度曲线:从提示词到自主运行
    The agent maturity curve, from prompts to autonomy
  • 通过现场演示和真实数据推动采用
    Driving adoption with live demos and real data
  • 构建一个带有评测功能的技能市场
    Building a skills marketplace with evals
  • 护栏:代码量翻倍,漏洞更少
    Guardrails: double the code volume, fewer bugs
  • 重新运行基准测试以测试新模型
    Replaying benchmarks to test new models
  • 未经验证的自主性,不过是在表演自信。
    "Autonomy without validation is confidence theater"
  • 该给智能体安排多大的任务
    How big a task to give an agent
  • 最大的错误:模型与任务不匹配
    Biggest mistake: matching model to task
  • 给工程师和首席技术官的建议
    Advice for engineers and CTOs

数周内将 Salesforce 打造成无头平台,助力 ClaudeforceMaking Salesforce headless in weeks, enabling Claudeforce

你在 Dreamforce 上看到的每一个新应用或用户体验,可能都在某种程度上受到了 Claude 的影响。Every new application or UX you're seeing in Dreamforce all probably had some level of Claude influence there.

主持人:团队交付的产品或功能中,有哪些例子是一年前——比如上届 Dreamforce 时——在 Claude Code 出现之前根本不可能实现的?Host: What are some examples of products or features that the team shipped that a year ago, maybe at last Dreamforce, just wouldn't have been possible before Claude Code?

嘉宾:我会说有很多。整个 Claudeforce 都得益于无头化才得以实现。你知道,Salesforce 已经发展了几十年,并不是所有功能都有 API。因此,我们尝试让所有功能都实现无头化。要让所有应用都实现无头化,逐一检查每个设置页面并查看 API,原本可能需要六个月到一年的时间。我们却在几周到几个月内就做到了。现在,所有云产品的 API 覆盖率已达到约 80%–90%。而这一切不到几个月就完成了,团队之间甚至没有开过会。Guest: I would say many. The whole Claudeforce was possible because of headless. As you know, Salesforce has been around for decades. And so not everything has APIs. So we tried to make it all headless. And it would have been a six month or a year long project to make all our applications headless, going through every single set up page and looking at the APIs. What's the gaps? We were able to do it in a matter of weeks and few months. And now we are at like 80–90% of API coverage for all the clouds. In a matter of less than a few months with no meetings across the teams.

我觉得那是一个令人惊叹的时刻。我们当时就在想:想象一下,这不是新代码,而是已有几十年历史的代码,却能做到这一点。我觉得这相当了不起。诸如此类的例子还有很多。我是说,你在 Dreamforce 看到的每一个新应用或新用户体验,背后可能都或多或少受到了 Claude 的影响。I think that was one of those wow moments. Where we’re like, imagine this is not new code, this is preexisting code, for decades to be able to go do that. I think it was pretty amazing. And so on and so forth. I mean, there are so many such examples. Every new application or UX you're seeing in Dreamforce, all probably had some level of Claude influence there.

使用“有效产出”衡量投资回报率 (ROI)Measuring ROI with "effective output"

主持人:你们是这样看待 ROI 的吗?我听下来,你们有一个项目,现在可以更快地完成它;你们有一个项目,现在需要的人手更少了。所以你们团队的整体产能提升了很多。你们还会从哪些方面考虑 ROI?Host: Is this how you guys think about ROI? I'm hearing you have a project and now you can build it much faster. You have a project and now it takes less people. So your team just has way more throughput. How else are you guys thinking about ROI?

嘉宾:是的,从编码的角度来看,这是件很棘手的事。我们一直在讨论,ROI 到底意味着什么?我怎么知道它变得更好了?具体好在哪里?不能只看代码行数,因为那样的话,人们只要不断添加注释就行了。我们与斯坦福大学的研究人员合作,创建了一套叫作“有效产出”的指标。它会给出一个分数,试图衡量生成的代码是什么样的、质量如何、效果如何。如果只是做一些简单的修改或添加注释,分数就会比较低;如果确实改变了逻辑或创建了新内容,分数就会比较高。Guest: Yeah, from coding perspective, this was a tough thing. We were debating what does that ROI mean? How do I know it's better? More? It can't just be lines of code because then people, you can just keep adding lots of comments. We work with Stanford researchers to create this thing called an effective output. It's a score that tries to say, what is this code that's being generated? How good is it? How effective is it? So it will give a low score if it's just making some simple changes or adding comments or a higher score, if it's actually changing logic or creating new things.

这对我们帮助非常大,因为我们能够看看:好,使用 AI 后有没有变化?此外,我们还能实际衡量每单位有效产出的美元成本,看看我们做得怎么样、有没有取得进展。这个指标增长了两倍,对我们来说相当可观。现在我们正试着找出其他所有职能部门适用的指标。我们该怎么衡量?好,他们做得更好了。那“更好”具体意味着什么?他们办结的事项更多了吗?他们能够处理的案件量是不是更大了?我们正试着为每个职能部门找出一个合适的指标,然后比较前后变化,看看投资回报率。这里说的前后,是指引入智能体或调整工作流程前后吗?还是组织架构调整前后?And that has been extremely helpful for us because we are able to look at, okay, has that changed using AI? And also then dollar per effective output, we're able to actually see measurably, okay, what are we doing? Are we moving the needle? And that's grown 2x for us. Which has been pretty substantial. And now we're trying to figure out what's the right metric for all the other functions. How do we measure it? Ok, they got better. What does that better mean? Did they close more things? Did they have more sort of case volume they were able to handle? Every function we're trying to go look at that metric that would make sense for that function. And then doing the before and the after to see the ROI. The before and after, kind of introducing agents or making some change to the workflow? Making changes to the org.

然后我们也知道他们在使用什么,以及从 token 的角度来看消耗了多少。接着我们会对比使用前后的情况,看看有没有显著差异。如果没有,为什么?对吧?是因为你用错了,还是因为这本来就不是适合这项工作的工具?到底是什么原因?And then we also know what they're using, how much they're consuming from token perspective. And then we're looking at the before and the after to see okay, is there a material difference? If not, why? Right. Is it because you're using it wrong? Or is it just not the right tool for the job? What is it?

智能体成熟度曲线:从提示词到自主运行The agent maturity curve, from prompts to autonomy

主持人:请介绍一下 Salesforce 如何使用 Claude Code,以及你们在过去一年里是如何扩大其应用规模的。Host: Walk me through how Salesforce uses Claude Code and how you've scaled it up over the last year.

嘉宾:我们几乎在所有 PLC——我是说,SDLC 这类生命周期中都会用 Claude Code。大家做了很多事情。后来,我们开始为此引入更多结构。我们和你们合作时做的一件大事,就是真正建立起成熟度曲线,也就是智能体成熟度曲线。因为我们发现,即使经过了那么多推广,大家仍然只用它来做非常基础的任务,并没有真正跨越鸿沟,让智能体为自己工作。在一两个月内,我们就成功推动了大批工程师从只做基础工作,提升到 P3 和 P4 级别。这意味着真正使用智能体,以智能体驱动的方式编写代码。我觉得这在我们所有技术栈中都带来了相当显著的变化。Guest: We use pretty much Claude Code for all our PLC, I mean, SDLC sort of life cycles. People did a lot of stuff. And then we started bringing in more, structure around it. One of the big things we did working with you folks as well, is to really create the maturity curve, the agent maturity curve, because what we found was people were still, even after all that push, people were using it to do very low level tasks, not really jumping the chasm and making the agents work for them. In a matter of a month or two, we were able to push a gigantic amount of our engineers from just doing basic things to like P3 and P4. Which is really using agents and an agentic way of doing coding. I think that was pretty dramatic across all our stacks.

我们可以清楚地看到产出翻了一番。而且质量也更高,并不是说 bug 或问题也多了一倍。We could clearly see the output go up to 2x. And with quality being higher, it's not like twice as many bugs or twice as many issues.

主持人:这个层级包含哪些步骤?它是如何运作的?工程师如何从第一级晋升到第二级?Host: What are the steps in this hierarchy, how does this work? How does an engineer move from the first rung to the second rung?

嘉宾:你只有一些简单的指令。大家一开始都是这样,在 Claude Code 里发出简单指令,让它去做这做那。但他们不知道什么才算好,也没有说明什么样的结果才算好。然后,它确实能处理一些比较简单的任务。但当他们开始处理周期更长的任务,提出需要更长远规划的问题时,就会发现它无法胜任。因为他们没有在指令中说明什么样的结果算好、什么样的算差。他们没有制定全面的计划,比如把所有这些行为都纳入其中。所以,这些步骤就是你应该考虑的事情。Guest: You have just simple utterances. That's where everyone just starts, simple utterances in Claude Code go do this. But they don't know what good looks like. They're not expressing what good looks like. And then, it kind of handles some of the simpler tasks. But as they get into more long horizon stuff, they have a longer horizon question, they'll find that, it doesn't deliver. because they didn't express what good or bad look like in the utterance. They didn't build a comprehensive plan, like doing all these behaviors. And so these steps are kind of, what should you think about?

然后它会讲到团队和子代理,以及你应该如何让 harness 帮助你编排并行工作的拆分、管理工作树,并真正提高并行度。最后,内容会转向自主运行和自动化:你要调度所有这些代理,让它们在 SDLC 任务中管理各类工作流。比如,CI/CD 中出现测试失败,代理就会接手并修复,无论失败的原因是什么。然后,另一个代理会接手代码审查,并合并这项更改。所以你知道,这里涉及各种不同类型的任务和自动化。最初,我是从一开始面向所有人开展的。但现在,已经有成千上万人进入了这种自主运行模式。我认为,我们更大的挑战也在于如何赋能大家。And then it moves into teams and sub agents and how you should let the harness help you orchestrate decomposition of parallel work and, manage work trees and really, crank up the parallelism and then it kind of ends with autonomy and automation. Where you're driving all of these agents in these work, managing these workflows across SDLC tasks. This is test failure happens in CI/CD, then an agent will pick that up and fix the test failure, for whatever reason that was. And then, another one will pick up the code review and merge that change. So like, you know, all these different types of tasks and automation. We started with, I've started with everyone in the very beginning. But now we have thousands of people in this kind of autonomous mode, I think our bigger challenge was also enablement.

所以,解释清楚达到 P3 或 P4 的这个概念——这并不是零和博弈,而是真正进入了一个使用智能体的新境界。我认为,这对大家来说也是一项重要的赋能内容和学习收获。So explaining that concept of how getting to P3 or P4, it's not a zero sum game. It's truly like you're moving into a new realm of how you use agents. I think that was a big enablement thing as well and learning for everybody.

通过现场演示和真实数据推动采用Driving adoption with live demos and real data

主持人:你是怎么处理的?Host: How did you approach that?

嘉宾:灵感和真实数据。是的,是的。很多人都在演示他们的工作方式:“我就是这么工作的。我要解决一个问题,而且会现场解决。”大家非常、非常开放,让许多不同的人展示各自的做法。而且,每个云产品团队最终都利用智能体做出了一些创新成果——这些事情原本需要几个月,他们几周就能完成。这些都是真正要发布的产品,你们可能会在 Dreamforce 上宣布它们。我认为,这也让大家更清楚地看到:哦,这东西确实能用。它确实有帮助,也能带来改变。我们团队的一位架构师说,如果要理解一段新代码,通常得花好几天,因为我得和三四个不同的团队沟通。Guest: Inspiration and real data. Yeah. Yeah. Lots of people demoing how they, this is how I work. I'm going to solve a problem and I'll solve it live. And just being very, very open and having a bunch of different people show their version of that. And also every cloud ended up having some sort of an innovation that they created using sort of agents that would have taken them months, which they could do in a few weeks. And these are real shipping products that you would sort of be announcing at Dreamforce. I think that also helped a lot for people to see that, oh, actually, this thing works. It actually is helpful and it can make a difference. One of the architects in our team, she said, normally it would take me several days if I have to understand some new code, because I have to talk to 3 or 4 different teams.

所以,仅仅是不用再开会去了解别人的代码这一点,对他们来说就意义重大。第二件事则是自然而然发生的:人们过去在处理事故或现有的管理工作上花费了大量时间,而这些代理能为他们提供正确的信息。我认为这也引发了巨大的热潮。现在每个团队都有自己的事故处理代理。我看到一个 Slack 讨论串里有人在处理一起事故:外层服务收到了告警,因为请求落到了那里。但实际上出问题的是某个内部服务。代理直接说:“这是根本原因,这是负责的团队,我已经通知他们了。我们把问题转交过去就行。”然后这就是 POC,直接在 Slack 上联系他们就好。想想看,不然可是会有九个团队被叫醒啊。So just the fact that it eliminated the meetings to understand someone else's code was just huge for them. And then the second thing that was more organic also, that really made people spend an enormous time in incidents or sort of existing management and having these agents really give them the right information I think that was another huge groundswell. Every team has now their own incident resolving agents. I saw, going through a Slack thread where there was an incident, the outer service got paged, wherever the requests landed. But it was actually one of the inner services that had the issue. The agent just said, here's the root cause, and here's the team and I have raised a page for them. We'll just transfer it over. And then this is the POC just Slack them. Imagine nine teams would have been woken up, by the way.

它说:“不,去另一个。”这很神奇,对吧?作为工程师,你会觉得:哇。It said, nope go to the other one. That is magical, right? As an engineer you're like wow.

构建带评测功能的技能市场Building a skills marketplace with evals

主持人:所以你是在告诉大家,嘿,尽管想些酷点子,然后随便在哪个频道发布演示?Host: So are you just telling everyone, hey, come up with cool ideas, post demos in whatever channel?

嘉宾:专家套件最初只是一个想法:我们如何把他们开发出的所有技能汇集起来并分享出去?这就是最初的构想。什么是技能市场?我们能不能对这些技能进行评测,以展示它们的效果?能不能进行在线评测,回放使用或不使用这些技能的会话,或者让 Claude 提出改进技能的建议,让它们更节省 token,或更快得出结论。具体做什么改动都可以。然后,这些想法就逐渐汇聚成一个超大型技能市场,我们可以借此展示,大家分享的技能确实能带来实际成果。从某种意义上说,这也是我们工程工具链的一部分,让我们能够直观呈现的不只是正在进行的编码任务,还有 STLC 中哪些环节正在实现自动化。Guest: The expert suite was just an idea of how do we take all the skills that they're producing and share them? That was the original idea. What's a marketplace? Can we do evals for these to show their effectiveness? Can we do an online eval to replay the sessions with or without, maybe having Claude suggest improvements to the skills to make it more token efficient or arrive to the conclusion faster. Whatever the change might be. And it kind of just built into this, uber skill marketplace where we can show that the skills that are being shared actually have real value on outcomes. It’s part of our engineering harness in a way we can, kind of visualize, not just the coding tasks that we're doing, but you know, what is the different parts of the STLC that we're automating?

我们如何设计工作流?这也让我们能够实现分层,因为有些技能是共享的,适用于整个团队、整个工程组织;还有一些则适用于团队层面,乃至更小的 Scrum 团队层面,诸如此类。我们有数千个代码仓库。如果你想让任何人都能参与修复代码库中任何地方的 bug,就得知道:好,我要去处理这些代码仓库,目标是这个 API 接口范围。那么,我该用什么工作流,才能真正处理一个我以前从未接触过的代码库,并产出高质量的 PR?所以,你是让创新自下而上地发生。然后,当你看到它开始奏效时,就帮助它扩大规模。How do we design workflows? And it allowed us to do the hierarchy thing because there are skills that are the shared sort of, overall team, overall engineering level, there are things at the team level, the smaller scrum team level, all of that stuff as well. We have thousands of repos. And if you want to democratize the, you know, fixing a bug anywhere in the codebase, you have to know, okay, I'm going to go pick up these repos and this the API surface area I want to target. So like, how do I, what workflow do I use to actually address that code base I've never worked in before and then produce a quality PR. So you're letting the innovation happen bottoms up. Then as you see it start to work you help it scale.

防护机制:代码量翻倍,缺陷更少Guardrails: double the code volume, fewer bugs

是的。Yes.

主持人:你需要添加哪些护栏?Host: What are the guardrails that you need to add?

嘉宾:是的,也许最重要、最值得提到的一点是,我们必须关注质量。要用更科学的方法评估它的能力,以及它在不同情境下的实用性。就像人与人之间那样交谈,努力理解他们想要实现什么,以及他们认为自己的价值主张是什么?当他们分享这些想法时,要确保其他开发者确实能实现这些目标。这一点变得尤为迫切,因为就在过去几个月里,自从我们开始推动更快、更好地开发以来,代码量几乎翻了一倍。我们一直担心的是:好吧,这是否意味着 bug 会多一倍?问题案例会多一倍?幸好,我们发现情况并非如此。也就是说,实际增幅低得多得多。Guest: Yeah, maybe the most important to mention that we have to look at is quality. Taking a more scientific approach to, evaluating the capability and its usefulness in the different contexts. Just having a conversation as people. And try to understand what they're trying to achieve and what the value proposition, they think, they have? And as they sort of share it out, make sure that that's actually being achieved by other developers. This becomes really acute because just in the last several months since we've sort of pushed for going faster, better. We've almost doubled our code volume. The risk we always said was, okay, does that mean there'll be twice as many bugs? twice as many cases? Thankfully, we found out that wasn't tracking. Meaning that was much, much lower.

因此,平均来看,尽管生成的代码量激增,但每单位代码中的 bug 实际上反而更少。Ricky 说,这是因为有各种护栏,确保人们的操作受到检查和制衡,并确保传统机制和新机制都能持续保障代码质量。So we are, on the average, actually less sort of bugs per code that's being generated while our code volume has spiked. And that was because of all the guardrails, Ricky is saying, making sure there is checks and balances, in terms of what people do, making sure that all the traditional sort of mechanisms, as sort of new mechanisms, holds true in terms of the quality of the code.

重放基准测试以测试新模型Replaying benchmarks to test new models

主持人:对于想要重复这项练习的听众来说,他们该怎么做?你们只是逐个检查提交并标注“这是个 bug 吗?这是个 bug 吗?”吗?你们是如何以这种方式进行量化的?Host: For anyone listening to this that wants to repeat this exercise, how do they do it? Are you just going through commits and labeling, was this a bug? Was this a bug? How do you make this quantitative in this way?

嘉宾:所有内容都已经标注好了,而且大家都采用同一套标准 SDLC 实践。所以他们确实会使用工单系统,所有内容的标注也都保持一致。因此,我们已经有一套经过精心整理的数据集,可以从中着手。而且这些内容都关联到了 PR。Richard 和他的团队做的另一件大事,就是建立了一套基准评估集。假设有人想尝试新的技能,或者试用新的模型。比如,我们想试试看,然后问:这个模型的投资回报率是多少?现在,我们可以利用这些数据来模拟这个模型会如何表现。Guest: Everything's already all labeled, and everyone uses the same sort of, standard SDLC practice. So they do use the ticket system. Everything is labeled consistently. So there's a fairly well curated data set that we can start with. And then, that's all linked out to the PRs. That's another big thing that Richard and team have created is really a benchmark eval set. Now let's say somebody wants to try new skills or maybe wants to try a new model. Like, we want to go try it out and say, hey what's the ROI for the model? So we are able to now simulate with all of these how would that model work?

成本应该是多少?它更好吗?还是更差?这对我们帮助非常非常大。这个模型的变化解锁了哪些新前沿?我们现在能从这个模型中获得什么?对于 PDLC 中所有我们已创建基准测试的短期和长期任务,我们都会重新运行测试。此外,我们还新增了“失败转成功”这一项。比如,哪些任务是模型一直没能完成的?就是那些长期任务。所以,当我们看到模型通过这些任务时,就会想:嘿,这正是我们应该采用这个模型的原因——我们现在可以做很多事情来发掘这些能力。What should the cost be? Is it better? Is it worse? And that's been very, very helpful for us. And what frontier did that model change unlock. What can we now get out of this model? All the short and long horizon tasks across the PDLC that we have created benchmarks for, we just replay them. Plus the new thing we've added is the fail to fail. So like, what tasks have models consistently failed at? The long horizon ones. So that when we see them passing, we're like, hey, that's the reason we should pick up this model, there's a bunch of things we can now do to capture those capabilities.

没有验证的自主性,不过是自信的表演"Autonomy without validation is confidence theater"

主持人:理查德,你说过一句话:“没有验证的自主性,只是在表演自信。”在你相信一个智能体之前,你要求它拿出什么样的工作成果?编码任务和非编码任务的标准一样吗?Host: Richard, you had a quote that, autonomy without validation is confidence theater. What proof of work do you make an agent show before you believe in it? And is it the same for coding and non-coding?

Richard:我会尽量找一些客观标准,用来衡量我交给它的任务。这就是糟糕的表现,这就是良好的表现。糟糕的表现可以用负向测试用例来衡量。比如,你有没有弄坏其他东西?我让你创建一个新 schema,你有没有给现有实体添加字段?你有没有动过现有 schema 中的任何内容?我只是在找那些通常会关注的、可以客观评分的标准。也就是说,输出中有哪些特征能体现质量,或者能说明任务失败?这样一来,就不是单纯让智能体检查自己的工作,而是问它:你有没有找到这些特征?Richard: I try to find some objective criteria by which we can measure the task that I've given it. This is what bad looks like. This is what good looks like. And so bad would be a negative test case. So like, did you break anything else? Did you add fields to an existing entity when I asked you to go create a new schema? Did you touch anything in an existing schema? Just looking for just, objectively gradable criteria, that I would normally look for. So like, what features exist in the output that are indicative of quality and or indicative of a failure? Then instead of just asking an agent to go and review itself, it's like, did you go find the features?

给我看看这些特征的证据,也给我看看负面特征的证据。直接展示来源就行。对,把你的工作过程展示出来。把你找到的所有特征整理成一个矩阵,然后我们再详细讨论。如果不行,就退回去。Show me the evidence of the features, show me the evidence of the negative features. So just show the sources. Yeah. Show your work. Build a matrix of all the features that you found, and then we'll go into the details of it. If not, go back.

给智能体安排多大规模的任务How big a task to give an agent

主持人:你如何决定给智能体分配多大规模的任务?假设你手头有一堆工单,正在用故事点估算,有 1 点、2 点,诸如此类。随着模型变得越来越智能,你如何判断任务应该处于什么层级?多大规模才合适?Host: How do you decide what size task to give an agent? You have a bunch of tickets, let’s say you're doing story points, there's 1 point, 2 points, whatever. As the model gets more intelligent, how do you decide what's the right altitude? What's the right size task?

嘉宾:故事点数通常越多越好,因为我觉得,为一个非常小的任务投入的工作量可能不太值得。所以,与其把一大批功能都砍掉,不如让模型或执行框架来想办法拆解:与模型协作,把这些功能拆成更小、彼此隔离的任务,然后执行。在我看来,任何需要几分钟的事情,都可以通过快速的交互式会话来完成。至于其他事情,我就尽量把它们累积成一大块工作。Guest: More story points is usually better, because I feel like the amount of work that you have to put into a very small task might not be worth it. So it would be cutting a much larger set of features altogether. And then having the model or the harness, you know, figure out how to decompose, working with the model, decompose that into smaller, isolated tasks and for execution. But anything that's going to take a few minutes, in my mind, is a quick interactive session. And everything else, I just try to accumulate into a big chunk of work.

作为人类,我们一直在尝试把所有这些任务拆解开来。比如,先去构建一个大型功能,然后一步步细化到:“哦,做一、二、三项故事点的工作量,我来执行。”但如果有一组智能体为你工作,它们就可以自己完成任务拆解。我们不需要替它们把所有事情都拆解好。前期计划做得越好,你就能获得越多、质量越高的产出。As humans, we've been trying to decompose all these tasks. Like go build this big feature and really coming down to, Oh, do one, two, three story point units and I'll go execute that. But if you have a team of agents working for you, it can do the decomposition. We don't need to do all that decomposition for them. The better the plan upfront the more output you're going to get, the better output you're going to get.

最大的错误:模型与任务不匹配Biggest mistake: matching model to task

主持人:推出 Claude 时,你犯过的最大错误是什么?过去几个月,或者过去一年里,你觉得自己做错的最重要的一件事是什么?Host: What was your biggest mistake rolling out Claude? Over the last few months, over the last year, what's the one thing that you got wrong?

嘉宾:针对不同任务使用合适的模型,这样才能以合适的价格获得理想的投资回报。要看任务的长度和复杂程度。没错,因为我们发现有人用它来生成普通文件,而这类任务并不需要使用性能强大的模型。所以我们会根据任务的长度和复杂程度来判断。Guest: Use the right model for the right task. That gives you the right ROI for the right price. The length and the complexity of the task. Right. Because we saw people just using it to go generate regular files that they don't need a heavy duty model for that. So length and the complexity of the task is how we look at it.

主持人:Fable 问题和 Sonnet 问题分别有哪些例子?我们的一个产品中有个已知 bug,但我们一直没能找到它,也找不到根本原因。我记得我们曾尝试调查过几次,只为找出并修复这个问题。后来我们在这件事上部署了 Opus,让它调试代码、进行修改、编译代码,再继续调试,试着找到问题所在。Host: What are some examples of a Fable problem versus a Sonnet problem? There was a bug that we were aware of in one of our products. We could not find it. We could not find the root cause. I think there were a couple attempts at an investigation just to find and fix the issue. And we deployed Opus on this and we had it debug the code, make changes, compile it and debug and try to find it.

然后,24 小时后,它找到了这个问题,并提出了一个修复方案。我认为验证是其中最重要的环节,因为对我们的许多客户来说,这是一款相当关键的业务软件。如果这里给出错误答案,就会影响财务或其他方面。这个 bug 虽然很小,但我们可不希望修复方案反而引发一个大 bug,而且这个 bug 同样难以发现和修复。我认为,这是一个很好的例子,说明长周期任务适合交给非常大型的模型来处理。And then after 24 hours, it found it and it came up with a proposed fix. Now I think the validation part of this is the most important part, because it's a pretty critical piece of business software for many of our customers. And so getting a wrong answer here would impact financials or whatever else. So it was a small bug, we just don't want to have the fix turn into a big bug. And one equally as hard to find and fix. I think that's a great example of where this, of a long horizon task that is suitable for a very large model.

给工程师和 CTO 的建议Advice for engineers and CTOs

主持人:理查德,你有什么建议想送给正在收听的工程师们吗?MK,你有什么建议想送给 CTO 们?Host: Richard, what's your one piece of advice to engineers that might be listening? And MK what's your one piece of advice to CTOs?

嘉宾:我的建议是要大胆。对我们来说,重要的是要考虑从参与型系统转向自主型系统。因为你必须让创新发生。它不能只是自上而下的,而必须在适当的护栏机制下,既自上而下,也自下而上。我认为这是很重要的一点,还要营造一个人们可以分享的学习环境。我认为这些就是我会给出的主要建议。我发现自己总是会积累一份想要处理的事项清单,而且我能非常非常快地清空它。即使我需要去和团队开会,了解他们做了什么、代码库有哪些改动,我也能完成许多以前从未想过可能做到的事情。Guest: Be bold would be my advice. And it's important for us to you need to think about moving from a system of engagement to a system of agency. Because you got to let innovation happen. It can't just be top down. It has to be both top down and bottom up with the right guardrails. And I think that is a big thing and create that learning environment where people can share. I think those will be the big things I would advice. I found that I've always created a backlog of things I want to get to, and I can burn down that backlog very, very rapidly. Even if I need to go meet with the team, what have they done? What changes have been made in the code base? I can just do so many things that I never thought were really possible.

深入探索吧。这里有很多发现,有很多东西可以学习,而且整个过程也充满乐趣。非常感谢大家。谢谢。感谢邀请我们来。Dig in deep. There's just a lot of discovery here and there's a lot of learning, and there's a lot of fun to be had in this process. Thank you guys so much. Thank you. Thanks for having us.

值得记下

  1. 不能只看代码行数。
  2. 未经验证的自主运行,只是在表演自信。
  3. 给我看功能存在的证据,也给我看失败迹象的证据。