读见

Katelyn Lesse 谈 Anthropic 在 2026 年如何开发软件

原题How Anthropic builds software in 2026 with Katelyn Lesse

约 98 分钟原文英文已翻译

视频由 YouTube 提供

推荐理由Anthropic 平台工程负责人凯特琳·莱西复盘了 Claude 接口迁移中最难验证的部分。团队让新旧服务同时处理影子流量,比较请求进入推理前的行为,并保留旧服务回退。做核心系统迁移的团队可以借此梳理什么行为可验证、如何保护用户数据,以及何时才有足够证据切换流量。

看前速览

3 个要点

Katelyn Lesse 介绍了 Anthropic 如何用 Rust 重写 Claude API、重构托管智能体架构,以及怎样调整代码评审、值班和工程招聘。

  1. 先想清楚如何验证重写

    用影子流量比较两套系统,在上线期间保留备用路径。隐私规则不允许查看客户内容时,核对进入推理层前的数据和不暴露内容的指标。

  2. 将智能体的常驻运行与执行环境分开

    把控制层放在常驻服务,按需创建沙箱,改善故障恢复、启动延迟和 CPU 开销,凭证也能留在沙箱之外。

  3. 让智能体接手任务,系统责任仍归团队

    可以按变更风险分配评审,由智能体筛选告警,但负责系统的团队仍要对它负责。招聘也开始考查工程师如何与智能体协作。

完整摘要

为了验证 Rust 重写,Anthropic 把影子流量同时送到 Python 和 Rust 两套系统,在不查看用户提示词或模型输出的前提下比较差异。团队核对进入推理层之前的数据和返回时的 token 数,并在切换期间保留 Python 作为备用路径。托管智能体则把常驻运行的控制层、执行沙箱和会话存储拆开。Lesse 还介绍了评审请求如何分类、Claude 如何参与值班、系统责任为何仍归所属团队,以及公司正尝试用哪些面试考查替代传统手写代码。

文字稿

查看原文

简要说明Brief Description

凯特琳·莱斯讲述了 Anthropic 的工程师如何重建 Claude API、测试由智能体编写的改动,以及如何协调各团队的工作。对话还谈到了新人入职、招聘,以及工程师的角色正在发生怎样的变化。Katelyn Lesse describes how Anthropic engineers rebuilt the Claude API, test agent-written changes and organize work across teams. The conversation also covers onboarding, hiring and how the engineering role is changing.

目录Table of Contents

  • 简介
    Intro
  • Stripe
    Stripe
  • Claude API 的工作原理
    How the Claude API works
  • Claude API 的 Rust 重写版本
    The Rust rewrite of the Claude API
  • 使用影子流量验证重写结果
    Verifying the rewrite with shadow traffic
  • 使用 Claude 为新员工办理入职手续
    Onboarding new hires with Claude
  • 构建 Claude 托管代理
    Building Claude Managed Agents
  • Anthropic 工程团队的工作方式
    How engineering teams work at Anthropic
  • 代理自行处理的事项
    What agents handle on their own
  • 人工代码审查
    Human code review
  • 与 Claude 一起值班
    Oncall with Claude
  • 将产品发布到生产环境的产品经理
    Product managers shipping to production
  • Anthropic 的软件工厂
    Anthropic’s software factory
  • 逐步淘汰传统编程面试
    Phasing out traditional coding interviews
  • 职级、晋升与绩效评估
    Levels, promotions, and performance reviews
  • 软件工程师的身份认同危机
    The software engineer identity crisis
  • 图书推荐
    Book recommendation
  • 总结要点
    Closing takeaways

简介Intro

Katelyn Lesse:所以我们干脆用 Rust 把整个东西重写了一遍。Katelyn Lesse: So we just rebuilt the whole thing in Rust.

主持人:所以,整个 API 层。Host: So this whole API layer.

Katelyn Lesse:整个 API 层都是如此。只要你能真正把某件事归纳成可用某种方式验证的内容,就不必逐行检查每一行正在编写的 Rust 代码。如果你去问团队,他们可能会说,智能体提交的拉取请求中,大约 80% 的代码,他们都没有深入逐行阅读。我们也逐步取消了编程面试。实际上,我们基本上在所有产品团队和平台团队都这么做了。Katelyn Lesse: This whole API layer. As long as you can really boil something down to like make it verifiable in some way, then you don't have to look at every single line of Rust code that's getting written. If you were to ask the team, they would probably say something like 80% of the pull requests that got opened by agents, they didn't deeply read through all of the code that had gotten written. We've phased out coding interviews as well. And we've done this actually across all of our product and platform teams basically.

主持人:一个巨大的变化。Host: A huge change.

凯特琳·莱瑟:有人可能过不了那场编程面试,但其他所有面试都能表现出色。这是因为他们已经不再总是亲手写代码了。Katelyn Lesse: Someone might not pass that coding interview, but they would crush all the rest of the interviews. And it's because they're not writing code by hand all the time anymore.

主持人:软件工程师正面临身份认同危机。Host: There is an identity crisis with software engineers.

Katelyn Lesse:那些更难适应的人,是这样的人:我过去的身份认同就是在键盘上敲敲打打、写代码,然后事情就办成了。人们常会说,哦,这件事为什么重要?反正智能体迟早会做到。但我觉得关键在于……Katelyn Lesse: The people who are having a harder time are the people who are like my identity used to be that I click clacked on my keyboard and I wrote code and stuff got done. People will often say like, oh, why does this thing matter? Like agents will do it eventually. But I think the point is

主持人:如今在 Anthropic 内部,软件开发是什么样的?Katelyn 是该公司平台工程负责人。她的团队负责为 Claude 输出的每一个 token 提供服务的 API,并为 Claude Code 和 Claude Desktop 背后的基础设施提供支持。今天我们将聊聊,一个小团队如何在 5 个月内把 Anthropic 整个 API 层从 Python 重写为 Rust;Anthropic 为什么不再进行代码审查,以及取而代之的是什么;还有 Katelyn 给那些因不再手动编写代码而感到身份认同危机的工程师提出的建议,等等。如果你想难得一窥 Anthropic 内部的软件开发方式,以及软件工程师的工作发生了怎样的变化,这期节目就是为你准备的。本期节目由 Turbopuffer 呈现。Turbopuffer 是一款基于对象存储构建的混合搜索引擎,具有极强的可扩展性,速度快、成本低,Anthropic、Linear、Ramp 等众多前沿公司都在使用。Host: What does building software look like inside of Anthropic today? Katelyn is the head of engineering for platform at the company. Her team owns the API that serves every single token coming from Claude and powers the infrastructure behind Claude Code and Claude Desktop. Today we cover how a small team rewrote Anthropic's whole API layer from Python to Rust in 5 months time. Why Anthropic stopped doing code reviews and what has replaced them. Katelyn's advice to engineers who feel like they have an identity crisis because they no longer write code by hand and many more. If you want to get a rare inside look into how software is built inside of Anthropic and how the software engineering job has changed, this episode is for you. This episode is presented by Turbopuffer, a ridiculously scalable, fast and cheap hybrid search engine built on top of object storage used by cutting edge companies including Anthropic, Linear Ramp, and many others.

今天这期节目将聊聊 Anthropic。你可能听说过,他们重建了自己的版本控制系统,因为现有系统无法承受 AI 智能体带来的负载增长。接下来,我要介绍本季赞助商 Entire,他们解决的正是这个问题。Entire 由 GitHub 前 CEO Thomas Dohmke 创立,他从零开始为智能体时代重建了 Git 托管服务。Entire 刚刚推出了一套功能完整的 Git Forge。现在,你可以直接在 Entire 上托管私有仓库,服务区域包括美国、欧洲、印度、澳大利亚、巴西和新加坡。这不只是一个全新的 Forge,Entire 还为智能体时代重新设计了 Pull Request。PR 的问题在于,智能体写得太快,我们根本来不及审查。于是 Entire 用一种叫作 Trails 的功能取代了它。Trail 会把这项工作的一切汇集到一处:意图、代码变更以及智能体会话。Today's episode will be about Anthropic and you probably heard that they rebuilt their version control system because the existing one could not take the increased load from AI agents. This is where I need to talk about our season sponsor Entire who solved exactly this problem. Entire was founded by the GitHub's last CEO Thomas Dohmke and he rebuilt Git hosting for the agent era from scratch. Entire has just launched a full-on Git Forge. You can now host private repos directly on Entire in the US, Europe, India, Australia, Brazil, and Singapore. And it's not just a new Forge, but Entire has just reinvented the pull request for the agent era. The problem with PRs is how agents write it faster than how any of us can review it. So Entire replaced it with something called Trails. A trail collects everything about the work in one place, the intent, the code changes, the agent sessions.

一个 Trail 可以跨多个代码仓库,这样你对后端和 Web 应用所做的更改就能一起接受审查。借助 Trail,你可以配置自定义评估项,例如代码审查、安全审查、插槽审查等。它们看起来就像飞机上的抬头显示器,会在每次推送时为你的工作打分。你还可以查看每个智能体如何运行或通过你定义的门槛,并据此决定何时合并。关键在于,你可以控制何时允许智能体合并代码,比如只有经过人工审查后才合并,或等所有门槛都通过后再合并。如果你想看看 AI 原生的 Git Forge 是什么样子,可以访问 entire.io/pragmatic,了解 Trails。Katelyn,很高兴你能来参加我们的播客。A trail can be spread across multiple repos so the change to your backend and your web app gets reviewed once. With a trail, you can configure customized evals like code reviews, security reviews, slot reviews, and others. They look like a heads-up display in an airplane and score your work on every push. And you can see how each agent runs or passes your user-defined gates and decides when you merge based on these. The point is that you control when you allow agents to merge the code, like only merging after a human review or after all gates pass. If you want to see what an AI-native Git Forge looks like, head to entire.io/pragmatic and check out Trails. Katelyn, it's so nice to have you on the podcast.

StripeStripe

Katelyn Lesse:感谢邀请我。Katelyn Lesse: Thanks for having me.

主持人:在深入探讨你如何打造 Anthropic 的各种细节之前,我想先回顾一下。你是怎么对计算机产生兴趣的?又是怎么进入科技行业的?Host: Before we get into all the nitty-gritty details with how you're building an Anthropic, I want to go back. How did you get interested in computers? How did you get into tech?

凯特琳·莱塞:我当时在上大学,学的是工程学,具体来说是化学工程。不过每个人大一都得上计算机科学导论课。我上了这门课后就觉得:太棒了。于是我换了专业,开始学计算机科学。我觉得这真的很有趣。Katelyn Lesse: I was in college. I was studying engineering I was studying chemical engineering but everybody had to take introduction computer science classes in their first year and I took an introduction computer science class and I was like this is great and I changed my major. I started studying computer science. I just thought it was a lot of fun.

主持人:那么,你的第一份拿钱做软件开发的正式工作是什么时候?是在大学毕业后,还是在读大学期间?Host: And then what was your first professional job when you were we were paid to like you know build software? Was it after college? Was it during college?

凯特琳·莱斯:是的,我上大学时曾在金融科技公司 Betterment 做实习生,这家公司提供机器人投顾服务。挺有意思的是,我刚去实习时,“金融科技”还算是个新词,这也是个相当新的领域。Betterment 很早就提出了这样一个理念:你可以关联银行账户、设定目标,然后让资金由平台代为投资,就像真人理财顾问会做的那样。我一开始是以实习生的身份加入的,那段经历很有意思。后来我又回去实习了一次,毕业后就全职加入了。在那里全职工作了将近七年,所以我在那里待了挺长时间。Katelyn Lesse: Yeah, so while I was in college, I interned at Betterment robo-advisor Fintech, which was funny cuz at the time when I first interned there, Fintech was like a new word. It was a pretty new category and Betterment was pretty early to this idea that like you could link a bank account and set goals and have money invested for you the way a human financial advisor would. And so I started there as an intern, which was lot of fun. Went back for another internship and then went back full-time when I graduated. And then spent almost seven years there full-time. So I was there for a while.

主持人:然后你就从软件工程师一路升到了那里的工程管理岗位,对吧?Host: And then you went from like software engineer into engineering leadership positions there, right?

Katelyn Lesse:是的,算是比较早。我觉得这在一定程度上是因为我刚在 Betterment 开始全职工作时加入的团队。当时那是一个新团队,正在开拓一条新的业务线。我们开始推出 401(k) 计划。我想当时团队规模很小,在做一些新东西,而我从一开始就参与其中。所以几年后,当时的经理要离开,团队里也正好有机会让人开始负责管理,我觉得那时接手这个角色挺合适的。而且我很享受思考“我们要打造什么、又该如何打造?”这类问题,可能比钻研具体的技术细节更让我感兴趣一些。所以做出这个转变也就顺理成章了。Katelyn Lesse: Yeah, relatively early. which I think was a bit of a function of the team that I joined when I started full-time at Betterment was It was a new team building out a new business line. We started building out a 401k offering. And I think at the time it was like a really small team doing something new and I had started on it from the beginning. And so a couple of years in when, you know, the manager was leaving and there was kind of room for somebody to start managing the team, it like made sense at the time to step into that role. And I was having a lot of fun with the like what are we building and how are we building it? and you know, a little bit more maybe than like nitty-gritty technical details. And so it made sense to make that change.

主持人:一个挑战是,你在工程岗位上才工作了几年就进入管理层,比如通常还不到五年。传统观点是,你可能没有足够的时间深入了解代码,所以对代码的理解可能还不够深入。你有这种感觉吗?还是说你在那里担任经理时,也能继续亲自参与实际工作?Host: One challenge when you get into management after like only a few years of engineering, like you know, typically before you have five years This was the traditional like view is that you might have not had as much time to like, you know, like get in depth of the code and you might not be as deep. Did you feel this or were you also able to just be stay hands-on as you were a manager there?

Katelyn Lesse:我刚开始做经理的时候,还是亲力亲为的。我们是一家小公司,团队也很小,所以有段时间我仍然花很多时间写代码、审查代码,深入参与各种细节。所以没错,那确实还挺早的。我当时也有点担心:是不是太早了?我是不是应该再多做一段时间的个人贡献者?但我一旦开始做这件事,就觉得特别有意思。结果也证明没问题,尤其是因为这份工作的性质允许我在管理团队的同时,也能做一些更深入的技术工作。Katelyn Lesse: I was pretty hands-on when I was first a manager. We were a small company with small teams and so I spent a lot of time still building, still reviewing code, still very much in the details for a while. and so yeah, it definitely was early and for you know, I had a little bit of like is this too early? Should I spend more time as an individual contributor? But as soon as I got into it, I was having so much fun with it. And it turned out to be okay, especially because of the nature of being able to do a little bit more deep technical work at the same time as managing.

主持人:然后这份工作结束后,你就去了 Stripe,对吧?Host: And then after this gig, you ended up at Stripe, right?

Katelyn Lesse:是的。后来我去了 Stripe。其实我早就考虑过加入 Stripe,只是当时他们正在拓展支付周边的新金融产品,主要是在纽约开展这项业务。我那时也在纽约。所以后来我最终加入 Stripe,部分原因是我在 Betterment 最喜欢的一位经理也去了 Stripe。能加入他的团队,当时一起负责 Stripe Capital,感觉很棒。Stripe Capital 是 Stripe 的贷款业务。Katelyn Lesse: Yes. I ended up at Stripe. I had considered actually joining Stripe earlier than I actually did end up joining Stripe always in this area of they were building out kind of new financial products around the edges of payments and they were doing that mostly in New York. I was based in New York at the time. And so when I did eventually move over to Stripe, it was in part because one of my favorite managers from Betterment had ended up at Stripe. and so it was great to join him and work on Stripe Capital at the time, which is Stripe's lending business.

主持人:是的,而且当时你也在那儿。我记得,Stripe 的工程文化开始在 Stripe 之外也颇有名气,以工程卓越标准极高而著称,尤其是在金融科技领域。你知道,当时大多数金融科技公司都不太会让人联想到拥有真正高标准、世界一流的工程实力。Host: Yeah, and you were at the time there were I remember Stripe's engineering culture started to become pretty kind of well known outside of Stripe as a very high bar for engineering excellence, especially within fintech. There weren't many you know the typical fintechs would be ones you wouldn't associate with like really high bar world class engineering.

Katelyn Lesse:是啊,没错。大家都知道那里是个能做出很棒的工程项目、快速行动、实现远大抱负的地方。所以我一直想着有机会的话要去那里,正是因为这个原因;而它确实没有让我失望。Stripe 是个很棒的地方。我觉得那里是一种非常以工程为主导的文化。你知道,那里一直在发生大量创新,不断拓展到新的想法和新业务,而且这一切都发生得非常快。他们确实以此闻名。Katelyn Lesse: Yeah, exactly. it was it was known for just being a place where you could do really awesome engineering, you could move fast, you could be really ambitious. and so I kind of had my eye on going there at some point for that reason and it definitely lived up to that. Stripe is a really cool place. I think it's like a really engineering led culture. you know there's just so much innovation happening, so much expansion into new ideas and new businesses and it all happens really fast. They're definitely known for that.

Claude API 的工作原理How the Claude API works

主持人:是啊,通常来说,要在工程挑战或卓越程度上超越 Stripe 这样的地方,确实很难,但你现在来到了 Anthropic,正在打造一些非常有趣、很棒的东西。我之前发布过一篇深度解析文章,里面也附了链接;当时我还和你聊过后端和平台方面的挑战。现在你负责 Claude 平台。能否从整体上介绍一下,作为一名工程师,我该如何想象 Claude 背后的后端?它由哪些组件和层级构成?你们是如何看待它的?Host: Yeah, and usually it would be really hard to top a place like Stripe in terms of engineering challenges or excellence, but here you are at Anthropic building really it interesting and awesome stuff. One of with one of the deep dives that I published earlier and it's linked, I also chatted with you about the challenges of the back end and the platform side. So right now you're on Claude platform. Can you share at a high level for as an engineer, how can I imagine what is the back end behind Claude? What kind of components, what kind of layers, how do you think about it?

凯特琳·莱斯:没错,最底层就是模型在芯片上运行,也就是加速器这一层。推理团队就在我们正下方。主持人:GPU、TPU,还有可能推出的各种新硬件芯片。Katelyn Lesse: Yeah, so the very bottom layer is just like models, you know running on chips, right on the accelerator layer. That's the inference team that kind of sits right below us. Host: The GPUs, the TPUs, the whatever new hardware chips might come out.

凯特琳·莱瑟:没错。如果你是我们,那这些我们全都有;我们在这方面可是出了名的。再往上一层就是平台。平台既包括面向外部的一整套 API,你知道,它支撑着 Anthropic 的许多业务——大家都在我们的 API 之上构建产品。它还一路向下延伸到推理层上方。有意思的是,我们也为所有应用提供各类基础服务和产品基础设施。从工程角度来说,这很棒,对吧?你的应用和外部客户构建的产品都基于同一套 API,这一点很值得骄傲。真的很棒。比如,Claude 处理的每一个 token 都会经过 Messages API,这很好。Katelyn Lesse: Exactly. All of them if you're us, we're very known for that. And then right above that layer is the platform. and so what the platform is it's both our externally facing API suite which you know powers a lot of a lot of business for Anthropic, right people building on top of our APIs. And then it runs all the way down through just above that inference layer and what's interesting about it is we also power all of our kind of foundational services and product infrastructure for all of our apps as well. I mean it's it's a great thing in engineering terms, right? To say that your applications are built on the same API that external customers build on top of. so we're proud of that. That's really great. Like every token that Claude serves runs through the Messages API, which is great.

不过,我们也会为应用运行身份验证、CPU、网络、沙箱等各种功能,这也挺有意思的。所以,除了负责面向外部的 Claude 平台开发者工具之外,我们确实也算是一支平台团队。But then we also run, you know, auth and our CPU and our networking and our sandboxing and all those sorts of things for our apps as well, which is fun. So we're very truly a platform team in addition to owning kind of the externally facing Claude platform developer tooling.

主持人:然后从某种硬件的角度来看,也就是硬件设备本身,我可以想象底层有 GPU、TPU 以及那些硬件设备。接着是你们的团队,你们会有 CPU,或者说一些机器来协调如何访问这些设备,还有数据库之类的东西来锁定资源。那我该如何在脑海中构建这样一幅图景呢……Host: And then from a kind of hardware like just hardware boxes perspective, I can imagine that we have the GPU and TPU and those boxes on the bottom. And then your team, you'll have CPUs or kind of like machines that will orchestrate how access happens to these things, databases that lock things like it is how can I have a mental picture of like

Katelyn Lesse:是的,API 请求进来后,我们首先会调用身份验证服务,处理身份验证、授权之类的事情。然后你就会进入核心 API 服务。你说得没错,它就是一个 CPU 集群。它采用多区域、多云部署,所以请求会根据发起位置被送到合适的地方。在那里,我们会进行分词、处理计费,还会运行安全检查之类的操作,然后这些 token 会被送到实际的 GPU 上,之后再通过同一个服务返回,最终把结果发回去。有意思的是,我刚加入时,发现这个 API 的服务方式和 Stripe 的 API 有一个很大的不同:在这个系统里,请求可以保持打开状态长达一个小时左右,这确实很不一样。Katelyn Lesse: Yeah, so an API request comes in and the first thing we do is we hit our auth services, authentication, authorization, these sorts of things. And then you kind of get into the core API service. and you're right, it's just a CPU cluster. it runs multi-region, multi-cloud, and so depending on where you're starting from, it ends up in the right place. And in there is where we do tokenization, we handle billing, we, you know, run safety checks and all these sorts of things before those tokens make their way down to the actual GPUs and then come back up through that same service and get served back out, which is interesting cuz when I first joined, one of the things that was relatively different about serving this API versus APIs at Stripe is you could hold requests open for up to like an hour on this system, which is definitely different.

主持人:你们正在进行一场来回交谈。Host: You have a chat going back and forth.

Katelyn Lesse:对,没错。所以我觉得,随着时间推移,我们开始在这方面做更多创新。比如,怎样才能让系统更有韧性,或者减少来回传输的数据量?因为从本质上说,这些都是无状态聊天,所以每次模型轮次期间,你都得把整个对话状态来回传输。我们一直在努力让这套机制随着时间推移变得更稳健一些,但 API 的运行方式确实有点独特。Katelyn Lesse: Yeah, exactly. So I think over time we've started to do a bit more innovating on, you know, how can you be in a place where you have a little bit more resilience or maybe less data has to go over the wire back and forth because inherently these are stateless chats and so you're passing the whole conversation state back and forth the entire time you have a model turn, which is And so we've done some work to make that a little bit more robust over time, but it's definitely a an kind of unique shape of how the API runs.

Claude API 的 Rust 重写版The Rust rewrite of the Claude API

主持人:那么接下来我们深入谈谈具体内容吧。能不能选一个你做过的、比较有挑战性的项目,然后聊聊你是怎么实现的?因为我很想进一步了解构建项目的方式正在发生怎样的变化,而且我觉得,一如既往,围绕一个具体项目来谈会更好。Host: And then to get into specifics, can we choose like a challenging project that you built and then we can talk about how you built it because one of the things I'd like I'd love to learn more about is how building is changing and I think it's as always better to like talk about a specific project.

Katelyn Lesse:是的。所以我们用 Rust 把整个东西重新构建了一遍。Katelyn Lesse: Yeah. So we just rebuilt the whole thing in Rust.

主持人:所以整个 APIHost: So this whole API

凯特琳·莱斯:是的。Katelyn Lesse: Yeah.

主持人:哪一层Host: Layer which

凯特琳·莱塞:API 层。Katelyn Lesse: API layer.

主持人:其中包括授权、身份验证、令牌化和计费,Host: Which includes so authorization, authentication, tokenization, billing,

凯特琳·莱塞:是的。Katelyn Lesse: Yeah.

主持人:安全部门。Host: Security.

凯特琳·莱瑟:是的,保障措施,是的。Katelyn Lesse: Yeah, safeguards yeah.

主持人:Safeguard,这确实很多。我是说,如果这只是某种小型服务,那还好,可能很简单;但我们知道,谈到客户、海量数据等等,这个规模是巨大的。Host: Safeguard that's that's a lot I mean if this was like some small service, okay, that might be simple, but we know this is a massive scale when we're talking about customers, the sheer data and so on.

Katelyn Lesse:是的。Katelyn Lesse: Yeah.

主持人:那你最初是用什么构建它的?Host: So what did you build it in originally?

Katelyn Lesse:所以,Python。它是一个 Python 单体应用,而我们最初之所以要做这件事,其实就是因为它是一个 Python 单体应用,而且只运行在一个 GCP 区域中。然后……Katelyn Lesse: So Python. It was a Python monolith and it was originally actually just kind of the impetus for this was it was a Python monolith and it was running in a single GCP region. and

主持人:很久以前。Host: Way back in the day.

Katelyn Lesse:对,没错。其实也就在不久之前,这项服务就变得很难运行了,主要是 CPU 方面的问题。要想高效运行,说实话,坦白讲,我们运行服务的那个集群里 CPU 资源都快不够用了,这开始变得很棘手,真是不可思议。这完全是因为请求量随着时间推移飙升得太高了。Katelyn Lesse: Yeah, exactly. Not that unfortunately not that long ago. and this became really difficult to serve for just like CPU purposes. Being able to run efficiently and honestly just frankly having enough CPU in that cluster that we were running in was started to become problematic which is crazy and that's just a result of request volume having spiked so high over time.

主持人:我不得不问你一个问题,因为很多工程师都在想,为什么偏偏是 Python?大家都知道 Anthropic 一直聘用世界一流的工程师,而工程师们常常不太看得上 Python,一个原因就是觉得它的性能没那么好。那么,当时一定有人提出过一些反对意见吧?我想你肯定知道它的性能不会那么出色。Host: One question I'll have to ask you because a lot of engineers are thinking why Python especially just knowing how Anthropic has always hired like world-class engineers and engineers often one reason they sniff at Python is like, well, it's not as performant. So what were the there must have been some counter arguments like I'm sure you knew it's not going to be as performant.

Katelyn Lesse:是的。这件事发生在我加入 Anthropic 很久之前。据我了解,那大概是三年前,或许到现在已经更久了。当时 Anthropic 已经作为一家研究公司存在,会训练模型,但向公众提供这些模型并不是 Anthropic 一开始就在做的事。所以,当他们最初决定要“好,我们现在要构建一个 API,还要开发应用,做这些事情”时,开发团队非常小,成员基本上都是研究团队的人。研究社群和这个领域的从业者,至少当时,大多使用 Python。所以这其实只是从……开始的。Katelyn Lesse: Yeah. So this was well, this was long before I was at Anthropic, but my understanding is this was about three years ago, maybe more at this at this point where Anthropic had existed as a research company making models and serving those models to the public was not a thing that Anthropic was doing at first. and so when they first decided, okay, we're going to build an API now and we'll build apps and do these sorts of things, it was a really tiny team of developers who were basically like crossing over with research. and so the research community and folks who work in this space tend to, at least at the time, work mostly in Python. And so that's kind of just working from

主持人:TensorFlow。Host: TensorFlow.

Katelyn Lesse:对,没错。Katelyn Lesse: Yeah, exactly.

主持人:我理解得对吗?这让工作方式变得非常无缝,比如做研究时,你可以轻松地调整代码,或者把他们的原型转化为可投入生产的版本,等等。Host: Do I understand this allowed like really seamless way of working like research you could easily like you know like maybe tweak with the code or take their prototypes and turn into production and so on.

Katelyn Lesse:对,没错。所以,当时的研究团队、推理团队、基础设施团队和产品团队——产品团队那时才刚刚起步,只有几个人——综合考虑下来,这个选择最方便大家协同合作。Katelyn Lesse: Yeah, exactly. and so between the research team, the inference team, the infrastructure team, and the product team that at the time was just a couple of people who were getting started, that was kind of the choice that made it easiest for them to all work together.

主持人:好的,听起来你很快就发现了,嗯,性能问题和 CPU 问题,而且你还写过关于 CPU 资源紧张的文章。Host: Okay, so it sounds like you discovered pretty quickly, all right, performance issues and CPU and there's a CPU you wrote about the CPU crunch as well.

凯特琳·莱斯:我当时是亲身感受到了。Katelyn Lesse: I was feeling it directly.

主持人:是啊,我想这多少有点鼓舞人心。Host: Yeah, so I guess this was inspiring a little bit.

Katelyn Lesse:是的,当然。我们从去年年底左右、进入今年以来就一直在考虑这件事,因为那时我们开始看到请求量真的激增。我觉得尤其是今年早些时候,我们团队遇到了一件挺有意思的事:我们投放了一支超级碗广告。你知道,投放超级碗广告是个典型的工程问题,你得谨慎考虑可能会出现什么样的流量峰值。再说一次,因为我们所有的应用都运行在 Messages API 上,所以它实际上就是支撑一切的那一层,所有可能出现流量峰值的请求都会经过它。你知道,超级碗广告可能不会让人当场打开笔记本电脑来搭建 API 集成,但你可能会选择下载我们的移动应用试试看,而这一切仍然是通过 API 运行的。Katelyn Lesse: Yes, for sure. This is something that we've been thinking about since I want to say like late last year coming into this year where we were starting to see request volume like really spike. And I think especially, earlier this year an interesting thing for our team, we ran a Super Bowl commercial and you know you run a Super Bowl commercial and it's a classic engineering problem where you got to be careful about you know what sort of spike might you see. And so again because all of our apps run on the Messages API, it's like very much this layer that's serving everything that might spike. Like you know a Super Bowl commercial probably doesn't lead someone to like crack open a laptop and build an API integration on the spot, but you might go choose to you know download our mobile app and give it a shot and that's all still running through the API.

于是我们开始看到请求量真的大幅上升,而那段时间,你知道,我们运行的 CPU 集群也开始变得相当吃紧。这真的很有意思,因为在我的职业生涯中——我想直到最近,大多数人也都是如此——CPU 一直是那种你想怎么自动扩展都行的资源。你得为此付费,但想要更多的话,就能拿到更多。而这是第一次,我们开始——或者说我个人开始——感受到,我们想从 Claudes 那里获得更多,但这次的沟通比以往任何时候都更难。And so we started to see request volume just like really go up and in that time, you know that CPU cluster that we were running started to get pretty crunched. And so it's really interesting because in you know in my career and I think for most people up until recently, CPU was the sort of resource that, you know, you could auto scale to your heart's desire. You got to pay for it, but you can get more if you wanted more. And this is the first time when we were starting or I was starting to personally feel that, you know, we wanted more from the Claudes and it was a harder conversation than at it had ever used to be.

主持人:是啊,因为我只是在回想我们之前关于 Python 说过的话,它有这么多优点。它无缝衔接,也很容易构建。另外,我知道你构建了最初的 API,而消息 API 就是那个 API,对吧?它可以互换,而且能够横向扩展,也就是说,你随时只要增加更多 CPU,就能……Host: Yeah, cuz I'm just I'm reflecting on, you know, what we said about Python and there's all these advantages. It's seamless. It's it's easy to build. Plus, I understand that you built your original API, which the message API is the is the API, right? It's it's interchangeable to be horizontal scalable, meaning you can always just add more CPU and you'll you'll

凯特琳·莱塞:是的。Katelyn Lesse: Yeah.

主持人:无限扩展。这就是我们过去的思路。比如,以前我觉得工程上的难题在于,垂直扩展很蠢,因为机器的数量总是有限的,但水平扩展是无限的。Host: Scale indefinitely. And this is how we used to think about it. Like I the engineering challenge back in the day used to be that vertically scalable is stupid cuz there's only so much machines you can have, but horizontally is infinite.

凯特琳·莱瑟:对。Katelyn Lesse: Right.

主持人:而现在它未必是无限的。Host: And now it's not necessarily infinite.

Katelyn Lesse:没错。而且你知道,它是单线程的。这不是一个高效的系统。我们团队一开始采取了一些经典做法,你知道,我们开始在另一个区域运行,对吧?然后路由流量,但当然,区域之间的网络带宽就成了难题。不过无论如何,对吧?在说“我们得把整个东西重建一遍”之前,我们先采取了一些比较显而易见的措施。我们找到了小幅提升效率的方法,也找到了基础设施层面的效率提升。但今年早些时候,有些工程师开始说,如果我们要继续应对这种增长和请求量,就得采取更大刀阔斧的措施。真正提出这个想法的,尤其是其中一位工程师,他说:“我觉得我觉得我们得试试 Rust。我觉得我们得试试一种截然不同的东西。”Katelyn Lesse: Exactly. and you know, it's single threaded. It's like not an efficient system. Our team started by doing some of the classic, you know, we started running in another region, right? And routing traffic, but then of course like network bandwidth becomes hard in between your regions. But regardless, right? We took some of the more obvious steps that you might take before you say we got to rebuild the whole thing. we found smaller efficiencies. We found infrastructure layer efficiencies, but earlier this year we had some engineers who started to say like we got to do something more drastic if we're going to continue to see this growth and request volume. And it really was one engineer in particular who was like I think I think we got to try Rust. I think we got to try something that's very different.

主持人:好,那么,你知道自己需要更快的东西,但你本来可以选择 Go、Java、Rust、C++ 或 C。我理论上就不提汇编了,咱们还是别聊这个。我知道我们有不少缺点。你们是怎么选定 Rust 的?我想,你们做这么大的项目,肯定也考虑过其他方案。你们当时遵循的指导原则是什么?Host: Now like okay, you knew you needed something faster, but you could have chosen Go, Java, Rust, C++, C. I'm not going to say assembly theoretically, but let's not go there. I know we have a bunch of downsides. How did you settle on Rust? I assume that you must have just looked given that the big project you might have must have looked at alternatives. Like what was your kind of guiding principle here?

凯特琳·莱瑟:其实我们已经开始用 Go 构建一些服务了。你这么说还挺有意思的。我们运行的所有服务里,原本有一些是用 Python 写的。不过现在也不太算了,我们基本上已经把它替换掉了。大概去年某个时候,我们就开始用 Go 构建一些新服务。你知道,这就是很经典的那一套:我们有一个巨大的单体应用,不如采用更多面向服务的架构。随着我们不断构建新服务,就会开始讨论:这些服务应该是什么样的?这就是非常典型的工程讨论:该选什么?当时选了 Go,因为你知道,那些模型还没发展到语言选择完全无关紧要的程度。你还是希望选择一种对开发者友好、便于开发的语言。所以选 Go,是因为它在效率和开发体验这两个方面都处于比较理想的位置。Katelyn Lesse: So we actually and it's funny you say that, we have started building some services in Go. And so really the of all the services that we're running, we've got some Python. Well, now not really. We've mostly replaced it. We had started to build some new services in go as soon as you know, sometime last year, we started to do the classic like we have a giant monolith. Let's do more service-oriented architecture. As we build out new services, what do we want those services to look like? Very classic engineering debates of what do you choose? And go was chosen at the time because, you know, the models were not quite yet in a place where language choice like didn't matter at all, you know? You still wanted something that was friendly to developers to be able to develop with. And so go was chosen for being somewhere in a nicer spot on the spectrum of like efficiency as well as you know, developer experience.

后来事情变得有意思起来,因为 Anthropic 整个系统中有些对性能要求最高的部分,大家开始琢磨:我们是不是应该再进一步?当时模型也越来越强,也许团队里没人有过太多 Rust 开发经验也没关系。最终,我们选择了 Rust 这种新潮又有意思的语言,它效率很高,能带来所有这些好处;而且,也许团队里没有很多 Rust 开发者也没关系,因为模型已经足够强大,可以更多地处理实现细节。And then it became interesting because some of the parts of all of Anthropic systems that needed to be the most performant, people were reaching for like we should just go even further, right? And models were starting to get better and it was maybe okay that we didn't have people in the team who had done a lot of rust development previously. And we came all the way to rust as the like kind of new age interesting language that you could choose that would be really efficient and give us all of those wins, but maybe, you know, was okay that we didn't quite have tons of rust developers in the room because the models had gotten good enough that the implementation details could be more handled by the models.

主持人:是的,我明白。如果我说错了请纠正我:Rust 在性能方面的关键是不用汇编,因为汇编是针对特定芯片的,每次都得重新编写。不过除此之外,C++ 的效率最高,因为你几乎可以完全掌控内存,以及如何分配内存之类的事情。显然,Rust 的性能可以与之相当,同时还能保证内存安全。C++ 并不具备内存安全性,但作为交换,你需要理解借用检查器之类的东西,而且有些事情你做不了。语言会在编译时拦住你,但新手工程师经常会因此感到困惑,因为这真的很让人沮丧。至于其他语言,它们至少都有一层小小的抽象,这意味着性能会稍微差一些,但能提高开发效率。Host: Yeah, and I understand, correct me if I'm wrong, that the thing with performance in rust is taking out assembly because that's chip specific and you would need to rewrite it every single time. But outside of that, C++ gives you the most efficiency because you can you can have pretty much full control over the memory over how you allocate things that the how. And apparently with rust, you can have on par with it, but you can be memory safe. C++ is not memory safe, but in return you need to understand things like the borrow checker. And you cannot do certain things. There's and at compile time the language stops you, but new engineers often get confused because it's really frustrating thing. And then everything else, all the languages they have at least one small abstraction layer that will mean that their performance will be slightly worse, but it'll be more developer productive.

这像是……吗?Is this like

Katelyn Lesse:对,没错。所以我觉得,这里面的权衡确实挺不错的:我们尽可能追求最高效率,同时又不至于……你知道,我也说不好,如果我们说“现在要用 C++ 写了”,会有多少工程师辞职。但我觉得,Rust 对很多人来说很有吸引力,因为它兼顾了其中一些权衡;而你刚才提到的那些容易踩的坑,确实会让人很头疼,不过有些事情我们可以依靠模型来帮我们处理。所以一开始我们确实经历了一些阵痛:刚开始这么做时,大家还不太清楚该怎么做。Claude 帮你写代码,这只是战斗的一半;另一半是 Claude 帮你理解写出来的代码,以及到底发生了什么。Katelyn Lesse: Yes, exactly. So, I think there was just like a really nice tradeoff in there between we were going for the most efficiency that we could possibly get without some of the like you know I don't know how many engineers would have quit if we were like we're doing in C++ now, you know. But I think Rust was interesting to a lot of people as something that accounted for some of these tradeoffs and those like foot guns that you kind of talked about that can be really frustrating are things that we could rely on models to deal with some of those things for us. And so there were definitely growing pains at first when we first started doing this and you know people didn't really know what they were doing yet and half the battle is Claude helps you write the code, the other half the battle is Claude helps you learn what code is being written and what's even happening.

所以,在这种情况下,我觉得我们找到了一个不错的平衡点。我们团队里很多人都会说,他们比预想中更快地适应了 Rust,并且对用 Rust 开发感到得心应手。顺便说一句,Go 也发生了同样的情况。我们刚开始用 Go 构建东西时,真正有过相关经验的人并不多。虽然有几位,但大家对此都很紧张。他们会说:“你知道,我以前是 Ruby 开发者,或者 Python 开发者,或者其他什么语言的开发者。”而这是一门新语言。即便是在一年前,当时模型还没那么好用,大家也觉得自己很快就能适应,理解其中的范式并开始上手。我觉得,这正是这些模型的神奇之处之一:大家会想,“哦,模型都在写代码,所以我不必真正理解所有细节。”但实际上,如果你愿意,你完全可以理解这些细节,而且学习起来也更容易,因为模型也会帮你完成这一部分。And so in that world I think we found what felt like a good tradeoff and I think a lot of people on our team would say that faster than they expected to they got really comfortable with Rust and with developing in Rust. The same thing happened with Go by the way. When we first started building in Go we didn't really have too many people who had done so in the past. We had a couple but people were really nervous about this. They were like you know I was a Ruby developer or I was a Python developer or whatever it might be and this was a new language and even then at the time a year ago when the models weren't quite as good people felt like really quickly they were able to get comfortable and kind of you know learn the paradigms and get started. And I think that's one of the you know magical things about these models is people are like oh the models are writing all the code and so it doesn't really matter if you understand all the details, but actually you can understand the details if you want to and it's easier to learn them because the models will help you do that part too.

主持人:是这样吗?你说的是和模型一起学习。所以具体来说,在你的团队里,或者你自己,我想问一下,你之前学过 Rust 吗?Host: Is it So you said learning together with the models. So like specifically on your team or even yourself like I assume did you do Rust before?

凯特琳·莱瑟:不。Katelyn Lesse: No.

主持人:那你是怎么处理这件事的?你的做法是不是比较随意,比如说“好,去实现这些功能”,然后就不看代码了?还是像你说的那样,你想学习,至少先弄明白,再进行验证,之后才信任那些确实可以信任的东西?你是怎么做的?Host: And how did you approach this? Is it a more of a hand wavy like okay go ahead and implement this and this and then you're not going to look at the code or as you say you want to learn, you want to at least understand and then validate and then later trust the certain things that you can trust. What's your approach?

Katelyn Lesse:是的,我觉得任何工程师都会自然而然地想学一点。你会想在必要时看看代码,对事情的进展大致心里有数。我觉得说到底,如果你以前用这些语言手写过代码,那么看 Rust 代码并弄清楚它在做什么,并不是什么特别陌生、不可思议的事。所以总的来说,如果非要我用百分比来估算,我会说 75% 的情况下,代码会由模型来写,也许并不重要的是不是完全理解具体语法。但我觉得还有 25% 的情况,工程师会出于本能地想弄明白这里到底发生了什么。于是你会发现自己在向模型提问,了解它实际写了些什么,以及究竟发生了什么。Katelyn Lesse: Yeah, I think the natural inclination for any engineer is you want to learn a little bit. You want to be able to look at the code if you have to and have somewhat of a sense for what's going on. I think at the end of the day, if you're if you're someone who used to write code by hand in any of these languages, it's not like the most foreign insane thing to look at Rust code and, you know, figure out what's going on. And so I think for the most part, the if I had to like put a percentage on it, I would say 75% it's like the model is going to write the code and like understanding the exact syntax maybe doesn't matter. But then 25% I would say is just like an engineer's like, you know, natural inclination is I kind of want to understand what's going on here. And so you find yourself asking the model questions and figuring out a bit about what it's actually writing and what's actually happening.

然后你就会达到这样一个阶段:比起那些完全不了解情况就来的人,你会更自在一些。你能看出门道,也大致明白什么才是重要的。And then you get to a point where, you know, you're just more comfortable than somebody who's coming in totally blind. You like can see it and like generally understand what matters.

主持人:对,我想你能看到整体结构。你可能会觉得,我想学一学,想弄明白这几行代码是做什么的,因为接着你就会想弄明白。是不是有点像“信任,但要验证”这种意思?Host: Yeah, and I guess you see the high-level structure. You might decide I want to learn. I want to understand what these few lines do cuz then you're like you want to understand. Is it like a trust but verify thing ish?

Katelyn Lesse:算是吧。不过,如果我说你确实不需要理解每一个细节,那基本上才是在说实话,对吧?我觉得工程师多少会想弄明白这些东西,也会花点时间接触它,慢慢熟悉一些。但我认为大多数情况下,具体的实现细节、代码究竟该怎么写的那些繁琐语法,如今已经没那么重要了,尤其是今年以来,模型一直在变得越来越好。你可以更加信任模型:只要你把想让代码实现什么意图讲得足够清楚,模型写出来的代码很可能会比你自己写得更好。Katelyn Lesse: Kind of. but I mean I would be lying if I tried to claim that it wasn't mostly the case that you don't really need to understand every last detail, right? Like I think it's a an engineer kind of wants to and you spend a little time with it and you get to know it a little bit. but I think for the most part, it's like the actual implementation details, the like nitty-gritty syntax of how exactly the code gets written just doesn't matter nearly as much anymore, especially as this year has gone on and the models have gotten better throughout this year. you can trust much more that as long as you are really clear about the intent that you have with what you want code to do, that the model will write the code better than you probably would have yourself.

主持人:开发者对 Rust 感到沮丧的一个原因,同时也是它非常强大的一点,是它拥有最多的编译时检查。作为开发者,你会……我之前请过 Rust 团队的 Alice Ryhl 来这里,她说,开发者经常会和借用检查器较劲,也会和 Rust 较劲,因为他们的代码无法通过编译。你得投入很多精力,因为会有一轮又一轮的反馈;但编译通过之后,她说,Rust 越来越受欢迎,是因为 Rust 里的 bug 更少了,因为它有更多编译时检查。这意味着,只要你的代码能编译通过,就有一整类 bug 几乎不可能出现,除非你用了 `unsafe` 关键字——不过你应该,我是说,别用它,这样就没事了。你也觉得这是 Rust 越来越受欢迎的一个原因吗?Host: What One reason developers were frustrated with Rust, but also it was a very powerful thing, it's the language that has the most compile-time checks. So as a dev, you would when I had Alice Ryhl here on here from the Rust team, she was, you know, saying how developers are really kind of often like fighting the borrow checker and fighting Rust because their code will not compile. You put a lot of effort into it because there's all these feedback loops, but when you compile, she said Rust is becoming very popular because there's fewer bugs in Rust because there's a lot more compile time checks, meaning if your code compiles, there's a whole category of bugs that is near impossible unless you use the unsafe keyword, which you should I mean don't use it and then you'll be fine. Do you do you see this as well that this being a reason for Rust to become more popular?

那么,模型可以进行更多迭代吗?还是只是给你一些东西?实际上,有很多事情你不必再费心处理。比如,你不再需要担心内存安全问题。Does do the models get to iterate more or just give you stuff that actually there's a whole host of things you don't need to work for example, you don't need to worry about memory safety anymore.

凯特琳·莱斯:对,没错。我觉得这其实是很多……怎么说呢,就是你用模型和智能体能完成的事情。你越是能让结果变得可验证,在一个存在非确定性的世界里,只要能让事情可验证,你的处境就会非常好。这也是这件事特别棒的一点:好,没问题。当然,你会有更多编译时检查;如果你是手写代码,还要经历一个非常缓慢的迭代循环才能让代码编译通过,那确实会很烦。但在你甚至不太需要操心、由模型或智能体来完成这些工作的情况下,这反而很棒,因为等它最终完成并把东西跑起来之后,你对结果会更有信心。Katelyn Lesse: Yeah, exactly. And I think that's that's a lot of I don't know just like things that you accomplish with models and things that you accomplish with agents, the more you can get it to be like verifiable, you know, in a world of non-determinism, as long as you can get stuff to be verifiable, you're in a really great spot and that's just one of the really nice things about this is like okay, great. Sure, you have more compile time checks and if you're writing code by hand and going through a really slow iteration loop to get your code to compile, that would be annoying. But in a world where you're not really even paying attention and the model is doing it, the agent is doing it, then that's great because you do have more trust in what you end up with once it gets there and it gets something working.

使用影子流量验证重写方案Verifying the rewrite with shadow traffic

主持人:那我们来聊聊可信度。你们把 API 的一部分用 Rust 重写了。你们是怎么拆分和处理的?又是怎么确认它可靠的?比如测试、验证,以及部署到生产环境。Host: So let's go to the trust. So okay, API, you rewrote parts of it in Rust. How did you slice and dice it and then how did you trust it? Testing, verification, rolling out to production.

Katelyn Lesse:是的,最初的计划是把系统的一部分拆出来,然后用 Rust 重写。后来我们开始着手做这件事,做到一半时——显然,这是一项进展相当缓慢的工作——我团队里新来了一位高级工程师。他加入后就说:“听我说说。要不我们一次性全部做完?要不我们就这么干?”他把这个想法称为“大跃进式”。这个想法是:要不我们直接搭建一个代码库的分支,用 Rust 把整个系统都重写一遍?这样你就可以保留这个 Python 前门,对吧?有请求进来时,会先经过一个非常精简的 Python 前门,由它把请求路由到 Python 系统,同时也在 Rust 系统中以影子模式运行。Katelyn Lesse: Yeah, so the original plan was going to be, you know, like splice off pieces of the system and rewrite those in Rust. And then part of the way through getting started on doing that and obviously that was that was a pretty slow undertaking. part of the way through doing that I had a new senior engineer join my team and he kind of came in and he was like hear me out. What if all at once? What if we do it and he had kind of called it like great leap style? And the idea behind that was what if we just stand up a basically like fork of the codebase and just like do that whole thing in Rust. Then you can kind of have this Python front door, right? Like a request comes in, there's like a really thin Python front door that can route a request through the Python system and then run a shadow through the Rust system.

而真正有意思的是,重要的是确保你得到的输出是相同的。And then what's really interesting about that is that what really matters is making sure that the output you're getting is the same.

主持人:一样。Host: The same.

Katelyn Lesse:没错。然后不断迭代,比如让模型统计某一天里 Rust 和 Python 之间有多少请求存在差异,并持续迭代。最大的挑战是,我们不会查看用户的提示词,也不会查看用户的生成结果。所以如果出现差异,你怎么知道 Python 和 Rust 之间究竟是哪方面不同?如果我们实际上无法查看系统中流动的任何数据,又该如何知道怎么修复呢?Katelyn Lesse: Exactly. And then iterating until, you know, having the model say in any given day, how many of these requests were different between Rust and Python and iterate. The biggest challenge is we don't look at people's prompts, we don't look at people's completions. And so if you had a difference, how do you know what about it is different between Python and Rust and how do you know how to fix it if we can't actually look at any of the data that is flowing through the system?

主持人:哦,我明白你的意思了。所以你是说,出于数据隐私和敏感性方面的考虑,以及它的运作方式,如果出现差异,你不能直接说“把原始数据给我,我来调试”。你就是……这不可能。好吧,好吧。Host: Oh, I see what you mean. So you're saying that because of data privacy and sensitivity and the way it works, if you would get a difference, you cannot just say like give me the raw data and I will debug. You just it's impossible by Okay. Okay.

凯特琳·莱斯:所以这真的很有意思,对吧?因为就像……Katelyn Lesse: So that's really interesting, right? Cuz like

主持人:这让事情更具挑战性。Host: That makes it more challenging.

Katelyn Lesse:对,对。因为我们想做的整件事,就是说,如果能做到每次都把请求分别交给 Python 系统和 Rust 系统处理,并且得到相同的输出,那整个流程就会非常简洁。我们实际上没法核实这些东西的具体细节。所以我们做的第一件事,就是确保一直到某一层为止都是一致的,也就是还没进入推理的那一层。然后我们做的第二件事,是在返回的过程中检查 token 数量。token 数量是一样的。对,没错。这样你就大致能确定两边是一样的。但你知道,还是会遇到一些细微差异,而无法查看原始数据时,处理起来就难得多了。Katelyn Lesse: Right. Right. Cuz the whole thing that we were trying to do was just say like we could get this really clean if we get all the way to a place where 100% of the time you run the request through the Python system and the Rust system and you get the same output. We can't actually verify the details of those things. And so the first thing that we did was say like right up until the layer where something is like going down into inference, make sure that is the same. And then the second thing that we did was on the way back out, just check token counts. The token counts are the same. Yeah, exactly. Then you kind of know that it's the same. But then, you know, you still get into these places where you have these tiny differences and it's much harder when you can't look at the raw data.

于是团队不得不思考:我们可以通过哪些不同的方式,找出这两个系统之间可能存在的差异?最终,我觉得归根结底就是要想办法观察——再说一次,就是一直观察到某个东西进入推理阶段之前。那才是这个系统真正的核心。这样一来,你就能看到正在发生什么,也更容易找出可能出错的地方。整个过程基本上就是日复一日地迭代:计算 Python 和 Rust 之间的差异比例,然后不断把它降下来、降下来、再降下来,直到差异几乎消失,对吧?然后你就可以说:“好,太棒了,我们开始逐步上线 Rust 系统吧。”And so the team had to think about, you know, what are the all the different ways that we can figure out what might be different between these two systems. And ultimately, I think it just came down to a lot of you know, like how do we look at again just like right up until the before something goes down into inference. And that's like really the meat of this system. And so in all of that, you know, you can see what's going on, and it's much easier to figure out what could be wrong. But that was how it worked, was basically just like iterating day over day on take the percentage of difference between Python and Rust and like drive it down, drive it down, drive it down until a place where it was you know, like near perfect, right? And then you say, okay, great, let's start rolling out the Rust system.

我们当时的做法是,有一段时间仍然保留着 Python 入口,因为如果出于某种原因,我们遇到了 Rust 系统的 bug,或者系统不知为何拒绝处理请求、报错了,你总还能退回去使用 Python 系统。这样速度会稍慢一些,但总比完全收不到响应要好。所以我们就一直这么做,直到我们足够放心,决定把这个入口彻底移除。And what we did was for a while we still had that Python front door because if for whatever reason we ran into a bug with the Rust system or like, you know, the system refused to process a request for whatever reason it threw an error, you could always just fall back to the Python system. And so it would be a little bit slower, but that's better than just not getting a response at all. and so that was kind of how we did it until we got comfortable enough to rip out that front door.

主持人:然后你其实没怎么查看生成的代码,因为通常迁移时,你往往会重写一部分,做代码审查,也会有一层测试,比如单元测试或集成测试,作为后备方案。但显然,你们还是会做你说的影子测试——影子流量才是最终的事实依据。不过你们居然就这么轻轻松松地度过了整个过程,心想:“哦,看看我们是怎么迁移业务逻辑的。”Host: And then you didn't look at the generated code all that much, like cuz usually with a migration you typically often be, you know, rewrite some part, you do a code review, you often have a testing layer, like a unit or integration testing layer that gives you a fallback. But obviously you still do what you say is the shadow, the shadowing, that is the ultimate source of truth. But you were just able to just like sleep through this like, oh, let's see how we ported the business logic.

Katelyn Lesse:对,没错,这确实有点不可思议。但我觉得我们现在所处的世界就是这样:只要你能把某件事归纳得足够清楚,让它可以通过某种方式验证,就不必逐行检查所有写出来的 Rust 代码。我觉得在这个案例中,考虑到这个系统的性质、它的核心地位,以及把事情做对有多重要,我们最终让工程师深入代码细节、弄清楚哪些地方可能需要修复的程度,其实比你想象的要高。如果你问团队,他们可能会说,智能体提交的拉取请求中,大约 80% 的代码,他们都没有仔细通读。至于剩下的 20%,我想大概是那些遇到问题、试图把某件事做到尽善尽美的情况;这时他们就不得不深入细节,弄清楚代码到底出了什么状况。Katelyn Lesse: Yeah, exactly, which is kind of crazy. But I think that's the world that we live in now is as long as you can really boil something down to like make it verifiable in some way, then you don't have to look at every single line of Rust code that's getting written. And I think in this case actually, because of the nature of this system and how central it is and how important it was to get things right, I think more so than you might think, we ended up with engineers like getting into the details of the code and figuring out what might need to be fixed. If you were to ask the team, they would probably say something like 80% of the pull requests that got opened by agents, they didn't like deeply read through all of the code that had gotten written. And then I would say like 20% probably is where, you know, you were running into issues, you were trying to get something perfectly right and they kind of had to dig deep into the details and understand what was going on with the code.

主持人:Katelyn 刚才说,只要把东西做成可验证的,你就不必逐行阅读智能体写的内容。不过,你确实需要一种可靠的方法来验证每一行代码。而这正是本季赞助商 Antithesis 所做的验证。Antithesis 刚刚推出了一款插件,能让你的编程智能体在发现和修复 bug 方面变得极其高效。举例来说,Antithesis 团队表示,他们的确定性测试在 HashiCorp Raft 中发现了一个 bug,并帮助查明了原因和修复方法。成本约为 50 美元的云端代币。别忘了,你从 Antithesis 获得的可不只是代码审查,远不止于此。Antithesis 会在恶意模拟环境中运行你的整个系统。该模拟既包括针对性测试,也包括模糊测试。通过运行这一模拟,它能在用户发现之前找出每一个 bug。Host: Katelyn just said that as long as you make something verifiable, you don't have to read every line that the agents write. But you do need a reliable way to verify every line of code, though. And this kind of verification is what our season sponsor Antithesis does. Antithesis has just launched a plugin that makes your coding agent incredibly effective at finding and fixing bugs. For example, the Antithesis team says its deterministic testing found a bug in HashiCorp Raft and helped identify the cause and a fix. The cost was about $50 in cloud tokens. And remember, what you get with Antithesis is not code review. It's much more. Antithesis runs your whole system in a hostile simulation. The simulation includes both targeted testing and fuzz testing. By running this simulation, it finds every bug before your users do.

而且由于模拟完全确定,它不仅能发现 bug,还能完美复现每一个问题,让修复问题容易得多。现在,你的智能体可以替你完成这一切。此外,我们还推出了全新的自助式团队套餐,每月 2,999 美元。你只需用信用卡注册,无需销售人员联系。作为 The Pragmatic Engineer 的听众,你可以使用优惠码 pragmatic 50,首月可享五折优惠。最棒的是,找到那个 Raft bug 花费的算力额度约为一个月额度的 10%。安装插件并前往 antithesis.com/pragmatic 注册。我们还想介绍本期冠名赞助商 Turbopuffer,这家搜索引擎连 Anthropic 本身都是它的客户。过去一年,有一点对你来说已经显而易见:搜索是 AI 的核心基础设施。And because the simulation is fully deterministic, it doesn't only find bugs, it gives you a perfect reproduction of every issue, which makes it much easier to fix issues. Now your agent can drive all of this for you. There's also a new self-serve teams plan at $2,999 a month. You sign up with a credit card, no sales call needed. As a listener of The Pragmatic Engineer, you can use the code pragmatic 50 for a 50% off your first month. And the best part, finding that raft bug costs about 10% of a month's compute allowance. Install the plugin and sign up at antithesis.com/pragmatic. I'd also like to mention our presenting sponsor Turbopuffer, the search engine that Anthropic itself is a customer of. Something that has become so obvious to you in the last year is that search is the core infrastructure for AI.

每个智能体都需要连接到 PB 级的非结构化数据,无论这些数据位于公共网络还是私有数据集中。Turbopuffer 是一种搜索服务,能够让任何智能——无论是人类还是智能体——搜索数据的每一个字节。Anthropic、Cognition 和 Notion 等公司都基于 Turbopuffer 构建搜索基础设施,因为它在前沿级 AI 规模下拥有惊人的可靠性和性能。Turbopuffer 托管着数万亿份可供搜索的文档,每秒处理数十万次搜索;对于一个以这种规模运行的数据库来说,其正常运行时间记录堪称无可挑剔。如今,软件的构建成本正趋近于零。因此,如果你想打造令人惊叹的产品,就需要押注于一种基础设施:无论你的雄心有多大、交付速度有多快,它都不会崩溃。Buffer 已经证明,它有能力扩展以支持全球规模最大的搜索负载,这也是它迅速成为企业和初创公司默认的智能体搜索引擎的原因。Every agent needs to connect to petabytes of unstructured data, both on the public web and in private data sets. Turbopuffer is a search that allows any intelligence, whether human or agent, to search every byte of data. Companies like Anthropic, Cognition, and Notion build their search infra on Turbopuffer because it's insanely reliable and performant at the frontier of AI scale. Turbopuffer hosts trillions of documents for search, serves hundreds of thousands of searches per second, and has an impeccable track record of uptime for a database operating at their scale. The cost of building software today is approaching zero. And so if you want to build something amazing, you need to make bets in an infrastructure that won't break no matter how big your ambition or how fast you ship. Buffer has proven it's capable of scaling to support the largest search workloads in the world, which is why it's fast becoming the default agentic search engine for enterprises and startups.

去 turbopuffer.com/pragmatic 看看吧。你今天就可以注册并开始构建;如果你的工作负载很大,想和人聊聊,他们也有业内最出色的支持团队之一。接下来,让我们回到 Katelyn,聊聊工程师如何了解由智能体编写的系统。Check it out at turbopuffer.com/pragmatic. You can sign up today and start building, or if you've got a big workload that you want to talk through, they have one of the best support teams in the business. And with this, let's get back to Katelyn and how engineers get to know a system that agents wrote.

使用 Claude 为新员工办理入职手续Onboarding new hires with Claude

主持人:现在我们有了新系统。以前的系统是手工编写的,通常会有几位在这里工作了很久的工程师,他们了解整个架构。Host: And now that we have the new system, like with the old system when you know it was written by hand, like it's typical that there are a few engineers who've been there for a long time who just understand the whole structure.

Katelyn Lesse:没错。Katelyn Lesse: Yep.

主持人:有时候,在一些做得比较好的地方,会有文档。我们知道文档会过时,但在比较好的地方,尤其是对于关键系统,通常会有最新的文档。这个新系统对此有什么改变?Host: Sometimes better places you will have documentation. We know it gets outdated, but better place especially for critical systems there's like up-to-date documentation. How has that changed with this with this new system?

凯特琳·莱斯:是啊,这件事有意思的一点在于,考虑到 Anthropic 的发展历程,你知道,我们大概三年前才有了 API,对吧?一开始团队非常小,后来团队迅速壮大,系统也很快就开始承受海量负载。在那段时间里,我们其实没有为现有的 Python 系统准备特别完善的文档,我想这也是让整件事更具挑战性的原因之一。我们没法直接说,拿这份文档照着做,就能搭建出一个新系统。所以从这个角度来看,我觉得我们一直如此,而且现在也仍然如此:对参与其中的智能体来说,大部分时候,代码本身就是文档。不过说到系统设计,以及所有这些部分如何组合在一起,我觉得很棒的一点是,能看到新工程师加入时会说:“好,我得弄明白这个系统,并做好参与开发的准备。”Katelyn Lesse: Yeah, one of the funny things about this is because of the nature of Anthropic, you know again, we only first had an API like three years ago or so, right? And that had started with a really small team and the team had grown so quickly and the system had started to take tons of loads so quickly. In that time, we didn't exactly have like perfect documentation of the Python system that we had, which is one of the things that I guess made this whole thing a little more challenging. It's not like we could say take this documentation and follow it and build a new system. And so from that perspective, I think we're we've always been and continue to be in a world where like the code itself for the most part is the documentation for the agents that are working on it. But I think something when it comes to the system design and how all these pieces fit together, it's been really cool to see how, you know, new engineers join and they're like, okay, I have to wrap my head around this system and be ready to work on it.

这方面变化很大,因为以前你会想找个人和你一起到白板前,对吧?然后画出方框和箭头,弄明白事情是怎么回事;也许当时还有一些现成的图表,你可以研究一下,了解其中的情况。That part has changed a lot because it used to be you'd like ask someone to get at a whiteboard with you, right? And kind of draw the boxes and arrows and learn what was going on and maybe there were diagrams that were kind of out there that you could study and learn about what was going on.

但现在我们看到,人们加入后做的第一件事就是直接问 Claude:“告诉我这东西是怎么运作的。”而且你经常会得到一个交互式应用,不只是一些方框和箭头,而是真正把整个系统呈现出来,你可以点击浏览,说:“好,这部分系统和另一部分系统是这样交互的。”每个人都可以按照自己喜欢的方式学习,对吧?比如,他们可以选择一个能深入点击浏览的交互式应用,也可以选择一些可以阅读、能教会他们东西的文字,或者视频形式、播客形式,对吧?你可以让 Claude 制作其中任何一种内容,帮助你了解这个系统。这也是一件特别酷的事:每个人都用自己的方式去了解其中的运作。But now we see people join and thing they do is they just ask Claude like tell me how this thing works and often you'll get something that's like an interactive application with you know not just boxes and arrows but like really just like a rendering of the system where you can click through and say like okay here's kind of how this piece of the system interacts with this other piece of the system and anyone can learn the way that they want to learn right like if they want to have this interactive application that they can click through deeply or if they want to just have like pros that they can read through that will teach them things right or if they wanted to be like video style or podcast style right like you can have Claude make you any of those things in order to help you learn the system and that's been one of the really cool things about how people have all done their own thing to learn what's going on.

主持人:是啊,这确实有点疯狂,不过我想前提是你已经把所有数据都接进来了。比如你说的 Claude,并不是我们在外部使用的那个 Claude;你这里有所有的数据源、代码库、可观测性数据、事后复盘材料等等,所有东西都在里面。然后它就可以搜索、使用这些内容,做任何合理的事情。Host: Yeah this is kind of crazy but I guess the prerequisite is you have all the data connected like when you when you say Claude it's not the same Claude as we use externally but you have all your data sources your code base your observability your post mortems whatever everything's there and then it can just search it use it do whatever it makes sense.

凯特琳·莱瑟:对,没错。我们和 Claude 协作的方式是这样的:我们的所有系统都有 MCP 服务器,并且都连接到了这些系统。你知道,在和 Claude 一起工作时,它可以按需搜索所需内容,为我们生成恰当的信息。Katelyn Lesse: Yeah exactly so we are the way that we work with Claude is very much like we have all of our systems have MCP servers and we have connections to those things and you know Claude when we're working with it can just search through whatever it needs to generate the right information that it needs for us.

主持人:这对我来说仍然很不可思议,因为我记得我在 Uber 的时候,你知道,公司有入职培训,工程师会负责讲。有一次轮到我,我看了一些幻灯片,想把内容更新一下,让它们符合这些系统的实际运作方式。然后我心想,好吧,这挺好的。后来我想我确实讲过,因为我们每隔几周、每个月或者每两个月都会有新一轮入职培训,我就一直讲同一套幻灯片。过了一阵子,内容就有点过时了,但我当时想,算了,我懒得改,于是就觉得,嗯,实际情况不完全是这样,但大致如此,也够用了。现在想想还挺奇妙的——如今,你可以拥有一个只要接入数据就能始终保持最新的系统,而且它还能提供你喜欢的形式,比如交互式内容。我以前从没听说过把这种东西用于入职培训,因为通常这工作量太大,而收益又太小。Host: This is still wild to me because I remember when I was at Uber and you know there's onboarding and engineers teach onboarding and when one of them my turn I read at some of the slides because they were outdated to like make it up to date on how these systems work and then I was thinking to myself like okay well like this is good like and I done I think I taught cuz every few every month or every two months we had new onboarding session and I kept teaching the same slides and at some point they were kind of outdated but I was like nah I can't be bothered to change it so I was like well it's not exactly like this but it's roughly like this that's good enough. This kind of strange to imagine well now this reality that you can have a system that will be always up to date as long as the data is connected and it can give you the formats that you like interactive thing like I've never heard of that with onboarding cuz it's too much work it's you know, for and for too little gain usually before.

Katelyn Lesse:是啊,现在完全不一样了。说实话,大部分变化都在代码库本身。Katelyn Lesse: Yeah, it's totally different now. And most of it, honestly, it's just the codebase itself.

主持人:嗯。Host: Yeah.

凯特琳·莱瑟:是的,你可以像你刚才说的那样,从事后复盘报告之类的地方引入数据,不过大多数时候,只要看看代码库——Claude 会查看代码库,然后生成你想要的任何内容。Katelyn Lesse: Yes, you can pull in data from, like you said earlier, like postmortems and places like this, but for the most part, it's just like look at the codebase, Claude does, look at the codebase, and then generate whatever you want.

主持人:所以我想,你以前在其他地方也做过类似的风格改写,只不过那时还没有 AI。这个项目在时间安排和精力投入方面有什么不同?有没有什么意想不到的情况?因为现在我们用 AI 来改写,方式完全不同。我相信中途肯定会碰到一些小“地雷”,让你觉得:“哦,这个我还真没想到。”然后就得想:“好吧,这是新情况,我们得把它修好。”Host: So you've done similar, I guess, style rewrites before AI at your other places. How different was this project both in terms of timing in terms where the where the effort was spent, unexpected things because now we're doing completely different way of rewriting with AI. I'm sure there's a little bit of like mines that you find midway where like, oh, I wouldn't expect this. Like, okay, we need to fix this just because it's something new.

Katelyn Lesse:是的。其实在 Stripe,我们经历过一段这样的时期:当时我们正试图在 Stripe 的 API 中构建一些 V2 抽象。其中一件有意思的事是,大家曾就一个问题展开过非常深入的讨论:如果我们要构建服务来支持这些 V2 抽象,应该用 Ruby 编写吗?Stripe 的大部分代码库都是 Ruby;还是应该选择一种性能更高、速度更快的语言,诸如此类?当时我们考虑的是 Java。有意思的是,我们确实经历了第一阶段,在搭建这些新系统的过程中,用 Java 写了很多代码。后来,项目进行到一半时,我们决定停下来,说:这根本说不通。我们应该构建新的服务。Katelyn Lesse: Yeah. So at Stripe actually, we went through a we were trying to build some V2 abstractions in Stripe's API. And one of the interesting things about this was there were some like really deep debates on if we're going to build new services that are going to serve the V2 abstractions, do we write these in Ruby, which most of Stripe's codebase is Ruby, or do we choose a language that will, you know, have be higher performance and better speed and these sorts of things? And at the time, it was Java that we were deciding between. And it's interesting because we actually went through a first period where a lot of code got written in Java as part of spinning up these new systems. And we ended up making a call part of the way through to just stop and say like, this doesn't make any sense. We should build new services.

我们应该构建一个干净的系统,但还是直接用 Ruby 来做。比如,我们原本打算用 Java 获得的效率提升,根本抵不过这样做意味着我们得花上整整好几年才能把所有这些代码写完。所以我认为,在那个案例中,对语言的理解、围绕这些事情所做的选择、工程师们亲自上手,在一种他们并不熟悉的语言里编写代码,诸如此类的事情,都是现在可以轻描淡写带过的:没错,这些我们不用想得太多,大家都会没事的,因为模型懂,事情会顺利的。而过去,这些恰恰是最大的瓶颈,也是最耗时的部分:学习和实现。We should build a clean system, but we should just do it in Ruby. Like the efficiencies that we were going to gain from doing so in Java didn't outweigh the fact that it was going to take us like literally years to have all of this code get written. And so I think in that case it was the understanding the language, the choices around those things, the like engineers putting hands on keyboard and like writing code in a language they were unfamiliar with, all of that sort of stuff was just like the things that now you can just kind of like gloss over and be like, yep, we don't have to think too hard about that. We'll we'll all be okay because the model knows and it'll be fine. whereas in the past that was just like the biggest bottleneck and part of the thing that just took the longest is the learning and the implementation.

主持人:是啊,我想,要让所有人学会一门新语言,过去的做法可能就是培训大家。我这么说有点犹豫,因为我在 Uber 工作的头一两年里,觉得培训有点像个禁忌——为什么要培训呢?我们不都是自己学会、自己摸索出来的吗?我们也有动力。但后来我们转过去之后,我觉得 Uber 也把语言标准化了,采用了 Java 和 Go。那时工程师们就在问:“能不能给我们安排一些 Java 培训?我就是想知道怎么做一些事情。”这需要协调很多事,比如让所有人报名、提供支持之类的。归根结底,即便是最优秀的工程师,有时候你也会想确保大家的水平都在同一个层次上。Host: Yeah, and I guess getting everyone to learn like right choosing a new language is used to be that you either needed to like train people. I say this hesitantly because one of my first two years when I worked at Uber like I think training was a bit of a curse where like why would you train like we all learned we just picked it up we had motivation. But then when we when we moved over I think also Uber standardized languages was Java and Go the people were asking like these engineers like could we just get some Java training cuz like I just want to know how to do some hours a lot of coordination everyone being enrolled getting supported things and it just goes back to like even at the most you know like the best engineers like at some point like you want to make sure everyone's at the same level.

凯特琳·莱塞:是的。Katelyn Lesse: Yeah.

主持人:听起来有点像是,AI给了我们某种均衡器。比如说,如果你需要培训,就有培训师可以帮你。Host: Sounds like kind of like AI gives us a bit of this equalizer like well if you need training you have your trainer if you do.

Katelyn Lesse:对,没错。然后你就直接跳过整个部分。说来有趣,我在 Betterment 工作时,我们一开始所有东西都是用 Java 写的,后来决定用 Ruby 来构建面向用户的应用层。当时我们做的事情也很类似,用的是 Ruby on Rails。我们也经历了类似的过程:你会去学 Michael Hartl 的教程之类的,花上好几个小时、好几个小时、再好几个小时,跟工程师一起学习这门语言,然后自己决定这笔投入值得,因为熬过那段时间之后,大家就都知道该怎么做了,接着就能把工作完成。不过一开始,这件事确实比较容易接受,因为模型会帮忙写代码,也会帮你学习,诸如此类。但后来你就会发现,工程师能不能理解每一处细枝末节的语法,真的一点都不重要。所以你根本不必再去考虑一开始学习这门语言需要付出的投入。Katelyn Lesse: Yeah, exactly. And you just like skip that whole part. funny enough actually when I was at Betterment we did a everything was Java and then we decided to build the like user facing application layer in Ruby. And at the time we did a very similar it was Ruby on Rails. We did the similar like you go through all the you know like Michael Hartl tutorials and all those sorts of things and you spend like hours and hours and hours with engineers learning the language and you decide for yourself like that's an investment worth making because you get to the other side of that everybody knows what they're doing and then you can get this work done but first it was like that is easier to stomach because the model will help write code and it'll help you learn and all those sorts of things but then you get all the way to the point where it's like it really truly doesn't matter if the engineers like can understand every last teeny piece of syntax and so you just don't have to think about the investment that you would have to make up front on learning.

主持人:是不是可以这么说,作为一名工程师,我不必太在意具体是哪种编程语言,也不必逐一了解和掌握它们——我的意思是,只要我理解了这些概念就行?Host: Is it fair to say that the specific languages don't really matter as an engineer of me knowing and understanding each specific language I mean once I know the concepts?

Katelyn Lesse:是啊,现在真的开始变得无关紧要了。Katelyn Lesse: Yeah, at this point it's really starting to not matter.

主持人:作为一名工程师,说这话不会觉得难受吗?我是说,我和你都一样,我……学会一门语言可是花了很长时间、费了很大劲,对吧?Host: Does it not hurt saying it as an engineer I mean both me and you like I it was a long effort and time to like learn a language right?

Katelyn Lesse:是啊,我觉得这挺有意思的。我想在这方面,每个人的感受可能都不一样。比如说,我觉得我们刚开始有 Tab 补全的时候,对吧?还有那类工具。没错。那感觉很棒,对吧?因为你会想:“最后这几个字我不用自己打了。”所以我觉得,从这个角度来说,这取决于你是哪种工程师:你是否在乎自己打造的东西最终能达到什么效果,只是很兴奋地想去创造、去构建。如果是这样,你就能快得多,也能有更大胆的想法,而且感觉很棒。如果你是那种真的很享受钻研语言细枝末节以及这类东西的工程师,那么就我所知,仍然有很多工作适合在乎这些事情的人去做,比如深入研究如何推动语言的发展,思考下一代语言应该是什么样,或者我们如何随着时间推移让这些框架变得更高效。Katelyn Lesse: Yeah, I think it’s interesting. I think everyone feels differently, probably, on this front. Like, I think when we first started to have like tab complete, right? And tools like that. Yeah, exactly. Like, and that felt great, right? Because you were like, I don't need to type these last few, you know? And so, I think from that perspective, it depends if you're the kind of engineer who cares about these things because of the end result of the thing that you're building and you're just excited to like create something and build. In that case, you can do it so much faster and you can be so much more ambitious, and then it feels great. If you're the kind of engineer who like really did deeply enjoy the like nitty-gritty of languages and these sorts of things, for what it's worth, I think there's still plenty of work for people who do care about that sort of thing, like deep work on evolving like what should the next languages be or how do we, you know, make these frameworks more efficient over time.

但我觉得对普通工程师来说,你知道,如果你确实喜欢那些东西,可能会觉得有点难过。不过我觉得很多人——那些能开始用 Tab 键补全时感到开心的人——大概不会太难过,因为你现在更关注自己能创造些什么。But I think for the average engineer, you know, like you might feel sad if you did enjoy those sorts of things, but I think for a lot of people, the people who were happy when they got to start tab completing, you probably aren't like too sad because you're more focused on what you're able to create now.

主持人:我也在想,对于那些真正投入于手艺、投入于它是什么以及它如何运作的工程师来说,我还是会想,也许我们从来没有聊过这样一个问题:好吧,在业余项目或个人项目中,这当然很好,对吧?我觉得有些人会因为享受写代码、喜欢做这件事而写代码。但如果你是在一家企业里做开发,就会有个问题:你为什么在这里?我不想这么说,但除非公司卖的就是漂亮代码,或者卖某种与漂亮代码有关的东西,否则没有哪家公司会雇工程师来写漂亮代码。说到底,做这些总是为了达成某个目标。Host: I also wonder for the engineers who are like really invested in the in the craft and in the what and the how it works. Again, I just wonder if maybe we never had that conversation of like, all right, like on a hobby project or on your side project, like it's it's great, right? And I think there will be people who will write things by code because you enjoy it, because you do it. But if you're building at a business, there's a question of like, why are you here? I just hate to say, but no business writes engineers to write beautiful code unless they're selling some or thing about beautiful code. But it's it's always for a goal.

凯特琳·莱斯:是啊。Katelyn Lesse: Yeah.

主持人:编写优美代码通常是为了更易于维护、提升性能,以及更好地满足非功能性需求。如果你能用其他方式做到这一点,那这就是一种比较务实的做法:比如说,我先着眼于大局,用手头最好的工具来帮助实现这个目标。Host: And the reason for beautiful code was typically maintainability for easier for better performance, more better non-functional requirements. And if you can do that other way, like it's a bit of a pragmatic approach to say like, well, I mean, let me focus on the bigger picture, which is helping achieve this goal with what the best tools I can.

Katelyn Lesse:是的,没错。所以你知道,正如你刚才说的,我觉得,如果你从事语言本身的工作,那么对于那些非常在意这类事情的人来说,仍然有很多工作可做,对吧?如果你在这些领域工作,而且确实非常在意这些事情,那你大概就应该去做这类工作,因为只要你在意这些事情,就有很多很酷、很有抱负的工作可以做。但如果你是在一家企业里工作,语言和框架的选择都只是达成目的的手段——也就是打造某种能够为企业赚钱或实现企业使命的东西——那就很难让某个人把大量时间都花在这类事情上,因为这最终并不能帮助企业实现目标、取得成果。Katelyn Lesse: Yeah, exactly. And so, you know, there to your point, I think there is still work for people who deeply care about those sorts of things if you work on languages themselves, right? And if you work in these areas and you should probably go do that, if you really do care deeply about that stuff, because there's a lot of cool ambitious work that you can do if you care about those things. But if you're working within a business where the language and framework choices are all like means to an end of creating something that's, you know, going to make a business money or accomplish a business's mission, then it would be hard to have somebody who is so deeply spending time on those sorts of things in a way that's not going to ultimately matter for accomplishing goals and creating outcomes.

主持人:那么,就这个项目的重写而言,看起来 AI 承担了大量繁重工作。说实话,这个项目原本可能要花好几年,我们也知道这类迁移有多复杂,中途甚至可能会被回滚;而现在总算是完成了。这大概花了多长时间?Host: Now, based on this one project, the rewrite, it seems like AI did a lot of heavy lifting. It turned a project that honestly would have probably taken years, and we know how complex these migrations are, maybe even been rolled back midway to just getting it done. How quickly was this completed-ish?

Katelyn Lesse:是的,我想说大概花了五六个月左右。这里也要考虑到,前期有一段时间,一两个人觉得我们可能想做这件事,对吧?他们在真正安排人手去做之前,先做了一些调查。不过,是的,我想说大概花了五六个月,而且负责这件事的核心团队规模相对较小。但之后这个团队还得……Katelyn Lesse: Yeah, so I want to say it was something on the order of like maybe five or six months. And that's that's kind of keeping in mind that there were there was some upfront time where like, you know, one or two people were like, we might want to do this, right? And like did a little investigation before we actually had people go and work on it. But yeah, I want to say it was something like five or six months, and like the core team was relatively small that was doing this. But that team had to then

主持人:几个人。Host: A few people.

Katelyn Lesse:是的,差不多就是这样。但后来我觉得,那个团队还得去跟其他一大堆团队的人合作,对吧?那些团队负责系统的不同部分。我觉得当时最复杂的事情之一,就是其他团队都还在继续做事,对吧?我们并没有因为这些事情就停止开发 Python 系统。所以一开始大概是这样:好吧,没问题,我们先把所谓的 token 热路径的核心基础部分做完。至于边缘上那些正在开发的新东西,不管是什么,我们之后再回来处理。但后来至少有一次,Python 系统上的某个 beta 版本就这样进入了 GA 阶段,而团队其他人都没料到,结果突然间,那个影子流量系统就显示出了大量差异和错误。Katelyn Lesse: Yeah, something like that. But then I think that team had to go and like work with people on a bunch of other teams, right? Who like owned the various parts of the system. And I think one of the things that was most complex that was happening was all those other teams were still doing work, right? Like we didn't stop developing the Python system when all of this was happening. And so at first it was kind of like, you know, okay, fine, we're just trying to get the like very basic core of like what we kind of call the like token hot path done. And these things around the edges that are new that are getting worked on, whatever, like we'll kind of come back to those later. But then we had at least one instance where like a beta kind of went to GA on the Python system when the rest team like wasn't expecting it, and all of a sudden, you know, that like shadow traffic system was showing a lot of differences, a lot of errors.

他们当时就问:“这是怎么回事?”哦,明白了,新功能正式发布了。从那之后,他们还加上了类似代码检查和静态分析的东西,这样一来,周围其他团队要是开发新功能,就不能只实现 Python 部分了;他们还得实现 Rust 版本,因为到了一定阶段,我们两边已经足够接近了,对吧?你得让大家进入这样一种状态:不能任由人们在 Python 端随意启用新功能,然后 Rust 团队再想办法追赶。你得让周围所有团队都开始同时用两种语言开发。接着,我们希望尽量缩短这个过渡期,尽快达到能够关闭 Python 系统的阶段,这样这些团队就不必同时考虑两边了。They were like, what's going on? Oh, okay, new feature went GA. And from there they added, you know, just like linting and static analysis sort of thing, so that if any other team around them was working on a new feature, they couldn't just build the Python part. they like had to also do the Rust implementation because at a certain point we were close enough, right? Like you kind of have to be in a world where you can't just have people like randomly flipping on new features on the Python side and then the Rust team is like trying to catch up. You kind of get have to get to a place where all the teams around them were building in both. And then we wanted to minimize that period of time and as quickly as possible get to a place where we could shut down the Python systems so that you don't have all of those teams needing to think about both sides.

主持人:我听出来的是,工程师花费大部分时间做的并不是写代码,因为你让智能体来写代码,自己负责协调它们并让它们接受测试;而是和其他团队协调,比如问“你在做什么?我们接下来要做这个,会影响你的工作吗?”或者是在调查某件事、某件事进展不顺的时候。Host: What I'm picking up is the bulk of the work that engineers spend their time was not like writing the code cuz you had the agents do it and you coordinated them and had them tested, but it was coordinating with other teams, what are you working on? We're going to be doing this. Is it impacting your work? Or when something is investigating, when something is not going like that.

凯特琳·莱斯:是的。Katelyn Lesse: Yeah.

主持人:所以听起来还有很多工作要做。你明白我的意思吧?尽管 Claude 已经做了大量艰巨的工作。Host: So it sounds like there's still a lot of work involved. You see what I mean? Even though there's a lot of heavy lifting has been done by Claude.

Katelyn Lesse:我是说,我们做的每件事都会考虑到这一点。我觉得,普通工程师花在这类协调工作上的时间多了很多,当然,花在实际实现上的时间少了很多。甚至像是编排智能体这件事,我觉得在某种程度上,你得告诉智能体:“帮我把某件事办好”,对吧?但即便如此,智能体往往也会去编排其他智能体,而人类未必需要花很多时间在这上面。更多时候,我们操心的是其他团队、其他人,以及如何确保所有这些环节能衔接起来、大家步调一致。人们花在这类事情上的时间多了很多,远多于花在真正把东西做出来这件事上的时间。Katelyn Lesse: I mean, we think about that with everything we do. I think the average engineer is spending so much more of their time on that type of coordination work and much of course much less on actual implementation. And even like, you know, orchestrating agents. I think some of this to some extent is like you've got to go tell your agents like get something done for me, right? But even from there agents are often, you know, orchestrating other agents and the humans not necessarily spending a ton of time on that. It's much more so the other teams, the other people and, you know, how do we make sure that all these pieces are going to come together, that people are on the same page, people are spending so much more of their time on that sort of thing than on, you know, the work of actually getting the thing built.

构建 Claude 托管式智能体Building Claude Managed Agents

主持人:所以这是一次迁移。不过,我们能不能聊聊一个从零开始的新项目,也就是你们打造了某种全新事物?我记得我们谈过 Claude Managed Agents,这也是一个非常有雄心的项目。你们是如何打造它的?尤其是和过去的做法相比,有什么不同?Host: So this was a migration. But can we talk about a greenfield project where you built something brand new? I think we talked about Claude Managed Agents which is also a very ambitious project. How did building that happen especially when you compare it with how it would have happened in the past?

Katelyn Lesse:是的。先稍微退一步看一下 Claude Managed Agents。Claude 平台在我一年前多一点刚加入时,只有 Messages API,也就是这种无状态 API。后来模型越来越擅长长时间运行,当然,人们就说,好,太好了,我们要把智能体迁移到云端运行,并让它们最终能够更自主地运行。于是人们开始构建运行框架,并将这些框架部署到云端。而大家在这么做时都遇到了一些相似的问题。比如从可靠性的角度来看,如果你让这些智能体在沙箱里运行,而沙箱崩溃了,智能体也就跟着挂了,对吧?还有安全性问题,对吧?比如,如果智能体在沙箱里运行,那么凭证也会跟着智能体一起放进沙箱里吗?Katelyn Lesse: Yeah. So Claude Managed Agents just to zoom out for a second. So the Claude platform, when I first started a year ago, a little over a year ago, was just the messages API, just this like stateless API. And then models were getting better and better at running for longer and you know, of course people said, okay, great, we're going to move agents to mostly run in the cloud and enable them to eventually run more autonomously. And so people were building harnesses and they were deploying those harnesses to the cloud. And everyone was running into some of the same types of issues when you do that, which is, you know, from like a reliability perspective, if you run these agents like inside of a sandbox and your sandbox dies and your agent dies, right? Or security, right? Like if you have your agent running in the sandbox and do the credentials go in the sandbox with the agent, right?

当你考虑这些云端代理及其架构时,会遇到很多问题。因此,我们最终在 Claude 平台内构建了一整套全新的 API,它们属于更高层级的 API,旨在让人们能够定义一个代理,然后启动会话并运行该代理。为此,我们构建了一些服务,用来运行执行框架、存储会话状态、按需启动沙箱,以及处理各种类似的事情。有意思的是,对于这组服务,我们选择了 Go。部分原因是当时我们刚好还没开始 Rust 迁移,仍处于这样一个阶段:我们希望选择一种语言,既能让我们构建高效的服务,又能为查看代码的开发者提供相当不错的开发体验。There's like a lot of problems that you run into when you think about these cloud based agents and their architecture. And so we ended up building a whole new suite of APIs within the Claude platform that were just kind of like higher order and meant for the ability to define an agent and then start a session and run that agent. And so as part of doing this, that meant we were building services that could run the harness, could store the session state, could handle like spawning sandboxes as needed and all of these sorts of different things. And it was interesting for this set of services we chose go. And this was in part because this was first of all just before we had done the rust migration and we were still in that period where we wanted to pick a language that would allow us to build efficient services and these sorts of things, but still have like pretty good developer experience for the humans who were looking at the code.

我觉得在这件事上,更多的工作都放在定义 API 抽象、思考服务架构和服务图,以及解决可靠性、安全性和延迟等问题上,而不是放在实现和实际构建上——比如编写驱动每个独立服务的代码。从这个角度来看,这种做法也和过去很不一样:过去你会花大量时间规划,再花大量时间实现;而现在,你大幅压缩了实现阶段,很快就进入验证环节,确保一切运行良好、质量过关,然后再公开发布。And I think for this, it was much more so all of the work on defining the API abstractions and thinking about the service architecture and the service diagrams and solving for some of these problems like reliability and security and latency and way less on implementation and actually building, you know, like writing the code that would power each of these individual services. So from that perspective, that one too just so different than in the past where you'd spend a whole bunch of time planning and then a whole bunch of time implementing, you like really shrink the implementation part and then you get quicker to verification and making sure that everything works well and is that high quality before you go and launch it publicly.

主持人:不过关于这个 Claude Managed Agent,有个有意思的细节是,你们有一个试点项目,或者说一个试点团队,设在……那是什么来着?云端 Web 团队,如果我没记错的话。Host: But with this Claude Managed Agent, one interesting detail was how you had a pilot or a pilot team inside of What was it? The cloud web team, I remember correctly.

主持人:针对托管代理。Host: For Managed Agents.

Katelyn Lesse:哦,对。好吧。对于托管智能体,我们最初的着手点是这样的:我们首先想,好吧,我们要构建一个能够运行云端智能体的系统。我们希望既能让 API 客户构建智能体,也能让 Claude Code 团队借此支持网页版和移动端体验。这样一来,你就不必只能在笔记本电脑上运行 Claude Code 命令行工具,或者在笔记本电脑上运行桌面应用;我们希望用户能够启动在云端运行的 Claude Code 会话,然后先离开,之后再回来继续使用,对吧?由于要把这种智能体架构做好非常复杂,我们就觉得不妨把这一部分共享出来,对吧?也就是说,我们来构建这套架构,让它同时为两者提供支持。Katelyn Lesse: Oh, yeah. So okay. So for managed agents, the place we started, the first thing we did was we were like, okay, we're going to build this system that's going to run cloud agents and we wanted to do that both for our API customers to be able to build agents, but also for the Claude Code team to be able to enable the web and mobile experiences so that you don't have to just, you know, Claude Code the CLI just like runs on your laptop or the desktop app runs on your laptop, but we wanted to enable people to be able to fire off Claude Code sessions that run in the cloud and you can walk away, right, and come back to it later. And so we because getting this kind of agent architecture right was so complicated, we figured we would share that part, right? Like we would build this architecture and it would kind of power both.

所以这件事有意思的地方在于,我们做的第一件事——显而易见的起点——就是:很好,一个 API 请求进来,你就启动一个沙箱,在沙箱里运行 Claude Code,然后就有了一个智能体。And so what was interesting about it was the first thing that we did, the obvious place to start was, great, an API request comes in, you spawn a sandbox and you boot up Claude Code inside that sandbox and then you've got an agent.

主持人:是的。Host: Yeah.

Katelyn Lesse:我们遇到的第一个问题,就是我之前提到的可靠性问题,比如沙箱会崩溃。Katelyn Lesse: The problems that we ran into, the first one was just reliability I mentioned earlier, like sandbox dies.

主持人:那你就得从头开始。Host: Then you have to start from scratch.

Katelyn Lesse:是的。第二个问题是延迟。要真正拿到任何 token,你得等沙箱启动,然后还得等 Claude Code 在沙箱里启动,之后才能和模型交互,再把这些 token 流式传回来。所以这是个问题。第三个问题是安全性。我们真的不喜欢这样一种做法:如果在沙箱里启动 Claude Code,那么每当你想调用工具和外部服务时,最终都需要把凭证放在沙箱里,而沙箱中的智能体又能访问模型,对吧?所以这不太理想。最后一个问题,说来也好笑,是 CPU。所以我们得为每一个这样的实例启动并运行一个沙箱——主持人:每一个实例至少要占用一个 CPU。Katelyn Lesse: Yeah. The second was latency. in order to actually get any tokens back, you have to wait for the sandbox to boot and then you have to wait for Claude Code to boot inside that sandbox and then you can go talk to the model and then stream those tokens back. So that was a problem. The third was security. We like really didn't like this idea that if you boot Claude Code inside of the sandbox, then whenever you do want to go call tools and external services, you end up needing to have credentials inside that sandbox with the agents that has access to the model, right? And so that wasn't good. And then lastly, hilariously, CPU was a thing. So we're booting and running a sandbox for every single one of these Host: Every one of these is at one CPU or more.

Katelyn Lesse:没错。我们当时遇到了这四个问题。最初,我们其实是先推出了 Claude Code 的网页体验早期测试版,也推出了 API 的早期测试版。但我们对这些问题都不满意,于是有点手忙脚乱地想逐一解决它们。不过,还是说说那些如今可行、但早些时候还不太可行的事情吧:我们最后重新审视了整个设计,开始思考,如果从第一性原理出发,重新设计和重构这个东西,而不是只做那个简单管用的方案——也就是启动一台机器,再在里面启动 Claude Code——会怎么样?如果从第一性原理出发来设计呢?最终,我们采用的方案是:让你的执行框架运行在一台持久服务器上,只在需要执行任务时才启动沙盒。Katelyn Lesse: Right. So we had these four problems, and we first actually, we launched the Claude Code web experience in like an early beta, and we launched the API in early beta. And we just like weren't happy with any of these problems, and we were kind of trying to scramble to do all the things to like individually solve each of these problems. But again, just speaking of things that are possible now that weren't super possible earlier, we ended up going back to the drawing board a bit and saying, what if we from first principles like redesigned and rearchitected this thing instead of just doing the like easy thing that works, which is, you know, boot a box and boot Claude Code inside of it? What if we designed this from first principles? And what we ended up with was you would run your harness on a durable server, and you would only spawn sandboxes to execute work as needed.

然后你会有单独的会话存储。在这种架构下,可靠性问题就解决了,因为你的执行框架运行在一台持久化服务器上;即使任何一个沙箱崩溃,你的智能体也不受影响。延迟问题也解决了,因为请求会发送到这台持久化服务器,然后几乎直接转发到 Messages API,所以在 Messages API 的延迟之上只增加了极小的延迟。这样就很棒了。安全问题也解决了,因为我们最终采用的做法是:如果智能体选择调用外部系统、调用 MCP 服务器中的工具,或者说访问互联网,我们可以在旁边运行一个代理,并将所有凭据分别保存在保险库中。这样,当你发起请求时,就可以在请求即将发出时,于出口处注入凭据,从而无需将凭据放进沙箱。And then you'd have your separate session storage. And in that world, you solve for reliability because your harness is on a durable server, and if any of those sandboxes die, your agent is fine. You solve for latency because the request comes in to that durable server, and it goes basically straight through to the messages API, and so it's like the teeniest bit of latency on top of the messages API. So that was great. Security was solved because the way that we ended up doing this was if you have an agent choosing to call an external system to call a tool in an MCP server or, you know, go out over the internet, we can just kind of run a proxy along the side and keep all of our credentials separately in a vault. And then when you do go to make that request, you can inject the credential at egress just in time on the way out so that credential never needs to be inside of the sandbox.

而且 CPU 表现很出色,因为我们发现,这套系统的平均 CPU 使用量只有原系统的三分之一左右。所以我们把整个方案都推倒重来,在采用那种做法之前重新构建了系统。And then CPU was great because we found ourselves running on average around a third of the CPU for this system as the original system. And so we threw the whole thing out and we rebuilt it before we went that way.

主持人:我想,当你想到我们能——你现在能做到这些,就会觉得,要是在项目进行到一半时说“咱们干脆从头开始吧”,那简直太疯狂了。Host: And I guess when you think that we can that you can do as now, like it would have been crazy to say midway through a project like let's just start from scratch.

凯特琳·莱塞:是的。Katelyn Lesse: Yeah.

主持人:不过现在,规划和实施并没有那么……我想说是资源密集,或者更准确地说,是耗时。你可以做到。如果你愿意,也可以多做几次。Host: But now planning and implementation is not all that I guess resource or more like times intensive. You can do it. You could do it multiple times if you want to.

Katelyn Lesse:确实如此。我们也确实这么做了,而当时这真的是一个重大决定。我不想轻描淡写地说,决定重建整个东西绝对是个重大决定,但我认为我们深切地感到,我们正处在这样一个阶段:真正解决所有这些问题,值得我们花时间去重建并重新架构这一切,尤其是因为这会比由人类编写所有代码快得多。Katelyn Lesse: Exactly. And so we did, which was which at the time it really was it was a big decision. I don't want to understate that deciding to rebuild the whole thing was definitely a big decision, but I think that we felt deeply that we were at a point where the ability to actually solve for all of those problems was super worth the time that it would take to go and rebuild and rearchitect this, especially because it was going to be so much faster than if humans were writing all of the code.

主持人:然后这个项目,我记得从头到尾,从提出想法、进行这次重写,到真正推出,差不多花了五到六个月左右?Host: And then this project, I remember from end to end, from the idea through this rewrite to actually rolling it out was somewhere like five to six months ish?

凯特琳·莱斯:对,差不多就是这样。挺有意思的是,这个想法其实很早以前就有了。你知道,它之前也偶尔作为一个想法被提出来过,但当时的情况是——比如我刚加入 Anthropic 时,我所在的团队是 API 团队,大概有 30 名工程师吧。我觉得我们当时只是勉强有足够的资源,在新模型推出时及时发布,并为 Claude 系列模型提供 API。这对一个规模相对较小的团队来说,工作量可不小。所以,像“哦,那要是我们有面向云端智能体的 API 呢?”这样的大想法,当时大家的反应就是:“嗯嗯,也许以后再说吧。”后来团队壮大了,再加上构建这类东西也容易多了,于是大家就更能接受这样的想法了:“好,那我们划出一组人手,让你们去构建这种全新的云端智能体架构。”Katelyn Lesse: Yeah, something like that. Yeah. And it's interesting because it's something that had been an idea dating even further back, you know, like it had kind of come up as an idea, but it was one of those things where if you like when I joined Anthropic, my team was the API team and it was maybe 30 engineers, I would say. And I think just like kind of by the skin of our teeth, we had enough resources to be able to launch new models when they were coming out and distribute our API on the Claudes, which was, you know, like a lot of work for a relatively small team. And so big ideas like, oh, but what if we had APIs for cloud based agents were like, yeah, yeah, like maybe in the future, you know? And so once the team had grown and once again, just like building these things became a lot easier, it became more palatable to say, okay, great, we're going to like carve out a group of people and say you're going to go and build this new cloud based agent architecture.

主持人:对比这个从零开始构建的项目,你觉得有哪些事情跟 AI 出现之前接手一个大型绿地项目——或者说雄心勃勃的绿地项目——并从头开始做相比,并没有太大变化?又有哪些事情完全不同?Host: Comparing this project, which is building from scratch, what are things that you think have not changed all that much compared to pre AI taking up a large greenfield project or ambitious greenfield project should I say and working from scratch? And then what are things that are just completely different?

Katelyn Lesse:我觉得,也许相同之处在于,光是达成一致就仍然有很多工作要做。比如,前期设计以及统一认识:实际目标是什么?你打算做的事情是否能实现这些目标?然后还要处理与其他所有系统和团队之间的连接点。 Anthropic 的平台团队有一点比较特别:我们几乎真的处在所有事情的正中央。推理、研究和模型团队都在我们下方。我们与位于外围的安全团队密切合作,而应用团队则在我们上方。因此,无论我们做什么,都要花大量精力确保许多人达成一致。我觉得这一点和 AI 出现之前相比,并没有太大变化。Katelyn Lesse: I would say maybe the things that are the same is there's still so much work in just like alignment. Like there's the upfront design and getting on the same page that like what are the actual goals and like is the thing that you're going to do solving for those goals? Then there's the know, the connection points with all of the other systems and all of the other teams. One of the things about the platform team at Anthropic that's relatively unique is we sit like literally right in the middle of everything that is going on. So like inference and research and models are all below us. We work closely with our safety teams that are kind of around the edges and then our application teams that sit on top. And so for anything that we do, there's just a ton of work on making sure that a lot of people get aligned and I just don't think that has changed very much from the days pre AI.

但当然,非常不同的一点是,我们之前谈到的那些关于实现本身的事情。你不必花特别特别多的时间,对吧?而且因为这部分快得多,像这样的大型项目也就变得更容易接受了。你当然还是要花很多时间协调之类的事情,但总体耗时可能会比原本短得多。But then of course the thing that is very different is everything that we've kind of talked about with like the implementation itself. You don't have to spend tons and tons of time, right? And because that part is so much faster, it still makes a big project like this palatable because sure you'll spend a lot of time on coordination and things like that, but the overall time can be much shorter than it otherwise would

Anthropic 工程团队的工作方式How engineering teams work at Anthropic

已经是。have been.

主持人:是的。所以你在 Anthropic 内部负责带团队。如果我是从 Anthropic 外部来的工程师,加入你们的某个团队,或者 Anthropic 的某个团队,担任软件工程师,我会看到什么?我的第一周会是什么样的?我会怎么工作?会用什么工具?会怎么和大家互动?我加入的团队会是什么样的?到底是什么样的?又会是什么样的?Host: Yeah. So you run teams inside of Anthropic. If I'm an engineer coming from outside of Anthropic and I would join one of your teams or one of the Anthropic teams as a software engineer, what would I see? What would my first week look like and how would I work? What kind of tools would I use? how would I interact with people? What does what does what does a team look like that I would join?

Katelyn Lesse:是的,我觉得团队本身和 AI 时代之前并没有太大不同。目前,我们的团队规模仍大致是“两张披萨团队”。有些团队可能稍微大一点,不过——主持人:大概五到十个人左右。Katelyn Lesse: Yeah, so the team itself is not that different, I would say, from the pre AI days. As of now, we still run teams that are like approximately two pizza teams. Some are maybe a little bit bigger, but Host: The five, 10 people-ish.

凯特琳·莱斯:没错。原因是,这仍然是能够理解你所负责运行的系统的合适人数,对吧?比如说,如果你在值班,收到了寻呼通知,或者你知道,你得构建一些新东西,或者得跟另一个想要构建某个东西、并与系统交互的团队沟通,而这时有两个人在休假、生病、值班,或者遇到别的情况,对吧?总之,你们有足够的人手来运作这个团队。这个团队的资深成员比例可能比过去更高,因为过去可能是技术负责人设计系统,然后一群中级工程师、工程师来实现;而现在更像是,团队里的任何人都可能深入思考设计,或者深入思考如何与其他团队协调,然后他们就会协调 Claude 去把它构建出来。Katelyn Lesse: Exactly. Reason being that is that's still the right number of people to be able to like have the ability to understand the system that you operate, right? And like if you're on call and you get paged or you know, you've got to build something new or you've got to talk to some other team that wants to build a thing that interacts with your system and then two people are on vacation or sick or on call or whatever, right? Like you have the right number of humans to operate the team. That team probably skews more senior than it did in the past because rather than say like tech lead designs a system and then a bunch of mid-level engineers, engineer engineers implement it, now it's more like anyone on the team is likely thinking deeply about design or thinking deeply about coordination with other teams and then they're, you know, orchestrating Claude's to go and build it.

团队规模差不多,但肯定整体资历更深一些。然后你面前就像是有这么一整套工具,可以帮你把工作做好。这种方式跟显然还没有 AI 的时候很不一样,不过我觉得其实每家公司都多少开发了一些最适合自己的工具,这很棒,也是我喜欢在 Anthropic 做 API 的一件有趣的事,比如说……Similar size team, skews a bit more senior for sure. And then it's like you have kind of this world of tools in front of you to get work done in a way that's probably pretty different from obviously pre-AI, but even, you know, I think actually every company has done some amount of creating their own tools that work best for them, which is great and one of the fun things about working on the API at Anthropic, like

主持人:哦,你见过很多这种情况。Host: Oh, you see a lot of that.

Katelyn Lesse:很多都是这样。稍微岔开一下,我觉得人们提到 API 时,想到的通常是那些基于 API 构建产品的人,对吧?比如 Cursor 之类的。但我们很多 API 流量都来自那些公司,他们构建了自己的定制工具,也搭建了自己的定制平台,在内部运行智能体。所以很棒的一点是,我们能花很多时间和他们一起使用他们搭建的这些平台。没错,是的。我们其实也和他们一样,会根据具体情况,打造自己版本的各种工具,选出我们认为最适合当前任务的工具。Katelyn Lesse: A lot of that. Like side tangent, I think when people think of the API, they think of people who've built products on top of the API, right? Like you think of Cursor and things like this. But a lot of our API traffic comes from companies that have built their own custom tooling, their own custom platforms for running agents internally. And so a cool thing is we get to spend a lot of time with them on these platforms that they built. Exactly, yeah. And so the we are just like them and we've built our own versions of whatever the right tools are at any given time that we think will be best for the job.

主持人:能举一些你们构建的工具类型的例子吗?显然,harness 是现成的,对吧?比如 Claude Code。你们用的是同一个 Claude Code,还是有自己的版本?Host: Can we give some examples of the types of tools that you built? Obviously the harness is a given one, right? Like there's Claude Code. Do you use the same Claude Code or do you have your own?

Katelyn Lesse:当人们——你知道,当我想以人为环节参与其中,构思并琢磨一个想法时,我们肯定会用 Claude Code。我们会用 Claude Code,也会用 Cowork,还会用很多相同的工具。不过说到编排云端智能体,我们主要采用的做法有点类似于 Claude Tag 这样的系统,但我们也做了一些工作,来构建……Katelyn Lesse: We use Claude Code for sure when people are, you know, I'm kind of like human in the loop wanting to ideate and think about an idea. We use Claude Code, we use Cowork, we use a lot of the same tools there. but when it comes to orchestrating cloud-based agents, we're mostly operating on kind of like similar to a system like Claude Tag, but we've done some work to kind of build

主持人:打造属于你自己的风格。Host: Make it your own.

Katelyn Lesse:一些事情。对,没错。所以这挺好的,因为你知道,我们可以在这些共享的底层概念和系统之上做这些事情。不过是的,我们有很多工作都是基于 Slack 开展的。Katelyn Lesse: Stuff. Right, exactly. So which is nice cuz, you know, we can do those things on top of you know, all these shared underlying concepts and systems. But yeah, we do a lot of Slack-based work.

主持人:所以你们会有很多基于 Slack 的工具,对吧?Host: And so you'll have a lot of Slack-based tools, right?

凯特琳·莱斯:对,没错。不过大多数情况下,我觉得我们确实还是那种——你懂的,基本上就只有一个 Claude。Anthropic 的 Slack 里大概会有很多人想象中的那种疯狂智能体,每个都有自己的身份,各种各样的,对吧?但我们的工作方式其实并不完全是这样。我们更像是……我们设计 Claude 时遵循的就是这个概念:你有一个 Claude,然后和 Claude 一起工作。它在不同情境下,比如私信、频道之类的地方,可能会有不同的权限,工作方式也会稍有不同,但总体上这个概念基本不变。所以这就是最大的区别:你大多数时候都在 Slack 里,和人一起做各种事情,同时也会与 Claude 互动。Katelyn Lesse: Yeah, exactly. but for the most part, I think we do still do the like, you know, you've kind of got your one Claude, if that makes sense. I think people probably picture Anthropic Slack having like all these crazy agents that all have their own identities and all whatever, right? And it's not really quite how we work. We more so are very much like And we design Claude tag after this concept. It's like you've got Claude and you work with Claude. And it maybe has different permissions and works a little bit differently in different contexts in a DM or a channel or whatever it might be, but for the most part this concept kind of stays the same. And so that's really the biggest one is just you'll you're mostly in Slack and you're interacting with Claude alongside of humans in anything that you're working on.

主持人:所以,我入职之后,或者说作为工程师加入公司并开始参与构建东西时,在 AI 出现之前,整个流程大概是这样的:我会做一些规划,和团队里的某个人达成一致,然后写代码、创建拉取请求、进行代码审查,CI/CD 流水线运行,我拿到批准,收到队友的反馈,再把问题修好,然后部署。之后我可以通过各种方式进行监控。如果是大型系统,我甚至可能会使用功能开关。接下来就是监控、告警,而我也会负责值班。你知道,如果发生事故,我还要做事后复盘。这大概就是工程师入职后的第一个月、完全进入状态之后通常会做的事情。那么这一切发生了怎样的变化?因为我知道,甚至我们也都知道,光是写代码这件事本身就已经变了。Host: And so like once I'm onboarded or in the company as an engineer and I start to contribute to build stuff like back pre-AI the way it would have looked like is I do some sort of planning, I align with someone on my team, I write the code, I create a pull request, I do through code review, CICD runs, I get sign off, I get feedback from my teammates, I fix them, I deploy, there's ways that I can monitor. I might actually even do a feature flag when it's a large system. And then there's monitoring, alerting, and I'm on call and you know, like if an incident happens I do a postmortem. Like that's kind of like a like a typical thing that an engineer will do in their like first month once they're they're fully there. How has this changed like cuz I know you even we know like writing code itself has changed.

我现在已经不再编写它了,不过我们使用的那些老派工具还剩下多少?比如说,哪些刚刚被智能体接管了?或者内部的工作流程发生了什么变化?I no longer write it, but what is left of the kind of old school tools that we use and like what has just been taken over agents or how have the workflows changed inside?

代理会自行处理的事项What agents handle on their own

Katelyn Lesse:我,我会这么说,我们考虑这个问题的方式,不太侧重于你可能会想到的单个变更和单个拉取请求的生命周期,而更多是着眼于整个项目,或者你可能正在考虑的某个更高层级的工作单元,因为你是在和智能体协作,而且在某种程度上,这些智能体是由你直接编排的,对吧?也就是说,我要接手这个 Linear 任务,把这件具体的小事做好,然后它会形成一个拉取请求,最终合并。但更多时候,你会把视角提升一个层级,考虑的是:我想要完成一件事,而这件事需要从头到尾构建所有这些不同的组件,对吧?所以你可能会先和 Claude 一起构思一番,来回讨论,然后规划、思考一下怎样才能把事情做好。Katelyn Lesse: I so I would say the way that we kind of think about it's it's less on the life cycle of an individual change and individual pull request that you might think about and more just the overall like project or just some like higher unit of work that you might be thinking about because you're working with agents and to some extent these agents are directly orchestrated by you, right? To say I'm going to pick up this linear task and I 'm going to like get this exact small thing done and that's going to lead to one pull request and that thing is going to get merged. But much more so, you're kind of zooming up a layer and thinking about I want to, you know, accomplish something that requires end-to-end building all of these different components, right? And so you'll probably ideate a little bit with Claude, you know, and just kind of go back and forth and yeah, just plan and think about how you might want to get something done.

然后,你知道,你就把 Claude 派去做这项工作。但我觉得这件事有意思的地方在于,在这种开发循环中,有很多环节你可能已经不再参与了,而以前你是会参与的。举个很好的例子:有些类型的拉取请求,即使你或其他人不去查看,似乎也完全没问题。我们正在做很多工作,努力让自己越来越放心,让更多这类变更无需人类参与。因为你可以想象,有些变更可能纯粹是机械性的,对吧?举个很好的例子:每当我们推出新的 API 版本或新模型时,都会发布新版 SDK。and then, you know, you like send Claude off to go and do this work. But I think what's interesting about this is in that kind of development loop, there are a lot of aspects of this that maybe like you aren't really even in the loop on anymore that you would have been previously. So like a good example is there are certain types of pull requests that can get opened that don't really even need really you to look at it or somebody else to look at it. And we're doing a lot of work on getting to a place where we get more and more and more comfortable with more of these types of changes not requiring to have a human in the loop because you can picture the types of changes that are maybe just like so mechanical, right? Like a good example just being we release new versions of our SDKs whenever we have a new API version or a new model.

我们的 SDK 有一些方面,比如只是给这些 SDK 升级版本,其实不需要人花大量时间处理这类事情,因为需要做的代码修改非常机械,审查并一路走完流程也相当机械。所以我们就把这类改动交给 Claude,尽可能让它去创建拉取请求。然后再让另一个 Claude 先审查,判断这是否属于我们知道该怎么处理的机械性改动,还是属于风险更高、应该由人来处理的改动。对,没错,完全正确。然后就看是否需要人工审查。如果不需要,它就可以继续合并并部署,全程都不需要人介入。There are aspects of our SDKs and like just doing the version bump in those SDKs that you don't really need a human to be spending tons of time on this sort of thing because the code change that needs to happen is very mechanical and getting that reviewed and all the way through is pretty mechanical. And so we've taken like, you know, just changes like that and done everything that we can to say Claude will go and open the pull request. Then we've got a Claude that reviews it first and decides like is this actually fitting into one of these like mechanical changes we know how to do or is it a riskier change that should be human? Yeah, exactly. Exactly. And either a human does have to look at it or not. And if not, then it can kind of go and get merged and get deployed without a human needing to be in the loop.

我想,回到你最初的问题:我是个新工程师,而整个变更生命周期中会发生很多事情。要把一件事做完,有很多环节,而最终你可能不需要考虑所有这些环节。比如,为了完成某件事,所有相关的 PR 里,你可能只参与了其中一部分;还有一些 PR,则是由代理在运行、各自处理事情,而你其实并没有参与其中。我觉得这是大家都能看到的重大转变:一边是我作为人类,直接在笔记本电脑上与代理协作,或者在云端编排代理,诸如此类;另一边则是持续运行并采取行动的代理,比如对变更进行分类和审查,或者像我们有些代理会在 CI 变红时运行,对吧?And I think going back to your original question on I'm a new engineer and there's this whole change lifecycle that happens. There's just a lot of pieces of getting something done and to end that you might not have to think about. There might be like of all the PRs that went into something getting done, you might have interacted with and been a part of some subset of them and then there's some of them that are like there's agents running and they're doing their thing and you're not really a part of what's happening there. And I think that's the big shift that everybody is seeing, the difference between I'm a human and I'm working with an agent either directly on my laptop or I'm orchestrating it in the cloud or whatever versus agents that are persistent and taking actions like classifying a change and reviewing that change or like we have agents running that like when CI goes red, right?

比如一个不稳定的测试被合并进了 main,当然有人可以说:“哦,CI 报错了,我得修一下那个测试。”但现在我们有智能体在运行,它们会替你处理这些事,根本没人需要去看,对吧?所以现在流程中有更多环节完全不需要人参与了。我想这是大家都需要好好理解的一点。Like a flaky test was merged into main, then sure somebody can go and say oh CI's red, I got to fix that test, but now we just have agents running that will go and do that for you and nobody really has to look, right? So there's just more aspects of the process that are totally like human out of the loop now, which is I think just something for everybody to wrap their heads around.

主持人:不过我想具体问一下,因为我知道你身处其中时,这一切会非常有道理;但从外面看,情况是这样的:假设我现在有个项目,或者有个想开发的功能。我觉得这是个好主意,或者说我相信这是个好主意。我会和 Claude 聊聊,制定一个计划。然后我大概会派出几个智能体开始开发。比如,一个负责搭建脚手架,另一个负责开发,还有一个负责验证之类的,或者开发另一个功能,等等。它们各自开始工作之后,我接下来会看到什么?它们准备好接受审核时,会有地方通知我吗?它们仍然是一个团队,所以我也是团队的一员。我会不会决定再拉一个人进来,说“你也帮忙看看这个”?所以,到了某个阶段、这些东西都开发完成之后,接下来会发生什么?Host: So but just specifically because I know this will make so much sense when you're inside of from but from the outside like okay, so I now have a project or a feature I want to build. I decide it's a good idea or I believe it's a good idea. I will chat with Claude, make a plan. I'll probably spin off a couple of agents to like start to build it. You know, one of them does scaffolding, the other one builds it, the other one does I don't know like validation or maybe another feature etc. They go off and then what do I see next? Is there a place where I'll be pinged when they're ready for like a review? They're still a team, so I'm inside a team. Do I decide like do I pull another human in and say like can you look at this as well? So like what happens after a point after this is built, the agents build that stuff?

Katelyn Lesse:所以,你的智能体通常会……我想我想表达的重点可能是,你把最初那批智能体派出去之后,它们很可能会再启动其他任务,而这些任务未必是你亲自选择并协调的,对吧?这一切都是为了实现那个更大的目标。我们在 Slack 里和智能体协作时,它们话还挺多的。它们经常会回来跟你说:“好了,很棒。我已经创建好这个拉取请求了。接下来我要去做另一件事。”你可以选择关注这些工作的所有细节。Katelyn Lesse: So your agents are typically and maybe the main point that I'm making is like you're sending those first agents off and those agents are probably like spawning other tasks that you aren't necessarily even choosing to orchestrate yourself, right? On the path to this like bigger goal that's happening. The way that we work with our agents in Slack is they're pretty chatty. And so they'll kind of very often come back and be like, okay, great. I've got this pull request up. And the next thing I'm going to do is go do this other thing. And you could choose to like pay attention to all of the details of all of that work.

主持人:所以你的意思有点像是,智能体会自行行动。比如说,我可能正在某个特定系统上开发一项功能,然后我告诉智能体:“好,这是我的目标,这是我想做的事,这是我们要做的第一个子任务。”接着智能体就开始行动了,它可能会说:“哦,顺便说一下,我看了些分析数据,发现了一件挺有意思的事。这件事很重要,我觉得我们应该去做。我建议我们开发这个功能。”你的意思是,它们可能会回来跟你聊这些,然后你就可以做决定,或者大致引导它,对吧?Host: So you're kind of saying like the agents are when they go off. So for example, like I might be building a feature on you know this specific system and the agent I tell like all right, here's my goal. This is what I want to do. Here's the first sub that we're going to do. And then the agent goes off and it might say like, oh, by the way, I checked some analytics. And here's an interesting thing. Here's something important that I think we should do. I think you know, I'm suggesting we build this feature and then that's what you're saying that they might come back being chatty saying and then you can make a decision or steer it basically, right?

Katelyn Lesse:对。它可能会说,哦,你知道,另一个团队有一段代码,跟这个有点关系,也许他们正在做一些我们还不了解的事情,我们应该联系一下他们。你想让我帮你联系他们吗?对吧?然后……Katelyn Lesse: Right. And it might say, oh, you know, this other team has this piece of code that's like kind of related and like maybe they're doing something that we don't understand yet and we should ping them. Do you want me to ping them for you, right? And

主持人:我明白,我明白。所以,正如你刚才所说,这会很有互动性:你可以选择关注它,也可以不管它,就像我继续说下去一样。Host: I get it. I get it. So it so it will be very interactive based on what you said is you can either pay attention to it or you can just kind of let it go like I go on.

凯特琳·莱瑟:对,没错。你知道,我觉得如果真的需要你关注,不然事情就会卡住,那它自然会引起你的注意,对吧?但我觉得,我们现在努力做的很多事情,就是让越来越多的工作不需要你介入。你知道,如果他的工作只是坐在那里盯着 Slack 里的一个讨论串,然后说“行”或者“不行”,或者“好吧,我去戳一下那个人”,那这份工作可就没多大意思了,对吧?毕竟那样一点都不有趣。Katelyn Lesse: Yeah, exactly. And you know, I think if it really needs your attention or else it's going to get stuck, it'll get your attention, right? But I think a lot of what we're trying to do is make more and more and more and more of this something that doesn't require you to have to get involved and be like, you know, it wouldn't be a great job if all he did was like sit there and watch a Slack thread and then like say yes or no or okay, fine. I'll go ping that person, right? Like that just wouldn't be interesting.

人工代码审查Human code review

主持人:我想问问你们关于代码审查的事。AI 出现之前,像 Stripe 这样的地方——我也在那里工作过——我们一直要求必须由另一个人、另一位工程师来做代码审查,原因有很多。你知道,其中很多原因甚至跟代码审查本身都没什么关系,但审查就是强制的。你们也这样吗?还是说你会信任负责构建它的工程师,并让他承担责任,由他来决定要不要找其他人一起看,或者觉得这样看起来没问题——因为你知道,我已经验证过了,或者我知道这不是什么大事。Host: I wanted to ask you about code review in the sense that pre AI a place like Stripe that I also worked at you were like we always had mandatory code reviews from another human, another engineer for many reasons. You know, a lot of it was not even related to that, but they were mandatory. Do you have that or do you just say I will give trust and accountability to the engineer who's building it and they will decide do I need to pull in someone or does this look good because of all the you know, I verified it or I or I know it's not a big deal.

Katelyn Lesse:对,我们有一个系统,嗯,我是说,它用的是 Claude,不过它是个分类器。你知道,它会在每次变更时运行,然后判断这项变更是否需要人工审查?如果需要,要由多少人审查、需要哪些团队参与?还是说这项变更可以直接合并,无需人工审查?这就涉及我刚才提到的那种非常机械化的变更。我们想做的是,明确哪些变更从头到尾都不需要你花时间处理,对吧?比如,这些事我们已经做过无数次了,结果都大同小异。那么,我们能不能把这类变更归为非常机械化的变更呢?比如发布一个新版 SDK?如果是,而且它符合这种模式,那就太好了。Claude 的任务就是确认这项变更能否达到原始变更预期的结果。Katelyn Lesse: Yeah, so we have a system that it's I mean it's Claude, but it's a classifier, you know. But it runs on every change, and it decides, does this need a human look? If so, how many humans and what teams does it need? Or is this something that can merge directly without a human looking at it? And this is where I kind of mentioned this idea of like a very mechanical change. We're trying to do this thing where you define like, what are the changes that end to end you shouldn't have to spend time on this, right? Like we've done these things a million times. They all look the same. So can we classify this change as one of those like very mechanical, you know, such something like get a new SDK version released? And if so, and it like fits that mold, then okay, great. The Claude's job is to make sure is this thing going to have the outcome that is intended by the original change?

如果是这样,那就太好了。你知道,人不必查看它。但如果情况是,呃,这可能会带来一些意料之外的副作用,或者这是一个风险稍高的改动,又或者是在一个我们还不放心完全不让人关注的系统中发生的改动,那它就会通知人来查看。不过,我们的目标相当明确:让分类器越来越多地判定,不,我完全不需要人来查看这个改动。现在你知道,我们已经有少量这类情况出现,而且数量正在逐步增加。但对于有风险的改动,我们肯定还是会让人来查看。And if so, great. You know, a human doesn't have to look at it. But if it's like, eh, like this might have some unintended side effects or this is a little bit of a riskier change or it's just like a change happening in a system where we're not yet comfortable with zero humans paying any attention, then it will ping for a human to take a look. But we have like pretty strong goals on getting to like more and more and more and more of these changes where the classifier ends up deciding, no, I don't need a human to look at this at all. And right now, you know, we've got a small number of these things that are happening and it's ratcheting up. But for risky changes, we definitely still have humans looking

与 Claude 一起值班Oncall with Claude

在这些方面。at these.

主持人:一旦它通过不同的变更关卡部署上线,在生产环境监控和事件管理方面,你们是怎么做的?因为再说一遍,在 AI 出现之前,你会定义好仪表盘,手动设置警报。当然,在 Stripe 和 Uber 这样更先进的地方,你们早就有机器学习系统了。甚至在十年、十年前,这类系统就会监测各种信号,并标记出“哦,出问题了。我们来发出警报吧”。到了某个时候,就会有人收到呼叫。那个人会去调查,然后之后我们再回头复盘。如果警报是误报,他们就会尝试调整警报规则。通常,在影响重大的系统中,值班工作也会非常繁重。当然,你们的系统——这些 API——影响力可谓极大。Host: Once it gets deployed through different change gates, in production monitoring and incident management, how do you do that? Because again, pre-AI, you would have your dashboards that you would define, you would manually put together alerts on how you do it. Or And of course, in more advanced places like Stripe and Uber, you would have a machine learning systems already. This is like even 10 10 years ago that would look at the signals and like flag, oh, something is wrong. Let's raise an alert. A human gets paged whenever that time is. That person looks into it and then later we go back. If it was false, they would try to tweak the alert. The on-call part would be also very heavy typically on high impact systems as well. And of course, your system, the APIs has as high impact as it goes.

它一有风吹草动,很多人都指望它能察觉到。你们是如何开展这类监控和轮值管理的?Claude 又能在这方面提供哪些帮助?If it sneezes, a lot of people are relying on it to notice. How do you go about the this kind of like monitoring and on-call management, and how is Claude helping there?

凯特琳·莱斯:是的。所以其中很多确实非常相似。很多时候,我们有各种监控器、检测器和告警会触发,就像其他工程团队一样,我们经常会收到噪声,对吧?比如收到某个其实并不是真正问题的告警。Katelyn Lesse: Yeah. So a lot of it is really similar. A lot of it is, you know, we have all of our monitors and our detectors and our alerts that fire, and just like any other engineering team, often we get noise, right? Like you get alerted about something that's not really an issue.

主持人:事情就是这样。Host: That's just how it is.

Katelyn Lesse:是的。我们开始在 API 值班轮换中做的一件事——这可是个承担着重任的值班轮换——就是在过去好几个月里,我们一直让 Claude 跟着值班人员观察。Katelyn Lesse: Yeah. So what we've started to do with our API on-call rotation, which is like a very load-bearing on-call rotation, we've what we have had happening over the past like many months is we've had a Claude shadowing our on-call.

主持人:哦,有意思。Host: Oh, interesting.

Katelyn Lesse:是的。我们的目标是达到这样一个阶段:当有页面进来时——我们现在才刚开始做这件事——它会先交给 Claude 处理。Katelyn Lesse: Yeah. And the goal is to get to a point where when a page comes in and we're like just starting to do this, when a page comes in, it goes to that Claude first.

主持人:是的。Host: Yeah.

Katelyn Lesse:Claude 可以判断这是噪音还是真问题吗?这只是第一道关卡。第一道关卡就是判断这是噪音还是真问题。如果是噪音,我们真正想做的就是避免打扰或吵醒人,诸如此类。我们已经开始这么做了,节省了大量人力时间,否则这些时间就会花在调查最终证明只是噪音的事情上。接下来,如果它判断这是个真问题,就会把警报升级给人工处理,由人介入并开始调查。但在等待人介入调查的这段时间里,Claude 也会开始查找问题,并想办法解决它。通常,等人赶到笔记本电脑前时——尤其是在半夜把人叫醒的情况下——Claude 已经诊断出问题,并给出了建议的修复方案;甚至可能已经开始采取一些措施来修复问题,而人工只需要说:“好的,谢谢,这听起来不错。”Katelyn Lesse: And that Claude can decide is this noise or is this real? And that's just the first gate. The first gate is it noise or is it real? And if it's noise, then really what we're trying to do is avoid a human getting interrupted or woken up or whatever it might be. And so we've started to do this and we've saved a lot in terms of human time that would have gone to looking into something that turned out to be noise. And then when it goes and does and says, okay, this is real, in which case it escalates the page to a human and the human will come in and start to look. But in that time when we're waiting for a human to come in and start to look, the Claude will start to also look and figure out what might I be able to do to fix this problem. And often by the time a human, especially if it's the middle of the night and somebody's getting woken up, by the time they get to their laptop, Claude has diagnosed the issue and has a recommended fix and maybe it's even, you know, like started to take some action towards that fix that a human just needs to be like, yes, thank you, that sounds great.

当然,我们的目标是,面对越来越多这类问题时,完全不需要叫醒人工处理。即使是真正的问题,也希望 Claude 能以值得信赖的方式自行处理,这样就不用叫醒任何人了。不过我们还没做到那一步。目前,告警响起时,我们主要只是判断它是噪声还是确实有问题。这已经为我们节省了很多时间,效果很不错。And of course, the goal is to get to a point where you for more and more and more of these types of issues don't need to wake up the human at all. even if it's a real issue, it's something that like Claude will hopefully just handle in a way that we can trust and you don't have to wake anybody up. But we're not quite there yet. For now, we mostly just have the like is it noise or is it not when a page comes in? and that has saved us a lot of time, which is great.

将产品交付到生产环境的产品经理Product managers shipping to production

主持人:所以,这让我很清楚地知道我是怎么想的,而且我现在也很清楚,工程师是怎么把东西推到生产环境的。确实,差别非常非常大。现在你可以在 Slack 里跟代理对话,引导它做事。感觉很多工作都能这样完成。对于非工程师,比如产品人员、设计人员,或者那些你知道的、在受训之前并不会把自己的代码推到生产环境的人来说,他们也会通过聊天、创建功能、在那里做些调整,把代码推到生产环境吗?还是说,如果这不是一个由营销团队负责的独立小网站,而是核心产品的一部分,责任通常仍然在工程师身上?他们已经能把代码推到生产环境了吗?他们会把代码推到生产环境吗?Host: So it's very clear on how I think and it's now clear in my head how engineers like push to production, how like yeah, it's a lot a lot of difference. You can now talk in Slack and with an agent steer it. Like it seems like a lot of work can be done. For non-engineers, product folks, design folks, just people who you know, by training like before this job they didn't push their code to production. Do they also push out code into production by chatting, by creating features, by tweaking there or is the accountability typically still with an engineer if it's one of a system that is not just like a standalone like small website that marketing team owns, but inside a core of core product? Can they already push to production? Do they push to production?

凯特琳·莱瑟:他们可以。Katelyn Lesse: They can.

主持人:他们可以。Host: They can.

Katelyn Lesse:所以这件事很有意思,因为你刚才提到,营销网站可能是过去一个典型的例子:你会觉得,产品经理或设计师可以直接推送到生产环境,大家对此都觉得没问题,也就让他们这么做。我想说的是,我们觉得可以放心这么做的范围正在发生变化。一个很好的例子是,我们有一个开发者控制台,为使用 API 构建应用的开发者提供体验,你可以在这里获取 API 密钥、进行监控,等等。我们最近在开发者控制台中发布了一项功能,可以为你的提示缓存提供诊断信息。提示缓存对我们的 API 来说非常重要。Katelyn Lesse: And so it's interesting because you kind of mentioned this like oh marketing site, you know, is maybe the canonical example of the place in the past where you would have said okay, a product manager or designer can go like push to production and everyone feels okay about that and they let that happen. I would just say the line of what goes in that category of we feel okay about that is shifting over. So a really good example is we have a developer console. We have like a user experience for developers who are building on the APIs where you get your API keys and do your monitoring and all these sorts of things. we recently released a feature in the developer console that gives you diagnostics on your prompt caching. So prompt caching really important with our APIs.

如果你能提高缓存命中率,就能节省很多钱,而且延迟表现也会好得多。我们开始开发更多功能,帮助工程师了解自己的缓存命中率是否高;如果不高,可能是什么原因,以及可以采取哪些措施。因此,我们把这项功能集成到了 API 中。如果发生缓存未命中,响应就会告诉你原因。我们还在开发者控制台中加入了一个仪表板,帮助你查看和了解缓存命中率,以及可能发生了什么。这些都是由一位产品经理开发的,并在我们的开发者控制台中上线。是的,所以你知道,我们可能还没到这样的阶段:对于核心 API 的核心改动,会让产品经理或设计师直接负责,或者投入时间来做。you can save a lot of money and you can have a much better latency story if you're able to get more of a higher cache hit rate. We're starting to build more features that help engineers understand like am I getting a high cache hit rate? And if not, what might be happening and what might I be able to do about it? And so we built that feature into the API. If you get a cache miss, then like the response will kind of tell you why. We also built a dashboard into the developer console to help you see and understand like what your rates are and what might be happening. and all of that was built by a product manager and pushed to production within our developer console. Yeah, and so maybe you know, we're not quite at the place where a core change to the core API is something that we would have a product manager or designer, you know, doing directly or spending time on.

不过,对于这种情况,比如我们可以做一个诊断仪表盘,帮助用户了解提示词缓存,这会带来很棒的用户体验。你知道,负责这个项目的产品经理显然是个技术背景比较强的产品经理,但他当时有点儿在想:我真的需要为这事麻烦工程师吗?我觉得不用。当然,我们有工程师可以审查代码、参与进来,确保最终成果质量过硬之类的。但实际的实现过程是,这位产品经理和他在 Slack 上的 Claude 来回交流,把这个功能做了出来。它是一个质量很高的功能,而且完全是由产品经理打造的。But for something like this where it's like we can have a diagnostic dashboard that helps you think about your prompt caching and that's a great user experience for people. You know, the product manager who was working on this was obviously a relatively technical product manager, but he was kind of like, do I really need to bother an engineer for this? Like I don't think so. And of course like we had engineers who could review the code and who could be involved and make sure that it was going to be high quality and things like this. But the actual implementation was that product manager and his Claude in Slack going back and forth and getting that thing built and it's really high quality feature and it was totally built by a product manager.

主持人:但可以说,最终把东西推上线的人就是要负责的人吗?听起来,如果出了什么问题,或者某些数据看起来不太对,这位产品经理肯定会承担全部责任,解决问题,你知道,想办法把问题修好。我觉得这在某种程度上就是产品经理的区别:他们一直都是对结果负责的人,只是没有编写代码的工具。但说到底,我记得有很多这样的故事:产品经理,你知道,我们做项目,工程师把它做出来,我们想要发布,或者把它拿给产品经理看,产品经理就会说:“等等,这跟我想的可不太一样。”Host: But is it safe to say that the people the person who pushes to production in the end is the one accountable? Like sounds like this product manager if something would have gone wrong or like some numbers would have looked funny, like this person would have absolutely taken full accountability, fixed it, you know, figured out how to fix it is cuz I think that's a bit of a differentiation of product managers to some extent have always been who are the ones owning the outcome. They just didn't have the tools to write the code. But in the end often I remember so many of stories product manager like you know, we do the project, engineers build it, we want to ship it or we show it to the product manager, product manager is like hang on, that's not exactly how I was thinking.

而且产品经理和工程师始终紧密协作,你知道,可以说是共同承担责任。And the team was always connected in terms of product manager and engineers like you know, it was shared accountability if you will or responsibility.

Katelyn Lesse:是的。我觉得这挺相似的。我觉得最终还是负责这个系统的团队会在系统出问题时收到呼叫,然后他们会介入,弄清楚发生了什么。比如过去,总会有这样的情况:某个其他团队的工程师想完成一件事,就会进入另一个团队负责的代码库部分,做一些改动,对吧?如果那里出了问题,要怎么处理呢?就是,嗯,另一个团队负责的那个系统里有东西坏了,所以负责它的那个团队就会收到呼叫,对吧?然后他们可能会说:“哦,这个改动是最近由另一个团队的这个人做的。我把他们也叫来,问问他们这件事,好吗?”Katelyn Lesse: Yeah. I think it's pretty similar. I think it's like the team that owns the system is still ultimately the team that's like getting paged when something goes wrong with that system and they're jumping in and they're figuring out what went on. Like in the past you would always have times when an engineer from a different team might be trying to get something done and they'd kind of like come into a part of the codebase owned by another team and they'd make some changes, right? And like if something went wrong there, how does that get handled? It's like well like something in that system that's owned by the team over here broke and so the team over here that owns it gets paged, right? And then they might say like, oh, this change was made recently by this person on this other team. Let me page them in and ask them questions about the thing, right?

但归根结底,负责这个系统的团队有责任确保它保持高质量。所以,这位后来加入的工程师,很可能接受过该团队的代码审查,或者以某种方式和该团队达成过共识,对吧?因为他们的工作就是确保这个系统保持高质量。我觉得这一切都完全一样。所以,如果我们开发者控制台中的缓存诊断功能出了问题,负责开发者控制台的团队,也就是我们的开发者体验团队,就会收到告警,对吧?然后他们可能会说:“这个缓存诊断功能好像出了点奇怪的问题。我们知道那边那位产品经理参与了它的开发。所以我们会联系他,请他帮忙一起分析,因为他可能掌握着这个团队不知道的细节。”But ultimately like the team that owns the system is responsible for keeping it high quality. And so the engineer over here that came in probably got code review from that team or got like alignment in some form from that team, right? Because like their job is make that system high quality. I think all of that is exactly the same. So if that experience around cache diagnostics in our developer console had an issue, the team that owns our developer console, which is our developer experience team, is a team that would get paged, right? And then they might say, oh, there's something funky going on in this cache diagnostics thing that, you know, we know this product manager over here was part of building. And so we'll go page him and ask him for help thinking about this because he might have details that this team doesn't have.

但从这个角度来看,你多少得把这种情况推演到这样一个阶段:现在我们有些智能体不一定是由人来编排的,对吧?比如说,SDK 版本需要升级,或者 CI 构建失败了,于是让一个智能体发现问题、修复它,并让构建恢复成功,对吧?对于任何没有人参与其中的改动,问责问题就会变得相当棘手。但我认为,归根结底,出问题的是某个特定团队负责的系统。确保这个系统保持高质量,是这个团队的目标。所以,即使完全没有人参与,而是智能体做了某项改动,他们最终也会负责处理,对吧?这就是他们为确保自己的系统保持高质量而该做的事。But from that perspective, you kind of have to extrapolate that out to a point where now we have agents that aren't necessarily being orchestrated by a human, right? Like the get the SDK version bumped or the CI went red and let's have an agent just catch that and fix it and make it go green, right? Any of these changes that don't have a human in the loop, the accountability question gets really funny. But I think ultimately it's the system that's that is owned by a specific team having an issue. It's that team's, you know, like goal to keep that system high quality. And so they're the ones who are going to be dealing with it even if it's an agent with no human involved at all, right? That made some change. It's like they're doing what they need to do to keep their system high quality.

我也觉得,这就是为什么我们会回到“我们仍然有这两个双披萨团队”这个话题,对吧?你仍然有一群了解系统的人,他们要对系统负责,因为变更可能以各种方式出现。可能是产品经理,也可能是环境智能体,对吧?而且你仍然得确保质量过硬。And I also think that's why we go back to we still have these two pizza teams, right? Like you still have a set of humans who understand the system, they're accountable for the system because changes might come in any number of ways. It might be a product manager, it might be an ambient agent, right? Like and you still got to keep it high quality.

主持人:听到你说你们的团队拥有自己的系统,我真的觉得耳目一新。Host: I it is really refreshing to me for to hear that you're seeing saying your teams own systems.

凯特琳·莱斯:是的。Katelyn Lesse: Yeah.

主持人:团队就是这样运作的。我觉得我们在这次对话里提到团队的次数可能比其他话题都多,不过听起来你你你确实观察到,或者相信,团队对于打造高质量的产品、系统,或者那些能够长期存续的东西,可能非常关键。Host: Here's how a team operates. Like I think we mentioned teams more in this conversation than others, but sounds like you're you're you're really observing or believing that like teams are kind of like so critical for like high quality products, systems or long living ones maybe.

Katelyn Lesse:是啊,我只是觉得至少到目前为止,这一点还没有改变,对吧?也许随着时间推移,你可以说那个团队会变得稍微小一些之类的,对吧?因为他们有越来越多的智能体在帮忙。也许你知道,出问题时会接到通知的团队,实际上会先通知智能体,而且大多数时候智能体都知道发生了什么,对吧?我觉得随着时间推移,这种情况会改变,但我仍然认为,总会有一些由人组成的团队,负责确保系统按预期运行、实现目标,以及做好所有类似的事情。无论这个团队规模有多大,最终出问题时最关心这件事的就是他们,也是他们负责解决问题。Katelyn Lesse: Yeah, and I just don't think that part has changed at least yet, right? And maybe over time you could say that team could be a little bit smaller or something, right? Because they have more and more agents that are helping them and maybe, you know, like the team that's getting paid when something goes wrong is actually like the agents get paid first and most of the time the agents know what's going on, right? And I think over time that will change, but I still think there's some units of a set of humans who are accountable for a system operating the way that it's meant to and accomplishing its goals and doing all of those sorts of things that however bigger small that unit is, like that's ultimately who cares the most when something is going wrong and they're the ones who are fixing it.

Anthropic 的软件工厂Anthropic’s software factory

主持人:我们刚才谈了很多不同的系统、不同的 Claude,包括持久运行在云端的 Claude,以及你们启动的那些实例。行业里有个说法最近很流行,你肯定已经听过很多次了,那就是“软件工厂”。你怎么看“软件工厂”这个称呼?你觉得你们正在做的事情,或者 Anthropic 的运作方式,可以被称为软件工厂吗?Host: Now we talked so much about the different systems and different Claudes and there's a durable cloud Claudes and the ones that you're spinning off. A term that is going around the industry, you've heard it so many times is software factory. what do you think about the name software factory and do you think what you're doing or how Anthropic is running could be described as such?

Katelyn Lesse:是啊,这真的很有意思。我还真没怎么听说我们内部用过这个说法,不过我确实觉得,这个说法所指的理念,正是我们在 Anthropic 正在践行的。主持人:你们确实在践行。Katelyn Lesse: Yeah, it's really interesting. We I haven't really heard us use the term internally, but I do think that the spirit of what it's talking about is very much something that we are doing at Anthropic. Host: You're definitely doing it.

凯特琳·莱斯:是的,我们肯定在这么做,只是不知道为什么,我们没把它称作软件工厂。但没错,这就是我们的工作方式。很大程度上,你想让一项变更从头到尾一路进入生产环境,对吧?你有真正负责实施变更的智能体,有负责验证变更的智能体,还有负责初步代码审查的智能体,也许它们会完成整个代码审查,对吧?然后它们会将变更部署到生产环境。等某样东西进入生产环境后,你还会进行监控,对吧?比如,我们最近开始尝试一些 QA 智能体,它们只是……Katelyn Lesse: Yeah, we're definitely doing it, but we haven't called it software factory for I'm not sure why, but yeah, that's how we're working. It's very much like you want to get a change end to end and to production, right? you've got the agents that are actually making the change, you've got agents that are verifying the change, you've got agents that are taking the first pass at code review, maybe they're doing the whole code review, right? And then they're deploying to production and then once something is in production, you have monitoring, right? Like we recently started experimenting with actually like QA agents that are just

主持人:外部 QA 代理喜欢尝试去Host: External QA agents like trying to

凯特琳·莱斯:没错,它们只是作为背景运行,而且有类似由人编写的说明,告诉你系统应该如何运作,对吧?然后它们就会不断地对系统进行压力测试,确保系统按预期运行;如果有问题,就会提交拉取请求,对吧?所有这些不同的环节——把变更部署到生产环境、系统上线后持续保证其质量,以及我们刚才也谈到的值班工作,比如处理第一条告警——我们都在尽可能地让智能体承担越来越多这类工作,这样人类就能把时间花在更高质量的工作上,从而构建系统并确保系统高质量地运行。Katelyn Lesse: Yeah, they're just ambience and they have like a human written here's how the system is meant to work, right? And then they go and they're just constantly, you know, hammering on that thing and making sure that it works the way that it's meant to and then they're putting up pull requests if something is broken, right? And all of those different parts of the like get a change into production and then keep a system high quality once it's in production and then we talked about it on call too, right? Like taking the first page. All of those things are things that as much as we can we're trying to have agents take on more and more and more of that work so that the humans can spend their time on the higher quality work that needs to happen in order to get systems built and running at high quality.

主持人:现在,嗯,你刚才说的是,你在 Claude 平台团队工作。这个名字挺有意思的,因为从外部来看,把它叫作平台团队说得通;但平台团队也可能是负责构建开发者工具、基础设施工具等等的团队。这些反馈循环,以及对不同拉取请求的分类,是由平台团队来做的吗?还是每个团队各自决定如何构建这些工具?Host: Now like what you're talking about is well you're on the Claude platform team which is a interesting name because externally it makes sense as a platform but platform teams are can also be the ones that have built developer tools or infra tools and so on. These feedback loops the categorizing of different pull requests is this done by a platform team or each is each team deciding how they will build the tools?

Katelyn Lesse:这是个非常好的问题。我们有一个独立于我所在团队的中央基础设施团队,负责研究、推理、产品以及其他各个领域的基础设施。因此,我们也在平台团队内部设有一个类似的基础设施团队,专门负责产品方面的工作,不过他们会与中央基础设施团队密切合作。为提升所有人的效率而开展的许多工作,都来自中央基础设施团队里的开发者加速团队。他们开发了我们最近聊到的 Scion。对。Katelyn Lesse: It's a really good question. So we have a central infra org that's separate from my team and that team does infra across research and inference and product and all the different things and so we kind of have a version of an infra team within the platform team that specifically focus on product but they collaborate a lot with the centralized infra team. And so a lot of the work that's happened to try to make everybody more efficient has come from a developer acceleration team that sits within that central infra team. so they built Scion that we talked about recently and yeah

主持人:新的源代码管理。Host: New source control.

Katelyn Lesse:他们做了很多非常了不起的工作,研究我们该如何度过这一时期——大家都在努力进行数量惊人的改动,同时还要确保这些事情的质量很高。这个团队一直在做这类工作。除此之外,我们在平台团队内部还有一支叫作平台加速团队的队伍,他们与整个开发者加速团队有很多合作,但他们的工作重点是专门考虑平台、我们团队以及我们正在做的工作,还有我们可能需要哪些工具来帮助团队快速推进。比如,我刚才提到的那个 QA agent,就是平台加速团队开发的。还有,我也简单提到了 CI。当 CI 报错时,会有 agent 去修复测试,大多数时候都不需要人介入。Katelyn Lesse: So they've done a lot of really incredible work to figure out how we go through this period of like insane number of changes that everybody's trying to make and make the these things at high quality. So that team has done that type of work and then on top of this we actually have a team within platforms called platform acceleration that is collaborating a lot with the overall developer acceleration team, but their job is to just think specifically about platform and our team and the work that we're doing and the tools that we might want to have in order to make our teams move fast. And so, for example, I just mentioned that QA agent that's running like the platform acceleration team built that or you know, like I briefly mentioned CI. When CI goes red, we have agents that go and fix the tests and humans most of the time don't have to be in the loop.

这是平台效能团队在开发者效能团队打造的许多工具基础上构建的东西。还有一点。最后一类,我想说的是,每位正在工作的工程师都完全有自主权去思考,自己可以做些什么来改善自己的生活和团队的状况。That's something the platform acceleration team built on top of a lot of the tools that were built by the developer acceleration team. And so, there's that. And then the last category I would just say is every engineer who's doing work is like totally empowered to think about all the things they could be doing that would make their lives better and their team.

主持人:生活得更好。Host: Lives better.

凯特琳·莱斯:对,没错。让事情变得更高效。所以,我们很多最棒的工具——你知道,能帮助团队做得更好的那些工具——其实都是某个工程师遇到了一个让人头疼的瓶颈,于是受到启发,想要做点什么来解决它。整体来说,我想说,投入到这些周边工具上的人力工时——也就是那些围绕工作打造工具、让工作进展更快的元工作——所占的比重已经发生了变化。随着越来越多的工作变得具有智能体特性,这个比重变高了。这可能有点违背直觉,因为现在有了智能体,它们承担了大量工作,从而让人们的工作效率更高,于是人们就能专注于工作本身。Katelyn Lesse: Yeah, exactly. Make things more efficient. And so, a lot of our most amazing tools that have, you know, helped teams do better work is just like some engineer who ran into some bottleneck that they thought was annoying and they were kind of inspired to go do something to fix it. And so, I would actually say on the whole, the number of human hours that go into the kind of meta work of tooling around the edges to make the work go faster has gotten I would say the balance has shifted. It's gotten higher as more work has become agentic, which is maybe counterintuitive because it's like you've got agents now who are doing so much of the work. And so, that speeds people up. And so, they can just focus on the actual work itself.

但我觉得,因为你可以用这些智能体构建一整套工具,不断朝着这个目标推进——也就是完成事情究竟需要多少人参与其中——所以大家都对这个问题很有热情,也都花了很多时间思考,怎样才能把某个流程自动化程度再提高一些,或者让它更具智能体特性。比如,我之前做的某个流程挺荒唐的,花时间做了一些可能根本没必要做的事,怎样才能让它更自动化,或者更具智能体特性。所以,在所有这些层面上,大家都花了很多时间琢磨这个问题。But I think because there's this whole world of tooling that you can create with these agents to like push harder and harder on this goal of how many humans you need in the loop to get things done, everybody's really inspired by that problem and everybody's spending a lot of time thinking about how can I, you know, take this workflow that was silly and I spent time on something that I probably didn't need to and make that more automated or make that more agentic. So, across all of those layers, we have people spending a lot of time on that.

主持人:我理解得对吗?有开发者……还有加速团队,我挺喜欢这个说法,因为过去这些团队会被称为 AI 开发者平台。我很喜欢“加速”这个词。不过,在平台加速或基础设施加速团队里工作的人,他们的职责似乎很明确:他们的角色或目标就是让软件工程师的工作更高效。但我听到的情况是否也属实:许多软件工程师,或许是出于自己的选择,在产品团队里工作,也就是负责产品的某个具体部分;他们会主动寻找方法,让自己的工作减少重复、实现自动化,并更高效地完成那些繁琐的流程。显然,他们会同时运行多个智能体——我们说的是五个、十个,甚至更多——并琢磨如何通过各种调整让它们更高效。所以,大家都在进行大量的尝试和实验。Host: Do I understand correctly that there is a developer the there's a acceleration teams I like because in the past these would have been called developer platform for AI and but I really like the acceleration part, but there's people working inside of the platform acceleration or infra acceleration seems their job is to clearly their kind of state a role or goal is to make things more efficient for software engineers. But is it also true what I'm picking up is either kind of by choice a lot of software engineers who are working in let's say product like they're working on a specific part of the product, they're choosing to find ways to make their own work less repetitive, automated to the gentle loose more efficiently clearly they're running like multiple agents we're talking five 10 or even more figuring out how they can make those more efficient like tweaks so there's a lot of experimentation playing going around there.

Katelyn Lesse:对,没错。人们基本上可以随心所欲地构建自己想构建的东西。几个月前有个很酷的例子:我们团队里有个人不属于平台加速团队,他的主要工作也不是做这类事情。他当时在想,我们有这么多基于 Slack 的智能体,平时花了很多时间和它们打交道,那么在 Slack 里,什么样的形式才能让人发起一个更有雄心的目标?于是他想出了这样一个概念:创建一个专门用于协调大型多智能体团队的 Slack 频道,让团队朝着某个具体目标努力。这样一来,你的 Claude 实例就会有很多个进驻这个 Slack 频道,而这一切都由一些工具来协调,帮助这个多智能体团队协同工作。Katelyn Lesse: Yeah, exactly. and people can just kind of build what they want to build. A really cool example some number of months ago we had someone on my team who not on platform acceleration like goal main job is not to do this type of work was thinking about we have all these Slack-based agents that we spend a lot of our time with what is maybe the right form factor within Slack for somebody to be able to fire off a much more ambitious goal. and so he kind of came up with this concept of like a Slack channel that's dedicated to orchestrating a big like multi-agent team in order to work towards like some specific goal and so you would have kind of a lot of instances of your Claudes within that Slack channel and like that was all like orchestrated with some tooling that helped the multi-agent team.

那是在多智能体系统还没变得越来越好、还没发展到你不必再花那么多时间琢磨多智能体系统究竟该如何协调运作的时候。你可以直接让它自己去做。但当时,一切都还只是实验:我们能不能试着在一个 Slack 频道里,让一组智能体协作,一次性完成一个非常宏大的目标?这很有意思,因为最后它逐渐演变成了另一种东西,更多是围绕那些持续存在的问题,也就是你可能会遇到的、长期存在的问题。比如,你可以让那组智能体一直扫描代码库里的漏洞,然后顺手把它们修好,对吧?所以这个概念随着时间推移多少发生了变化,但一切最初只是某个工程师说:“我们来试试这种形式,看看怎么让一支多智能体团队完成更宏大的工作。”你知道,这本来不是他的工作,但它确实能帮他做好本职工作,所以他就把时间花在这上面了。This was before multi-agent had gotten better and better and to the point where you don't really have to spend so much time thinking about exactly how will the multi-agent system orchestrate itself right like let it do it on its own, but at the time it was all an experiment on how can we try to just like one shot some really ambitious goal within a Slack channel with a team of agents working on that thing right and it's interesting because it ended up being it morphed into something that was more about persistent problems like ambient problems that you might have. Like maybe you have that team of agents is just like scanning for vulnerabilities in a codebase or something and just like fixing them, right? and so the concept kind of changed over time, but it all started from just some engineer saying like let's experiment with the form factors here and let's experiment with how we can have a multi-agent team do more ambitious work and you know it wasn't his job, but it was it helped him do his job and so that's what he spent his time on.

逐步淘汰传统的编程面试Phasing out traditional coding interviews

主持人:说到整体的工作情况,招聘正在发生怎样的变化?Felix Rieseberg,你的同事写过,他的团队——或者我不确定是不是 Anthropic——认为编程面试提供不了多少有效信号。你们组织只是在谈 Claude 平台,你们是怎么招聘的?招聘方式有什么变化?你们在寻找什么?又是怎么验证的?因为你知道,招聘一直都很难;我们知道,只有等一个人真正开始做这份工作,才能知道他能不能胜任。但在那之前,你知道,我们总得想办法筛选。Host: Speaking of the job in general, how is hiring changing? Felix Rieseberg, your colleague wrote about how either his team or I'm not sure if Anthropic decided that the coding interview doesn't give much signal, just your org talking about the Claude platform, how are you hiring? How is it changing? On what you're looking for? How you're verifying? Cuz you know hiring has always been we know it's always been difficult and you know when the person can do the job when they're doing the job, but beforehand you know there's a way we need to somehow filter.

主持人:这是一个巨大的变化。Host: It's a huge change.

Katelyn Lesse:这是一个很大的变化,也很有意思,因为我特意用了“逐步取消”这个说法。事情是这样的:我们在进行编程面试的同时,当然也会安排其他面试,比如考察技术设计能力的面试,对吧?或者看看你能不能聊聊过去参与过的大型技术项目,对吧?也就是除了亲自敲键盘写代码之外,你能展现出的其他各种能力。我们发现,越来越多时候会遇到这样的情况——听起来可能很明显,但你知道,有人可能没能通过编程面试,却在其他所有面试中都表现得非常出色。这是因为他们现在已经不像以前那样总是亲手写代码了,对吧?所以我们发现自己越来越常说:“啊,没关系”,对吧?你知道,招聘中一直有这样的难题:并不是每一轮面试都能做到面面俱到。你得想办法从其他方面获取佐证信号,最终判断一个人能不能成功。Katelyn Lesse: It's a big change and it's interesting cuz I'm I'm being pretty specific with the phrase phased out cuz what happened was we're running a coding interview alongside of course like we have interviews that test for technical design, right? Or the ability to talk about a large technical project you worked on in the past, right? Like all the other signal that you get beyond just putting hands on keyboard and writing code. We found ourselves getting more and more to a point I mean it sounds obvious, but you know someone might not pass that coding interview, but they would like crush all the rest of the interviews and it's cuz they're not writing code by hand all of the time anymore, right? And so we found ourselves more and more of the time almost like saying ah that's okay, right? You know and this is this is always a challenge in hiring like not every interview loop is like perfect across the board and you know you decide how do you get counter signal and how do you decide ultimately that someone's going to be successful.

所以在编程面试方面,我们发现自己并不是特别看重它们,因为我们总会说,你知道,他们现在可能已经不怎么手写代码了。所以我们做的并不是直接把编程面试删掉,而是开始尝试各种不同的面试形式,基本上都是由编程智能体驱动的面试。比如,审查智能体写的代码,或者审查智能体设计的系统;又或者是用编程智能体构建某个系统,或者做点什么,对吧?我们正在尝试很多这类面试,因为我们本质上是在寻找最好的方法,真正判断一个人能否很好地使用这些工具来完成工作。And so on the coding interviews we were just finding that we weren't putting a ton of stock in them because we kept saying well you know they might not be writing a ton of code by hand anymore. And so what we have done is we didn't just delete it. we've started to experiment with a bunch of different interviews that are basically just like coding agent driven interviews. So maybe it's like reviewing code that was written by an agent or reviewing like a system design that was made by an agent or it's, you know, build some system or build something using a coding agent, right? We're experimenting with a lot of these because we're we're just basically trying to find like what is the best way to really truly get signal on whether someone can use these tools really well to get work done.

所以,具体来说,我们想把过去用于考察编程能力的那一部分,替换成考察你能否与智能体协作完成工作。但面试的其他部分保持不变,仍然是考察你对技术设计的思考、你做过的项目,以及其他所有这些方面。So basically very specifically the part that used to test for coding we're trying to replace with something that tests for ability to like work with agents to get work done. But the rest of the interview has stayed the same on just thinking about technical design and the projects that you've worked on and all of those other pieces.

主持人:是的,因为作为招聘经理,你会注意到,编程面试之所以在规模较大的公司里一直挺方便,主要有两个原因。第一,题目在网上泄露其实也没什么关系,因为如果大家知道了题目,就能提前准备好,而你就得不到任何有效信号。这是一点。另一个原因是,培训大量面试官如何进行这种面试相当容易,而且无论面试对象是职业生涯刚起步的人、面试经验不多的人,还是面试经验丰富的人,得到的信号大致相同。不过,当我做招聘经理、参加面试小组时,我也发现编程面试给出的信号总有点不太可靠——有时候有人编程面试没通过,最后还是会被录用。Host: Yeah, cuz one thing with the coding interview you will notice as a hiring manager the reason it was kind of convenient at every larger size company is two reasons. One is it didn't really matter if a question leaked online because it's not great when people know the question they can come prepared and you'll get zero signal. That's one and then the other thing it was pretty easy to train a large number of interviewers on how to conduct this interview and get roughly equal signal even if it's a early career or like someone who hasn't had many interviews and also and at or someone who has a lot of interviews. But also when I was a hiring manager and sat on the panels like the signal from the coding interview was always a little bit like sometimes people will fail coding interviews and they will still get hired.

所以,就有那么一个,我觉得它给出的细微差别最少。它是非零即一的判断,反正不够精确,因为我们知道,即使在那时候,数据科学和算法——比如 DSA 面试——也不会考察我们日常做的那种编码。So like there was there was I feel it was the one that gave the least nuance. It was a zero or one that wasn't as precise anyway because we know that even back then the data science and algorithm like in the DSA interviews were not testing for the type of coding that we're doing day to day.

Katelyn Lesse:对,没错。所以它们从来都不完美。不过我觉得你确实提出了一个很好的观点:判断一次面试是否成功,比如某种你准备采用的面试形式是否成功,并不只是看我们试图获取的具体信号是什么,以及我们能不能获取到这个信号。还要看你能不能信任这个信号;要看让团队做好准备、为这场面试评分有多困难、负担有多重;还要看获取更多不带偏见的信号有多难,对吧?比如说,一份很容易遵循的评分标准。所以我们不会只是删掉编程面试,也不会直接说“这就是我们要换上的准确方案”。这就是为什么我们要测试各种不同的选项,看看如何在所有这些不同因素上达到我们想要的效果。Katelyn Lesse: Right. Exactly. So they were never perfect. but I think you do bring up a good point that whether an interview is successful like an interview a type of interview that you're going to run is successful is not just about what's the exact signal that we're trying to get and like can we get that signal? Some of it is can you trust it? Some of it is how hard is it to how onerous is it to have your team ready to grade that interview, right? And to score that interview and how hard is it to get more, you know, like unbiased signal, right? Like a rubric that is pretty easy to stick to and so this is why we're not just, you know, deleting the coding interview, but we're also not just like here's the exact thing that we're going to swap in instead. It's the reason why we're testing a bunch of different options for how we kind of hit where we want to hit on all of those different factors.

职级、晋升与绩效评估Levels, promotions, and performance reviews

主持人:有人拿到录用通知并加入 Anthropic 后,你们会怎么考虑职级、绩效评估、晋升之类的事情?你们会考虑这些吗?这些做法又发生了怎样的变化?因为再回想 Stripe、Uber、Meta 这些公司,这曾经是它们非常重要的一部分。一切都有章可循。我觉得当时岗位变化没那么大,所以我们有一段时间——比如五年、十年、十五年——都相对稳定,这也是其中很重要的一点。你知道,人们会担心:有人拒绝了录用通知,有人没能拿到自己期待的职称或职级,诸如此类。你们在公司内部是怎么看待这些的?Host: Once someone gets an offer and joins Anthropic, how do you think about things like leveling, performance reviews, promotions? Or do you think about this? And how has it changed? Cuz again, thinking back to like Stripe and Uber and Meta and all these places, like this was such a big part of those companies. It was all figured out. I think the role wasn't changing as much, so we had a few like, you know, 5 10 15 years of like stability if you will, and that was a huge part of it. You know, people were like worried when there are people were rejecting offers, when they didn't get the title that were hoping for, the level they were hoping for, and so on. How do you think of it inside of it?

Katelyn Lesse:是的,所以我们仍然设有职级,仍然会晋升,仍然做绩效评估,做所有这些事情。差异最大的两点是:第一,我们的团队构成更加偏向资深员工。所以……Katelyn Lesse: Yeah, so we still do levels, we still do promotions, we still do performance reviews, we do all these things. the two things that are most different are one, we've skewed much more senior. and so

主持人:招聘,对吧?Host: Hiring, right?

凯特琳·莱塞:对,没错。我觉得,作为管理者,过去总是更容易想清楚在更初级的岗位上,成功是什么样子,因为这些岗位的情况比较一致。我会说,随着职位越来越资深,你会发现人们各自负责完全不同的问题领域和系统,这时候要说在非常资深的岗位上,怎样才算表现出色,就有点难了。不过我们现在正处于这个阶段。Katelyn Lesse: Yeah, exactly. And I think it was always easier as a manager to think about what success looks like at more junior levels where it's a little bit more uniform, I would say. As you get more senior, you find people owning totally different problem spaces and totally different systems and it's like a little bit harder to say like what does good performance look like at some like very senior level? But that's where we are right now.

主持人:我认为这种情况通常发生在员工及以上级别。那时已经不再是,嗯,统一的了。Host: I think this typically happened at the staff and above levels. It was no longer yeah, uniform.

Katelyn Lesse:没错。我觉得我们现在开始面对的问题,既包括招聘时的问题,也包括人员到岗之后、考虑他们的级别时遇到的问题。我们以前会用一个代理指标。一切都看影响,对吧?比如,你产生了什么影响?没错。不过有意思的是,我们以前会把某项工作花费的时间当作一个代理指标,认为它或许能反映这项工作有多复杂,对吧?比如,你可能会说,某个人级别挺高的,对吧?我们没有职称,大家都是技术人员,所以级别都是用数字表示的。但一个数字级别相当高的人,可能曾在以前的公司或现在的公司做过某项花了两年时间的工作,对吧?然后你会说,这个人带领完成了这项为期两年的工作。Katelyn Lesse: Exactly. And I think what we're starting to grapple with is both when we're hiring and then once we have people in seat and you think about their levels, we used to use the proxy. Everything's about impact, right? It's like what impact have you had? Exactly. But it's interesting because we used to use a proxy of, you know, like an effort that took a certain amount of time is maybe a proxy for how complex that effort might have been, right? Like you might say somebody who's like some senior level, right? Like we do the we don't have titles. We're all member of technical staff and so it's all like numeric levels. But someone at a pretty high numeric level might have in their past company or in their current company worked on something that took, you know, two years, right? And then you say this person led this two-year-long effort.

比如说,那件事就非常复杂。现在情况是,那个原本可能要花两年的项目——比如把 API 从 Python 迁移到 Rust——有人带头,只用了五到六个月就完成了。过去我们可能会说,哦,这得花两年时间。但衡量复杂度的标准也不一样了,对吧?所以很多事情都变了。我们也一直在调整,想办法了解一个人所做工作的复杂程度。不过最终,[嗤笑] 兜底的衡量标准总是影响力,因为你可以看这样的迁移项目,然后说,好的,我们节省了这么多 CPU 资源,延迟改善了这么多,还避免了各种事故,等等,对吧?你也可以定性地看一个人做的工作,然后说,他们必须协调这么多团队,而且做得很好,对吧?Like that's so complex. And now it's like, well, the thing that could take two years like, you know, migrating the API from Python to Rust, someone leading that in a matter of five to six months is what we would have in the past said, oh, this is like a two-year effort. But then the complexity bar is different too, right? And so a lot of things have changed. And so we're kind of constantly iterating on how do we get a sense for the complexity of the work that somebody does. But ultimately [snorts] the fallback is always just impact because you're able to look at something like that migration and say, okay, great, we saved this amount of CPU and our latency got this much better and you know, all these different things and we avoided incidents and all of this, right? And you can kind of qualitatively look at the work somebody did and say they had to coordinate across all these teams and they did that really well, right?

这些就是我们现在用来了解团队成员资历的衡量标准。你知道,这件事变得越来越难了,因为以前要容易得多,也更容易确定,尤其是在较低级别的时候。但总的来说,职级、晋升和绩效评估这些主要事项的理念都没有变,因为我们依然在管理一支由有职业发展目标、不断成长并在做各种事情的人组成的团队,对吧?对我们来说,确保这个流程对大家来说依然是良好的,这一点很重要。And these are the measures that we now look at to be able to understand seniority within our team. And it's it's gotten, you know, just harder because it used to be much easier and more deterministic, especially at lower levels. But all to say those main things, the idea of levels and promotions and performance reviews have all stayed the same because we're still we're still operating a team that people who have careers and they're growing and they're doing all these things, right? And it's important to us to make sure that is still a good process for people.

主持人:绩效评估有一点是,它不一定只是关乎绩效,但很多公司通常每六个月就会进行一次。它是员工获得反馈的一个场合,通常反馈来自他们的经理,因为现在经理们不得不……好吧,你得告诉大家一些建设性的反馈、正面的反馈,等等。团队内部、团队之间,或者个人之间的反馈是如何进行的?Host: One thing about performance reviews is that it's not just about performance necessarily, but it's often most companies runs every six months where it's the it's a place where people get feedback, typically from their manager, because managers are now forced to like okay, you need to tell people like constructive feedback, positive feedback, and so on. How does feedback work inside of inside of teams or between teams or between individuals?

Katelyn Lesse:是的。我会说,跟过去的做法没什么不同。我们还是会——我是说,我想每个经理都有自己的理念。我的管理理念是,如果到了绩效评估的时候,我告诉你某件事,或者给你一些反馈,而你觉得特别意外,那就是我没做好。Katelyn Lesse: Yeah. I would say not that different than it ever used to work. We still do I mean, I guess every manager has their own philosophy. My manager philosophy is if I get to a performance review time and I tell you something, some bit of feedback that feels super surprising to you, then I messed up.

主持人:嗯。Host: Yeah.

Katelyn Lesse:比如,你本该更及时地直接从我这里听到这些。所以我们仍然秉持这样的理念。不过说到收集其他人的反馈,比如,我觉得情况也很类似:如果有人来找我,想对我团队里的某个人提出反馈,我通常会问:“这件事你能直接跟他谈谈吗?”这样我们就不会传话,也能让大家开诚布公地交流。但到了绩效评估的时候,我们有一套流程,你可以向同事征求反馈,也可以直接提交反馈。Anthropic 有一点挺好的,我们的反馈大多是透明的。对,我以前待过一些地方,你给某个人的反馈会交给他的经理,而那个人自己却看不到,对吧?Katelyn Lesse: Like you should have heard that from me more in real time. And so we still hold philosophies like this, but then when it comes to collecting feedback from other people, for example, I think again really similar, you know, like if someone comes to me and has got feedback for someone on my team, often it's like, is this something you can talk to them about directly, right? So we're not playing telephone and people can have open conversations. But at performance review time, we have the process of you can request feedback from peers or you can just kind of submit feedback. One of the nice things about Anthropic is our feedback is mostly transparent. yeah, like I've been at places in the past where the feedback that you give about somebody goes to their manager and they never see it, right?

而我在 Stripe 时,我们反复讨论过这些东西是如何运作的;但在 Anthropic,我们更倾向于透明,因此人们可以直接看到……And when I was at Stripe, we kind of went back and forth on how all those things worked, but at Anthropic we err much more on the side of transparency and so people kind of see directly what

主持人:意外情况应该会少一些。Host: There should be fewer surprises.

Katelyn Lesse:是的,正是如此。Katelyn Lesse: Yeah, exactly.

软件工程师的身份认同危机The software engineer identity crisis

主持人:是的。我们能看到这种情况,而且我们也谈到过这一点,不过软件工程师确实存在身份认同危机。你最近还写文章反思了这一点,我来摘引一小段。你写道:“这是写给那些感到身份认同危机的工程师的,因为他们认为自己的知识和技能将不再重要,尽管你们的技能可能决定这些复杂问题能否得到解决。”然后你举了多智能体系统为例。Host: Yeah. We can see that there is and we touched on this, but there's a there is an identity crisis with software engineers. And you recently reflected on this in writing, and I'll quote you a little bit for this. You wrote, this is for the engineers feeling an identity crisis because they think their knowledge and skills won't be important, even though your skills can be the difference in whether or not these complex problems will be tackled. And then you gave for example multi-agent systems as an example.

凯特琳·莱塞:是的。Katelyn Lesse: Yeah.

主持人:你能说说你怎么看这种身份认同危机,以及你觉得隧道尽头的光在哪里吗?Host: Can you share like what you're seeing in terms of like the identity crisis and like where you see the light at the end of the tunnel?

凯特琳·莱斯:是的。我们之前也稍微聊过这样一个问题:做这类工作时,什么会让你感到快乐?我觉得,尤其是对那些能从解决某个艰巨问题中获得很多快乐的人来说,是这样的,对吧?有那么多问题尚未解决、亟待解决,而你可以花时间去解决这些问题,从中获得无穷无尽的快乐。我觉得,比较难适应的是这样一些人:他们过去觉得自己的身份就是在键盘上噼里啪啦地敲打,然后写出代码,事情就因此办成了。从这个角度来说,我写那篇文章主要是想激发一些乐观情绪:我真的很兴奋,也充满乐观,因为我们有很多重大问题想要解决,对吧?Katelyn Lesse: Yeah. And we talked a little bit earlier about this idea of what do you get joy out of when you're doing this type of work? And I think especially for people who get a lot of joy out of you know, some ambitious problem is tackled, right? That those are the people who there's so much that is unsolved, that needs to get solved and there's just like an endless amount of joy that you can get out of spending the time on solving those problems. I think the people who are having a harder time are the people who are like my identity used to be that I like you know click clacked on my keyboard and I wrote code and stuff got done from that perspective and the idea in writing that was mostly to try to spark some optimism of I'm really excited. I have a lot of optimism because there are huge problems that we want to tackle, right?

是的,没错。你不再需要一行一行地写代码了,但我们希望 AI 最终能做到的是治愈疾病,对吧?你知道,在机械工程和其他所有领域,也能取得真正令人难以置信的成就——这些事情我们过去很长一段时间都觉得只会出现在科幻小说里,对吧?但我们完全可以着手解决这些问题。我觉得大家需要思考并关注的是,人们常常会说:“这件事为什么重要?智能体迟早会做到的。”或者“那件事为什么重要?智能体迟早会做到的。”但我认为,关键在于,要让智能体能够解决这些问题,还有很多工程难题需要尽快攻克。多智能体系统就是一个很好的例子,对吧?Like yes, fine. It's the case that you no longer write individual lines of code, but what we want to have happen with AI is to get to a point where like diseases are getting cured, right? And you know, like really incredible feats can happen in mechanical engineering and all of these other areas that we for a long time used to think were science fiction, right? But we can go and solve those problems. And I think what people kind of need to think about and focus on is people will often say like oh why does this thing matter? Like agents will do it eventually or why does that thing matter? Like agents will do it eventually. But I think the point is in order to enable agents to be able to solve those problems, there's a lot of engineering problems that have to get tackled soon. And so big example being these multi-agent systems, right?

比如,你可以拥有成千上万个智能体协同工作来解决一个问题。我们听一些客户分享过非常有意思的案例:比如,你在研究如何治愈某种疾病,或者在研发一种希望推向市场的药物,而你必须向 FDA 提交一整套材料,说明为什么应该批准这种药物上市。要让一种药物一路走到上市,每个阶段都要投入惊人的时间、精力和心血。我们看到,人们开始尝试搭建某种系统,它几乎就像一张甘特图,对吧?然后,持续运行的智能体会接手各项工作,并完成这些工作中的不同环节;在整个过程中,很多环节可能都不再需要人工参与。Like you can have thousands of agents that are working together in order to solve a problem. We've heard from some customers really interesting examples like if you're working on curing a disease and you're working on maybe a drug that you want to make available in the market and you have to submit to the FDA your packet of here's why you should allow this drug to go in the market. An insane amount of time and energy and effort goes into each of those phases of getting all the way to a place where a drug is on the market. And what we've seen people starting to do is maybe you like build some system that's almost like it's almost like a Gantt chart, right? Like and what happens is persistent agents are picking up the different pieces of the work and they're doing all the different pieces of the work and you might not have to have humans in the loop for a lot of the different parts of what's happening there.

这些事情才刚刚开始发生。想想你正在解决的问题,以及你如何与智能体协作——就像你在这里说的,让某个智能体去做某件事。但现在,不妨把目标定得更高,让一组智能体放手去做,把事情完成。我希望大家明白的是,如果我们不解决安全方面的工程问题,以及基础设施、身份和身份验证等方面的工程问题,这一切就不会实现。如果还没有先正确解决一些底层工程问题,你就不能放任一大群智能体去解决这些问题,否则我们永远也走不到那一步。我们永远无法让一大群智能体解决那个真正重要的问题。These things are only just starting to happen. Like think about the problems that you're solving and you're working with agents and like you're saying here individual agent go do that thing here you know, but now think about take the ambition level way up and have a team of agents just kind of go at it and get that thing done. What I'm hoping for people to understand is that's not going to happen if we don't solve engineering problems around security and engineering problems around infrastructure and identity and auth and all these different problems that you can't just let a huge team of agents go wild trying to solve these problems if you haven't solved some of these underlying engineering problems correctly first because we're never going to get there. We're never going to get to the place where the big team of agents solves the good problem.

我们会先遇到问题,对吧?也就是说,先发生一些糟糕的问题。我们的想法是,没错,智能体现在可以帮助我们解决很多这类问题;但在实现这一目标的过程中,我们仍然需要在安全、身份验证、基础设施以及其他各个方面拥有深厚专业知识的人,来构建合适的底层系统,这样智能体团队才能着手解决那些重大问题。We're going to have problems first, right? Like bad problems having happened first and so idea being yes, agents can help us solve a lot of these problems now on the path to that, but we still need humans who have deep expertise in security and deep expertise in auth and infra and all these different pieces in order to create the right underlying systems so that those teams of agents can go and solve those big problems.

主持人:你说的这些,对于那些在拥有大量 AI 预算、运行着许多智能体的地方工作的人,或者在前沿实验室或类似机构工作的人来说,确实很有道理。但我确实觉得,对更多人来说,多智能体系统还相当遥不可及。你知道,有些工程师仍然只有 Max 套餐可用,而且这就是他们能用的全部。他们没法申请提高额度,诸如此类。不过即便对他们来说,塔里克也有一句话说得特别好。我也读一下他的原话。他说:“现在正在发生一件非常奇怪的事。技术人员很沮丧,因为他们觉得自己的技能毫无用处;而人们则拼命希望自己能更懂技术,这样就能更好地使用智能体。”Host: What you're talking about makes sense for anyone who is either working inside a place where they do have large AI budgets and running lots of agents or in a frontier lab or something close, but like I do think that multi-agent systems are pretty far-fetched for more people who are you know engineers who still have the they have the max plan and that's all they can use. They cannot request an extension and so on, but even for them to Tarik had a really good quote. I'll I'll also read him. He said it's a very weird thing happening right now. Technical people are sad because they're they think their skills are useless and people are desperately wishing they were more technical so they could use agents better.

Katelyn Lesse:不错。Katelyn Lesse: Nice.

主持人:我觉得,我觉得你也见过这种情况。Host: I think I think you've you've seen this as well.

凯特琳·莱斯:是的。Katelyn Lesse: Yeah.

主持人:不过有件事是这样的:你刚才谈到智能体能做的所有事情,比如治愈疾病之类的,我觉得那会非常了不起。但我眼下有个更迫切的需求。比如,我要飞去伦敦,用的是英国航空的 App,而它简直是航空公司 App 里最差的。我是说,它差得离谱。我点名批评他们,只是因为客观来说,真的求你们改改吧。我希望 BA 团队里有人能听到。现在有很多糟糕的软件本来可以更新,也有很多还不错的软件可以变得很棒。Shopify 就是个很好的例子,他们现在正在重写软件。所以,即使是在这种目标没那么宏大的层面上,我也觉得这很令人振奋。听到你们对工程领域抱有如此宏大的抱负,当然很棒;但我觉得,在那些没那么宏大的层面上,我们也可以抱有更大的抱负。以前我们可能会说:“哦,这个我们不做了,重写要花好几年。”或者,还有那些用户体验糟糕的报销 App——现在或许只要几个月,而不是几年甚至几十年,就能着手解决这些问题。Host: But there's there's this thing where when you talked about all the things that agents could do, cure diseases and all those things which I think would be amazing, but I have a more pressing need which is for example I'm going to be flying to London and I'm I'm using the British Airways app and it is the bottom of airline apps. It is so beyond terrible. I'm just calling them out because they're objectively just please fix I'm hoping that someone listens on the BA team, but there's a lot of just bad software that could be updated and there's a lot of decent software that can be great. A good example is Shopify. They're now rewriting so I feel for even at all at these kind of like smaller ambition levels like it's awesome to hear that even the highest ambition levels you have way more ambition for engineering, but I think the lower levels there's also so much more ambition that would have said like oh we're not going to do it because it'll take years to rewrite or there's the expensing apps that have terrible user experience like all of these can now maybe just tackle the next like month in a matter of months not years or decades.

Katelyn Lesse:对,没错,我觉得这都取决于时间尺度,对吧?比如说,世界上最棘手的问题,我们谈的可能是几个月、几年之后的事,对吧?但即便是接下来几周到几个月内的事,对吧?所有运营这些系统、这些应用之类的人——它们本来都可以做得好得多——真正需要做的就是提高自己的雄心。而且确实,你可能手头就只有一个 Max 套餐,这就是你能用的资源,对吧?比如我们最近做的一件很酷的事就是,Max 套餐附带 API 额度,所以你可以开始用 Claude Managed Agents 之类的东西,构建能够持续运行的智能体,让它们也能去解决更难的问题。所以这很有意思,因为我觉得你说得完全对:不管你身处哪个问题领域,关键就是不断提高自己的雄心。Katelyn Lesse: Yeah, exactly and I think it's all time scale, right? Like the world's hardest problems we're maybe talking like months, years out, right? But even in the in the coming weeks and single digit months, right? All of these people who run these systems, these apps, whatever that could be so much better, all you need to really do is raise your ambition level and it's true that you might just have a max plan and that what you're working with, right? Like one of the cool things we did recently actually is max plans come with API credits and so you can go start to build these persistent agents on like Claude Managed Agents or whatever it might be that can go tackle harder problems as well and so it's interesting because I think you're you're exactly right that it's just a matter of continuously raising the level of ambition in any problem space that you're in.

我最近在和我们的一位法律行业 AI 客户合作。他们谈到,如今的模型在审阅合同方面确实非常出色,对吧?这算是使用 AI 最基本、最常见的场景。但他们现在开始设想,AI 也许能跑完整个尽职调查流程,对吧?这比你以前可能设想过的任何事情都要宏大得多。这是因为你可以构建更复杂的多智能体系统,实现更多编排,最终完成更多工作。对于使用这类法律 AI 产品的人来说,如果他们的工作是完成整个尽职调查流程,那么有了这种能力,体验就会好得多。过去,他们可能会让智能体分别处理这些细碎的环节,自己逐一安排;但现在,你可以直接和它协作,一开始就让它完成整个宏大的任务。I was recently working with one of our like you know AI for legal customers and they were talking about how yes you know like the models today are incredibly good at reviewing a contract, right? Like that's kind of the main basic thing that you use AI for, but what they're starting to do is say maybe AI can run an entire diligence process, right? Like something like way more ambitious than anything that you previously would have thought about and that's because you can build a more complex multi-agent system and you can have more orchestration happening and more work ultimately getting done. And that's the sort of thing where, you know, a user of that AI legal product is going to have a much better time if their job is to get a whole diligence process done and it used to be, you know, like I'm going to have the agents go do all these little pieces myself, but now you can kind of work with that thing and say like do the whole big ambitious thing all up front.

然后,你知道,那家 AI 法律公司的工程师需要考虑,为了让智能体能够执行完整的尽职调查流程,并确保一切顺利,他们需要构建些什么。所以我想这就是我的意思,对吧?无论在哪个领域、处于什么规模,只要提高了目标,工程师仍然需要做一些工作,才能支撑这种更高的目标。我们离这样一个阶段还差得远:人什么都不用做,智能体就能自己搞定。因为如果你只是完全指望智能体把一切都做好,而人类没有为此建立合适的系统、护栏、安全机制以及底层所需的一切,那很可能会出问题。And then, you know, the engineers at that AI legal company need to think about what they're going to have to build in order to enable the agents to go run a whole diligence process and make sure that it actually goes well. So I think that's what I mean, right? Is like in any place in at any scale, if you raise the ambition level, there's still work that engineers are going to have to do in order to enable that elevated ambition. And we're not yet anywhere close to a point where it's like the human doesn't have to do anything and the agents will just figure it out because it'll probably go wrong if that's like all you're doing is leaving it fully to the expectation that agents will do it all without humans creating the right systems and guard rails and security and all the things underneath.

主持人:有一件事我一直在琢磨,或者说试着建立一个心智模型:我们把软件工程称作“工程”,但人们一直在争论它到底算不算真正的工程,比如和土木工程相比。可现在我们谈到要建设——比如说,建设一种新的基础设施,让多智能体能够使用——而我们面临的巨大挑战就是得去学习并把它建出来。你可能会想,好吧,可建成之后会怎么样?那我们就大功告成了,也不再需要软件工程了。但我想到的是土木工程,比如建造摩天大楼。你可能会想,好吧,摩天大楼建成了。这真是一项了不起的工程壮举。我都不知道我们是怎么做到的,毕竟这些砖块其实承受不了那么大的荷载,但我们还是建成了这么了不起的东西。Host: One thing that I've been a little bit thinking about or like trying to have a mental model is we call software engineering like engineering and there's a debate of what like whether it's real engineering compared to like civil engineering and so on. But now that we're talking about building let's say building new infrastructure that let's say multi-agents can use and there's this big challenge that we need to learn and build it, you would think like okay, but what happens once we build it? Like we're done and there will be no software engineering needed. But what I am thinking of is civil engineering like building like a skyscraper. Like you would think okay, the skyscraper is built. It's been a huge engineering feat. Like I don't know how we did it with like these bricks that cannot really take that low, but we built this incredible thing.

你会觉得,我们一旦把它建成了,嗯,我想工作就没了,对吧?因为活儿干完了。但后来你会意识到,等一下,土木建筑师其实非常抢手,因为那栋摩天大楼还需要维护。有时候它们会被拆掉,再建新的。世界上第一栋摩天大楼建成之后,你猜怎么着?我想,这样的楼还会有很多。我想知道,我们会不会和其他类型的工程领域有更多相似之处,因为现在我们有了不同的材料,比如 AI 就是一种新材料。我们有确定性代码,也有非确定性的 AI。我们需要把它们整合起来。等我们开始解决多智能体系统问题时,你能不能提前想一想,未来的工作可能会是什么样,你和你的团队会继续做些什么?And you would think like once we built it, well, I guess there's no more jobs, right? Cuz the job is done. But then you realize like hang on like civil architects are very much in demand cuz that needs that skyscraper needs need maintenance. Sometimes they will be demolished and new ones built. And then once the first skyscraper is built in the world, like guess what? I guess there's there's so many more of these. I'm wondering if we'll have more parallels to other types of engineering where cuz now we have different materials like this AI is a is a new material. We have deterministic code. We have non-deterministic AI. We need to glue them together. Once we get to the point where we are solving multi-agent systems, like can you think in advance of where the work might be where you and your team will keep working on?

Katelyn Lesse:是的,我完全同意。你完成了项目,对吧?接下来你得维护它,但也应该继续在它的基础上构建。你应该不断思考下一阶段该做什么,什么才是更有雄心的目标。我认为,我们希望智能体帮我们做的一件事,尤其是在我们团队内部,就是维护工作,而这部分可能没那么有趣。Katelyn Lesse: Yeah, and I completely agree with that. It's you complete your project, right? And then it's you have to maintain it, but also you have to you should keep building on it. You should keep figuring out what is the next level of thing, what is the more ambitious thing. And I think something that we are hoping to have agents do, especially within our team, is the maintenance aspect, which is the part that is maybe a little less fun.

主持人:我们从来都不喜欢它。Host: We never enjoyed it.

Katelyn Lesse:是啊,让智能体越来越多地承担这类工作。Katelyn Lesse: Yeah, have agents do more and more and more of that.

主持人:值班工作和编写文档。Host: On-call work and writing documentation.

凯特琳·莱斯:没错,对。所以,智能体能不能替人们接手更多这类工作,然后大家就可以说,好,太好了,我们要去思考还能完成哪些更有雄心的工作。我认为,如果从让问题更具雄心这个角度来看,多智能体系统,以及日益复杂的多智能体系统,将会非常重要。我还认为,这些模型周边的许多能力仍将面临工程方面的问题。比如一个很好的例子是,我们还需要不断改进工具,让智能体能够与某些外部系统交互。我团队里有几位工程师创建了 MCP,而一些 MCP 的核心维护者也在持续推动这一标准的发展,我认为这非常重要。Katelyn Lesse: Exactly, right. So can agents take more of that type of work off of people's hands and then say, okay, great, we're going to go think about what is the more ambitious work that can go and get done. And I think from the perspective of just get more ambitious with problems, I think multi-agent systems and continuously more complex multi-agent systems are going to matter a lot. And I think there's a lot of capabilities around the edges of these models that will continue to have engineering problems. So like really good examples are you continue to need better and better tooling for an agent to be able to interact with some external systems. So a few of the engineers on my team created MCP and there's some of the core maintainers of MCP continuing to evolve that standard, I think is really important.

不过,我们还在与另一群人合作,他们正在考虑 MHS,也就是模型硬件标准。这个标准的理念是:如何让智能体与实验室设备或机器人等进行交互,以及与物理世界中的事物进行交互?我认为这一切都还处于非常早期的阶段。想想看,随着 AI 从只能解决软件领域中各种难题的封闭系统,逐渐向外拓展,它会越来越多地进入硬件领域,也会涉及更加复杂的系统,而这些系统需要更多方案来解决更多问题。所以我认为,我们离一个人类无事可思考的世界还差得很远。我觉得未来还会有更多的时间,也会有更多这类问题需要我们先去解决。But another set of folks that we're working with are thinking about MHS, the model hardware standard, which is this idea of how can we have agents interacting with, you know, like lab equipment or robotics, right? And stuff in the physical world. And I think that is all such early stages, right? And so if you think about as AI is going to expand from just self-contained systems that can solve really great problems in software, you're going to get more into hardware and you're going to get more into just even more complex systems that are going to need more solutions to more problems, right? And so I think we're we're just nowhere close to a world where there's not going to be anything left for the humans to think about. I think there's going to be a lot more a lot more time and a lot more of these problems that we'll need to get solved first.

主持人:我想问问,你现在如何看待这份新的软件工程工作?如今我们有了 AI 智能体、多智能体,还有各种工具;这和智能体出现之前的那份工作有什么不同?Host: What's your mental model about this, I guess, new software engineering job now that we have AI agents, we have multi-agent, we have all these tools versus the old job that existed until agents showed up?

Katelyn Lesse:是的,我觉得很大一部分归根结底是协调。要让团队和每个人达成共识,让智能体彼此达成共识并把事情做成。我觉得关键在于从更宏观的角度理解,如何把一个想法变成现实。你可以把很多需要完成的具体事项交给智能体处理,但要让一件事真正交付、并且以高质量交付,背后需要建立起一张协调网络,而这方面仍然有很多工作要做。人们花时间处理的很多事情都很重要,对吧?而最初的那些想法对你来说也很重要,对吧?所以我觉得这些事情会变得非常重要。Katelyn Lesse: Yeah, I mean, I think so much of it is it's coordination. It's getting teams and people on the same page. It's making agents get on the same page and get stuff done. I think it's really zooming out and understanding the mechanics of how you go from idea to reality on something and you can offload a lot of the pieces of stuff that needs to happen to agents, but the like coordination web that has to happen to make something really get shipped and make something get shipped at high quality, there's just still so much there. There's so much that people are spending their time on that are important, right? And the ideas in the first place, right, are important to you. And so I think that those are the things that are going to matter a lot.

然后我觉得,尤其是在近期,真正深入的专业知识会非常重要。比如安全领域,或者其他一些目前正因这项技术及其带来的变化而面临挑战的领域。我觉得,人们能够、也应该在这些领域钻研得比原本可能会钻研的更深入一些,因为这些领域如今开始变得比过去更加重要。所以,我觉得还有很多东西要学习,也还有很多问题要解决;而要解决这些问题,我认为还有大量协调工作要做。And then I think especially in the near term, there's going to be like really deep expertise that is really important in, you know, like whether it's security or other fields like that are right now feeling some challenges as a result of the technology and the things that are happening where I think just people are can and should go deeper than they maybe otherwise would have in some of these domains that are starting to matter more than they did previously. So I there's still a lot to learn and there's still a lot of to solve, and I think there's still a lot of coordination to do in order to get those problems solved.

主持人:听起来你的意思是,在构建东西的过程中,比如说,尽管大胆提高你的目标几乎没什么坏处,但随着你不断构建、更多地使用智能体,也要和它们一起学习、深入探索。尤其是我们提到的某些领域——安全显然是当下一个非常重要的领域。比如,一切都在变化。你可以相对快地成为这个领域的人类专家。也许你不该这么做?而安全可能是可靠性方面的问题之一,也可能只是你自己的专业领域——不管你从事的是什么领域,对吧?Host: It sounds like what you're saying is there's there's little to no downside of as you're building things like hey, raise your ambition levels, but as you're building and using agents more like learn with them, get deeper, and especially and we mentioned some of the areas security is obviously a huge one right now. Like everything is changing. You can become a human expert in this area relatively quickly. And maybe you shouldn't and that security might be one of reliability or just your own domain, whatever your domain you're working in, right?

Katelyn Lesse:对,没错。而且也许这不只是为了解决眼前的问题,对吧?比如说,也许你不必为了处理一个摆在面前的具体问题,就去成为安全专家,因为这可能不是对你时间的最佳利用,毕竟智能体能弄清楚并把它解决掉。但你可以做一些推演,看看我们现在开始遇到的某些问题,随着时间推移会变得多么复杂,对吧?所以,你会希望自己能够理解这些事情,预见未来,洞察那些即将出现的问题,并在它们变得更棘手之前提前应对。当然,智能体肯定能在这些方面提供帮助,但我仍然认为,我们都将非常依赖那些真正关心这些问题、拥有深厚专业知识,并能思考如何防患于未然的人。Katelyn Lesse: Yeah, exactly. And maybe it's not just to solve today's problems, right? Like maybe don't go become a security expert in order to solve like one problem that's directly in front of you cuz maybe that's not the best use of your time because an agent can figure it out and do it. But you can kind of extrapolate and see how some of the problems we're starting to experience are going to get more complex over time, right? And so you're going to want to be someone who can wrap your head around these things and see ahead and see around those corners and get in front of those things before they become more problematic. And again, like agents can help with all of this for sure, but I still think that we're we're all going to be very deeply reliant on humans who care a lot about these things and have a lot of deep expertise to think about getting ahead of them.

图书推荐Book recommendation

主持人:谢谢。你喜欢并愿意推荐的一本书是什么?为什么?Host: Thank you. And what's a book that you would recommend that you enjoyed and why?

凯特琳·莱斯:最近我读过的一本、真的很喜欢的书是《挽救计划》。电影也挺不错。不过我觉得,眼下正是个好时机,可以暂时跳出我们每天忙活的那些琐事。你知道,读个令人愉悦的故事固然不错,但读个能拓展思维的科幻故事也很好。我觉得《挽救计划》在这个点子上做得特别出色:一个人类和一个外星人彼此不知道该如何沟通,却必须想办法交流。这是个很精彩的故事,而且从某种意义上说也让人觉得很有共鸣,因为我们现在正面临着人工智能带来的种种问题。Katelyn Lesse: One book that I really enjoyed that I read recently was Project Hail Mary. And the movie was pretty good too. But I think just like right now is a fun moment to like get out of the weeds of everything that we're spending our time on day to day. And you know, a feel good story is nice, but also a nice like science fiction expand your brain sort of story is nice. And I think Project Hail Mary, they did like an absolutely excellent job with the idea of you know, you've got a human and you've got an alien who don't know how to communicate with each other and they've got to figure it out. And it's a cool story, but it's also it feels relatable in the sense of what we're dealing with right now with AI.

主持人:太棒了。Katelyn,非常感谢。Host: Awesome. Katelyn, thanks so much.

凯特琳·莱瑟:是的,谢谢你们邀请我。Katelyn Lesse: Yeah, thank you for having me.

主持人:这段内容非常精彩,也很有启发性。Host: This was very nice and informative.

凯特琳·莱斯:那真的很有趣。Katelyn Lesse: It was a lot of fun.

总结要点Closing takeaways

主持人:我很高兴能从 Katelyn 那里了解到这么多细节,也非常感谢她参与这次对话。如果你想进一步了解 Anthropic 的工作方式,可以看看下方节目备注中的《Pragmatic Engineer》深度报道《Anthropic 的软件构建方式正在发生怎样的变化》。如今,在 AI 实验室里,越来越多的人都在转向用 Rust 编写后端服务,这渐渐成了一种趋势。Katelyn 对原因的解释比我以前听过的都更到位:Python 对 CPU 的消耗太大,而现在 CPU 资源紧缺;模型编写 Rust 代码的能力也已经相当出色。此外,Rust 能让服务尽可能高效,性能足以媲美移植到 C++ 或 C 的版本,同时还能提供内存安全,以及供智能体使用的验证反馈层。Host: I really enjoyed getting all these details from Katelyn, and thanks a lot to her for this conversation. If you'd like to get into more details about how Anthropic works, check out the Pragmatic Engineer deep dive, How Building Software is Changing at Anthropic, in the show notes below. It's now becoming more of a trend to hear anyone and everyone moving to Rust inside of AI labs for their backend services. Katelyn explained the reason better than I've heard before. Python was too CPU intensive, there's now a CPU shortage, and the models have gotten really good at writing Rust code. Plus, Rust makes services as performant as possible, on par if you ported them to C++ or C, but Rust gives you memory safety and a verification feedback layer for agents.

所以总体而言,这对智能体要友好得多。另一个有意思的发现是,Anthropic 现在已经彻底取消了算法编程面试。这感觉是一个重要的里程碑,因为他们是第一家公开确认这么做的大型公司。Katelyn 说,他们发现有更多候选人在其他所有面试环节中表现出色,却在数据结构与算法面试中失利,因为他们已经不再用手写代码了。尽管 Anthropic 取消了这类面试,但他们还没有找到完美的替代方案,目前正在尝试各种围绕编程智能体和智能体编程设计的面试。我的看法是,大多数公司最终都会取消编程面试,但相应地,招聘流程会变得主观得多。面试流程在主观性上,会越来越像过去工程经理或产品经理的招聘流程。So it's overall a lot more agent-friendly. Another interesting part was confirming that Anthropic has now fully dropped algorithmic coding interviews, and this feels like a big milestone because they are the first large company to publicly confirm that they've done so. Katelyn said that they saw more candidates doing well in every other interview, but bombing the data structures and algorithm once because they were no longer writing code by hand. Even though Anthropic dropped this interview, they don't have a perfect replacement, and they're trying out different interviews built around coding agents and agentic coding. My take is that most companies will drop the coding interview eventually, but in return, the hiring process will become a lot more subjective. The interview loops will become a lot more similar in subjectivity to how engineering manager or product manager hiring loops have been in the past.

一个有些令人惊讶的发现是,Anthropic 的产品经理曾将代码推送到生产环境。我一直在打听这件事,因为在大多数公司,负责发布生产代码的仍然是工程师。当然,Anthropic 的产品经理技术能力很强,而且很多人都有工程背景,所以我确实想知道,产品经理发布生产代码会不会像在 Anthropic 那样普遍。我对此有些怀疑,但了解这件事在 Anthropic 内部是如何发生的,还是很值得一提的。另外别忘了,这些改动的值班负责人仍然是软件工程师。另一个有意思的地方是,Anthropic 内部的入职培训变化有多大。入职指南基本上就是:问 Claude。OpenAI 的 Tido 也说了同样的话;我们在 OpenAI 用 Codex 做入职培训。One somewhat surprising learning was that product managers in Anthropic have pushed code to production. I've been asking around about this because at most companies, engineers still own shipping production code. Granted, PMs at Anthropic are very technical and often come from engineering background, so I do wonder if PM shipping production code will be as commonplace as Anthropic. I'm a bit skeptical, but it's a good one to note how it's happening inside of Anthropic. Also, don't forget that the people on call for these changes are still the software engineers. Another interesting part is how much of the onboarding changes inside of Anthropic. The onboarding guide is pretty much just ask Claude. Tido at OpenAI said the same thing we had OpenAI's onboarding with Codex.

有一个非常重要的细节:Anthropic 和 OpenAI 都将几乎所有系统接入了各自内部的 Claude/Codex 实例,因此这些 AI 智能体掌握的上下文信息,会远远多于其他大多数公司内部的智能体。话又说回来,这或许也是将公司内部系统接入内部智能体的另一个理由。只要确保不会把公司的知识产权泄露给 AI 服务商就行。欢迎查看下方的节目说明,里面有关于工程文化和 AI 工程主题的深入探讨。如果你喜欢这期播客,请在你常用的播客平台和 YouTube 上订阅。特别感谢为节目评分,或分享给同事和朋友的听众。谢谢,我们下期再见。One very important detail is that both at Anthropic and OpenAI, they connect pretty much all their systems into their own internal Claude/Codex instances, and so those AI agents will have far more context than most agents inside of other companies. Then again, this might be one more reason to connect your internal systems to the company internal agent. Just make sure that you're not leaking company IP to AI vendors. Do check out the show notes below for related deep dives on the topics engineering culture and on AI engineering topics. If you enjoyed this podcast, please do subscribe on your favorite podcast platform and on YouTube. A special thank you if you leave a rating for the show or if you share it with your colleagues and friends. Thanks and see you in the next one.

← 回到本期 · 第 1 条