读见

从 1 个编程智能体扩到 10 个,哪些环节会出问题?|Tessl 的 James Moss

原题What Breaks Going From 1 Coding Agent to 10 | James Moss, Tessl

约 23 分钟原文英文已翻译

视频由 YouTube 提供

看前速览

5 个要点

Tessl 工程师 James Moss 用团队的真实故障说明,多个编程智能体并行工作时,为什么会覆盖彼此的改动、陷入审查循环,还可能把成本推高。

  1. 并行改代码前,先找出共用的状态

    两个工单改的是不同的数据库模式,但 Drizzle 把两项迁移记在同一个 JSON 日志里。Tessl 把模式变更提前,并给智能体提供处理迁移冲突的指引。

  2. 留意智能体在变基时做了什么

    有些智能体解决冲突时,会悄悄删掉自己开工后别人合入的代码,有时还会修改因此失败的测试。Tessl 在 PR 流程里加上了监控,发现这类改动后要求撤回。

  3. 让每轮代码审查都离合并更近

    多个审查智能体为一个 API 字段花了 23 小时,来回审查了 11 轮。Moss 建议合并重复意见,让各审查方采用同一套标准,并在流程卡住时让人介入。

  4. 同一个事件只交给一个执行者

    在生产环境里,两名执行者可能同时响应同一条 PR 评论。重写后的队列明确了什么算一项任务,以及当前由谁负责。

  5. 按工单核算开销

    有个 PR 花了 800 美元的 token 费用,最后也没合并。机器人发评论可能把计数归零,本机运行的智能体还会以开发者身份发言。Moss 建议按工单追踪实际的 token 和 CI 开销。

完整摘要

James Moss 回顾了 Tessl 软件工厂的演进。它最初跑在一名工程师的笔记本上,后来由不同智能体接手实现、审查和跟进 PR,从工单一路推进到合并。他说,同样规模的团队每周合并的 PR 数增至原来的 3.5 倍,同时提醒这个数字只能反映大致趋势。并行之后,原本无关的工单会在同一个数据库迁移文件上冲突,智能体也可能在变基时悄悄丢掉别人的改动,或改掉原本失败的测试。一个只加了一个 API 字段的 PR 在 23 小时内经历了 11 轮审查,另一个 PR 在 6 天里花了 800 美元的 token 费用,最后直接关闭。Moss 介绍了 Tessl 加上的防护,比如监控破坏性改动、明确队列任务的归属,以及如何让审查意见去重。他也提出按工单核算 token 和 CI 开销,让人在工作迟迟没有进展时介入。

章节

文字稿

查看原文

简要说明Brief Description

Tessl 工程师 James Moss 介绍了公司软件工厂的推出过程,以及编码智能体开始共享其交付系统后暴露出的五个问题。Tessl engineer James Moss walks through the rollout of the company's software factory and five problems that surfaced when coding agents began sharing its delivery system.

目录Table of Contents

  • 引言
    Introduction
  • Tessl 软件工厂简史
    A short history of Tessl's software factories
  • 同一团队提交的 PR 数量提升 3.5 倍
    3.5x more PRs with the same team
  • 我们所说的软件工厂是什么意思
    What we mean by a software factory
  • 共享状态:当智能体发生冲突时
    Shared state: when agents collide
  • 过时的假设
    Stale assumptions
  • 收敛:逐步接近完成
    Convergence: getting closer to done
  • 重复工作与恢复
    Duplicate work and recovery
  • 预算和停止条件
    Budgets and stop conditions
  • 关键要点:为人类打造的工具
    Key takeaways: tools built for humans

引言Introduction

大家早上好。很高兴见到大家。欢迎来到地下层。我们现在待在这里一个有点古怪、藏得挺隐蔽的小地方,不过我觉得还不错。我挺喜欢这里的。地方不大,就我们几个人。这是最好的房间。谢谢。Morning, everyone. Nice to meet you all. Welcome to the lower level. We're kind of in a weird little hidden-away spot down here, but, I think it's quite nice. I quite like it. Sort of small. Just a few of us. It's the best room. Thank you.

好的。在我们开始之前,先简单介绍一下我自己。我叫 James,是 Tessl 的技术团队成员。我有大约 25 年的软件工程经验,所以从事这一行已经很久了。在 Tessl,我负责很多不同的工作。今年,我一直在负责我们上下文清单产品的软件工程工作,同时也在参与工厂相关的工作。因此,Guy 刚才提到的一些内容,你们在主题演讲中看到的,也是我们正在研发的。我很喜欢软件工厂,今天我也会谈一些这方面的内容。Okay. Before we get into things, a bit about me. My name is James. I'm a member of the technical staff at Tessl. I've got around 25 years of software engineering experience, so I've been doing this quite a long time. At Tessl, I work on a bunch of different stuff. This year, I've been leading software engineering on our context inventory product and also working on the factory as well. So some of the stuff that Guy just talked about, you've seen in the keynote we're working on as well. And I love software factories, which is what I'm going to be talking a bit about today.

我觉得我真正喜欢的,其实是它们带来的生产力提升。我做初创公司已经有大约 15 年了,而现在比以往任何时候都更能独自从头到尾地构建一个东西,把它交付给客户,并很快上线。所以,没错,我非常喜欢这一点。那我们今天具体要聊什么呢?我想跟大家梳理一下过去六个月里,我们在打造工厂产品时遇到的一些问题,以及从中得到的经验。I think what I really love is actually the kind of productivity gains that they enable. I've been doing startups now for about 15 years, and more than ever, I can kind of build something end to end, just on my own and ship it to a customer and get it live very quickly. So yeah, big fan of that. So what are we actually talking about today? I want to give you a bit of a run through of some of the issues that we've run into while we've been building our factory product over the last six months and the learnings that came out of those issues.

我把这些归纳成了大约五个主题。我刚才把鼠标弄丢了。归根结底,多个编码智能体共用一个交付系统。所以,像 GitHub 或 Linear 这样的工具,都是为人类打造的,并不是为智能体优先的工作流设计的。I've categorized these into around five topics. I just lost the mouse. Ultimately, you have multiple coding agents sharing one delivery system. So using things like GitHub or Linear, we've got these tools that have been built for humans and not for agent first workflows.

而这最终会引发问题。今天我们要深入探讨的五个主题是:共享状态,也就是多个智能体使用同一资源或在同一段代码上协作;过时的假设,也就是智能体正在执行某项工作时,周围的情况发生了变化,但智能体却没有更新自己的认知。然后是收敛,也就是智能体一直在做事、原地打转并消耗 token,却没有取得任何进展,也没有更接近目标。And that ends up causing problems. The five topics we're going to jump into today are shared state, where you've got agents using the same thing or working on the same area of the code, and stale assumptions, where the agent is doing some work and the world changes around it without the agent updating its understanding. Then there's convergence, where the agent is doing work, spinning its wheels and using tokens, but you're not actually going anywhere or getting closer to a target.

重复工作、错误状态,以及如何从这些状态中恢复。最后,我们会看看如何控制局面、管理预算,尤其是在事情开始失控时该怎么做,以及需要为此设置哪些停止条件。There's duplicate work, error states, and how to recover from those. And then finally looking at kind of control and budgets when things do spiral out of control, what can you do? And kind of stop conditions that you need to have in place for that.

Tessl 软件工厂简史A short history of Tessl's software factories

先简单介绍一下 Tessl 的软件工厂。你会注意到,factories 后面有个 s。所以我们在 Tessl 建的不止一个软件工厂,而是很多个。我想我们现在大概已经迭代到第四版了。我会说,其中一些是实验项目,一些只是玩具,是我们做出来又会丢掉的东西。So a bit of a brief introduction to software factories at Tessl. And you notice that factories there has an s. So we've built more than one software factory at Tessl. We've built many. I think we're probably on our fourth iteration at the moment. I would say, some of them were experiments, some of them were just toys, things we throw away.

不过一路走来,我们也学到了不少东西。是的,希望你们也能从我们犯过的一些错误中吸取经验。简单回顾一下,我们最初在四月份开始着手研究这件事,并尝试了一些早期的工单实验。我们当时在考察 Linear,以及在 Linear 中将任务委派给智能体的功能,但那还不是一个完全由智能体驱动的工作流。我们给了一个小团队一些时间和空间来开展这项工作。But we learn a bunch along the way. And yeah, hopefully you guys are going to learn from some mistakes that we've made. So a bit of history, we kind of first kicked off our initial work and investigation on this back in April and playing around with some early ticket experiments. We were looking at Linear and the ability to delegate to agents in Linear, but it wasn't a fully agent-driven workflow. We we gave a small team some time and some space to work on this.

大约两周后,他们做出了一个东西,我们称之为 Kikimora。这算是我们第一个内部版本的工厂。不知道的人可能不清楚,Kikimora 是斯拉夫神话中的一种生物。她会在半夜来到你家拜访你。如果你家干净整洁,她就会帮你把家收拾得更加整洁干净。但如果你家又脏又乱,她就会把家里弄得更乱,对吧?And after around a couple of weeks, they came up with something that we called Kikimora. So this was our first kind of internal version of a factory. For those that don't know, Kikimora is a Slavic mythological creature. She comes and visits you in the middle of the night in your house. If your house is clean and tidy, she'll actually help make your house even tidier and cleaner. But if your house is dirty and messy, then she's going to mess it up even more, right?

她要把你的锅碗瓢盆都砸了。把一家工厂叫这个名字有点奇怪,对吧?就好像你为什么会想要一家专门来砸一大堆东西的工厂呢?不过,我们的看法是,如果我们的上下文和其他一切都处于良好状态,那么我们就知道这家工厂会让情况变得更好。反过来,如果情况不理想,我们最终就会陷入一团糟。She's going to break your pots and pans. Kind of a weird name for a factory, right? Like, why would you want a factory that comes and breaks loads of stuff, but we kind of saw it as if we have our context and everything else in a good state. Then we know that the factory will make that better. Conversely, if things are not in a good state, then we're going to end up in a real mess.

所以,最初的版本只是在我们一位开发人员的笔记本电脑上搭建的。她一直在自己的笔记本上运行它。因此,我们经常会收到这样的消息——如果坐在后排看不清的话,上面写着:“我通勤去参加 DevCon 时,Kikimora 就要下线了。”所以,她每次合上笔记本电脑的盖子,那个工厂就会暂停。不过这很棒,确实很有吸引力。So that initial version was just built on one of our developers' laptops. She was running it from her laptop. So we would often get messages like this which, if you can't see it at the back, says, “Kikimora is going offline while I commute to DevCon.” So every time she'd close the lid on her laptop, that factory would pause. But it was great. It was really compelling.

大家都很期待使用它。到 6 月初,我们已经把它部署到一个 EC2 实例上,并开始在整个公司推广,采用速度相当快,我稍后会谈到这一点。到 6 月中旬,公司所有 PR 中约有 31% 通过 Kikimora 和这个软件工厂的初始版本完成。到 7 月底,公司所有 PR 中通过它完成的比例已达到 85%。People were excited about using it. By early June, we'd put that on to an EC2 instance, and we'd started rolling that out to the entire company, and we saw pretty fast adoption, which I'll talk about in a minute. By mid-June, we had around 31% of all of our PRs going through Kikimora through that initial version of the software factory. And by the end of July, we'd got up to 85% of all the PRs within our company going through there.

在这个过程中,我们也学到了很多东西。最后,到了十月初,我们从 Kikimora 切换到了自己的 Tessl factory 产品,也就是 Guy 之前在台上提到的那个产品。它把我们从中总结出的所有经验,以及今天讨论的很多内容,都提炼成了最佳实践。而且切换过程出乎意料地轻松,这点相当棒。我记得有一天早上,有人说:“嘿,我们要切换了。”然后所有东西就都开始正常运转了。这简直不可思议。这是因为我们并不是在工厂里工作,而是在工厂周围工作——这一点我稍后还会详细讲。And we learned a bunch of stuff kind of going through this process. And then lastly, in early October, we swapped over from Kikimora to our Tessl factory product, which is what Guy was talking about on stage earlier, that distilled all the learnings, a lot of the stuff we talk about today, into best practices. And actually it was surprisingly easy to switch over as well, which is pretty awesome. I think we had one morning where someone said, hey, we're switching over. All of it started working. It's kind of amazing. And that's because we're not really working in the factory. We're working around the factory, which again, I'll talk about in a minute.

同一团队提交的 PR 数量增加 3.5 倍3.5x more PRs with the same team

我看了一些数据,也聊了聊推广上线的情况。这是 monorepo 中每周合并的 PR 数量,基本上涵盖了 2026 年的所有工作。可以看到,在 Kikimora 之前,我们每周大约会合并 100 到 150 个 PR。当然,PR 并不是衡量公司内部生产力的绝对可靠指标,尽管 CTO 们大概很希望它能是。不过,就了解我们交付了什么而言,它是个不错的趋势指标。So I'm looking at some of the numbers, and talking about kind of the rollout. This is PRs merged per week in a monorepo, which is basically all the work that's done across 2026. So you can see there pre Kikimora, we were merging around I think it was 100 to 150 PRs a week. Obviously PRs are not like, you know, a great definitive metric for measuring like productivity within the company. As much as CTOs would kind of love that to be the case. But they're a good directional indicator in terms of like, what are we shipping?

怎么回事。对。所以你们可以看到,我们一推出这套方案,相关数据就大幅增长了,对吧?仅仅采用这种工厂模式,我们每周能够开始交付的 PR 数量就达到了原来的 3.5 倍。我展示过,我们的比例最高达到了 85%。What's going on. Right. And so, you can see here, as soon as we rolled that out, we started seeing a huge uptick, right. It was actually three and a half times the number of PRs that we were able to start shipping per week just by using this factory model. I showed we got up to 85%.

今天这个比例稍微下降了一点。实际上,我们仍然在提交更多的 PR,但就工作占比而言,通过工厂处理的内容有所减少。比如前端相关的一些工作,以及部分设计工作,我们现在更多是在工厂之外完成设计。因此,大家可能更愿意在本地机器上运行,而不是通过某种更自动化的流程来处理。尽管如此,我们仍然看到大量使用。还有一点值得注意:这段时间团队规模并没有变化,对吧?团队人数还是一样,但使用量却大幅上升。在继续之前,我想先快速说明一下背景。Today it's dropped a little bit. We're actually still shipping more PRs, but as a percentage of the work, we've sort of dropped back a bit in terms of what goes through the factory. Some of the stuff around things like front end and some of the design pieces, we're doing a lot more design outside the factory. And so folks are keen to maybe run that on their local machine rather than put it through something a bit more automated. So still seeing lots of usage. And something important to note during the time is the team size hasn't changed, right? So this is still the same team size, but we've got this huge kind of uptick. I guess some quick level setting before we continue.

我们所说的“软件工厂”是指什么What we mean by a software factory

那么,我们所说的工厂是什么意思呢?在我们的工作中,基本上有这样一套从工单到 PR 再到合并的流程。你从一个工单开始,比如我们使用的 Linear,当然也可以是 GitHub Issues 或 Jira。人和智能体协作编写工单,并不断完善,直到它变得足够明确、可以交付。我们的工单通常还会包含大量技术实现细节。So what do we mean by a factory? So in our world, we basically have this kind of tickets to PR to merge flow. So you start off with a ticket within something like we use Linear, but obviously something like GitHub issues or Jira. A human and agent have worked together to write that and refine that ticket into something meaningful that you can deliver. Our tickets often include a lot of the technical implementation as well.

不要太多。我们不想对实现代理施加太多引导,但又要提供足够的信息,让我们能大致跟踪其中的进展,也能跟踪我们认为工单中重要、希望代理完成的事项。然后,我们会让一个在云端运行的实现代理在完全独立的上下文窗口中开展工作。它完成构建后,会通过 GitHub PR 将成果交给审核代理。Not too much. We don't want to steer the implementation agent too much, but enough that we kind of track that in there, and we can sort of track the things that we think are important within that ticket that we want the agent to hit. We then have an implementation agent that runs in the cloud, in a completely separate context window. It goes and builds that and passes it over to a review agent in a GitHub PR.

再说一次,实现代理和审查代理是彼此独立的实体,它们之间没有任何共享上下文窗口。我们还有一个叫作 shepherding 的流程。有些人把它叫作 babysitting(看护),但我想我们都经历过这种情况:你得盯着一个 PR,查看 PR 上陆续出现的评论,催促相关人员,还得检查合并冲突,并处理所有这类没人喜欢做的无聊、繁琐的事情。因此,我们构建了一个名为 Shepherd 的代理,由它来替你处理这些事。Again the implementation and the review agent are separate entities. There's no kind of shared context window there. We also have a process called shepherding. Some people call it babysitting, but I think we've all experienced a world where you have to look after a PR and, you know, look at the comments that are coming up on that PR and chase people up and, you know, check for merge conflicts and do all those kinds of, like, boring, tedious things that no one likes doing. So we built an agent called Shepherd, which does all that stuff for you.

基本上,你只要让它继续运行就行。最后,当人工审核者对当前状态满意时,就会批准并合并,然后部署到生产环境。我们的一些 PR 也会自动合并。图里没有画出这一点。And basically you can just leave it running. Finally, a human will, then, when they're happy with the state, will approve that and merge that, and that gets deployed to prod. Some of our PRs also auto-merge. We haven't got that on the diagram.

不过,我们会根据工单的复杂程度做一个规模评估。如果工单规模较小或风险较低,我们就会允许它直接合并到 main 分支并发布到生产环境。这里重要的是,整个生命周期中的所有这些环节,都是由事件触发的,也就是由技术栈中发生的事情触发,而不是由提示词触发。没错。也就是说,没有人会手动按下按钮,把工单交给实现代理。But we do a kind of sizing estimate based on the complexity of the ticket. And if it's small size or low risk, then we'll just allow that to merge straight into main and go out to production. The important thing here is that all these things here, this entire life cycle, is triggered by events, things that are happening in the stack, rather than by a prompt. Right. So no one is manually pressing a button to pass the ticket to the implementation agent.

他们只需创建一个工单,给它加上标签,或者在 Linear 中把它委派给 Tessl。然后整个流程就启动了,对吧?各个步骤分别由代理负责。正如我提到的,这些不同步骤之间是彼此隔离的。而人类要对最终结果负责。They just create a ticket, they put a label on it, or they delegate it to Tessl within Linear. And this whole thing kicks off right? The agents themselves own the individual steps. So as I mentioned, there's this kind of isolation between each of these different steps. The human is responsible for the entire outcome.

没错。我们还没到只说一句“YOLO”就行的程度。你们去做,我们就放松一下,什么也不做。这里的重点是,智能体和人类在同一批代码仓库里协作,对吧?它们不是在单独的地方工作,而是使用人类在本地机器上与智能体协作时会用到的同一套技能。它们也使用相同的 GitHub 服务、Linear 服务之类的工具。那我们就来聊聊我刚才提到的这五个主题。Right. We're not quite at the level of just saying YOLO. You guys do it, and we'll just chill and do nothing. And then the important thing here is that the agents are working in the same repos as the humans, right? So it's not in a separate place. They're using the same skills the human would be if they were working with an agent on their local machine. And they're using the same GitHub services, Linear services, those kinds of things. So let's jump into these five topics I mentioned.

共享状态:当智能体发生冲突时Shared state: when agents collide

所以这就是多个代理在同一件事上发生冲突的地方。这里我们用一个简化的示意图来展示这种重叠。后来我们开始遇到大量令人头疼的合并冲突:多个代理似乎在处理同一项任务、更新同一个文件,却没能真正取得进展。于是我们意识到,独立的工单并不能保证修改彼此独立。如果只有一个代理,这些编辑可能会按顺序完成。So this is where the agents are colliding over the same things. So we basically have kind of a simplified illustration of the overlap here. So we started seeing a bunch of painful merge conflicts where agents were sort of working on the same task, updating the same file, but not really kind of getting anywhere. And so what we realized is that independent tickets do not kind of guarantee independent changes. So with one agent, these edits might have happened sequentially.

对。那个代理可以弄清楚需要按什么顺序对文件应用更改。但当你扩展到那么多代理时,你知道,它们并不了解其他代理在做什么,也不知道彼此之间会如何冲突,基本上就是这样。所以,嗯,就像我说的,有些冲突相当明显,对吧?Right. That one agent can work out what order it needs to apply changes to a file. When you are scaling that many, many agents you know, they're not aware of what the other agents are doing and how they're going to conflict with each other, basically. So, yeah, like I said, some of these conflicts are pretty obvious, right?

你看,比如这里,有两个代理正在同一个文件中工作。他们都在处理某个账单文件,同时进行修改。这其实相当简单,只有两个代理。但想象一下把规模扩大到十个,对吧?问题的复杂度会呈指数级增长。You know, here, for example, two agents are working in the same file. They're working on some billing file, both making changes at the same time. So this is quite simple. Just two agents. But imagine scaling it to ten, right. The problem is kind of exponential.

这里还有一类问题:智能体可能看似在处理互不相关的事情,但实际上它们的改动彼此冲突,只是它们可能没有意识到,而人类一眼就能看出来。我们在 Node 生态中使用 Drizzle 作为 ORM。别让我聊 Node ORM,糟糕的 ORM 多得数不清,不过不知出于什么原因,我们用的是 Drizzle。它的迁移系统很糟糕,甚至没有回滚迁移。问题在于,你编辑一个 schema 文件时,即使是针对两个互不相关的 schema 的独立改动,最终也会争用这个 journal JSON 文件。There's also a kind of class of problem here where, agents might be working on apparently separate things, but there are conflicting changes that they're maybe not aware about that you would understand as a human right. So we use Drizzle as our ORM within the world of Node. Don't get me started on Node ORMs because there's lots and lots of terrible ones, but Drizzle is the one we're using for whatever reason. And it has a terrible migration system. It doesn't even have down migrations. But what happens here is you edit schema file and two separate edits to two different schemas that are unrelated end up causing contention on this journal JSON file.

因此,一个智能体可能会修改用户架构,比如添加一个新的出生信息字段,而另一个智能体则在编辑完全不同的内容,比如支付相关的内容。但由于这两项更改都会记录在 journal JSON 中,最终就会在那里产生冲突。再想想,这种情况还会发生在许许多多的智能体之间。你很快就会看到频繁的变动和大量的合并冲突,导致事情无法在它们的工厂流程中推进,因为它们始终在互相冲突。So one agent might make a change to the user schema, maybe add a new field for birth information, and the other agent is editing something completely different related to payments. But because both of those changes get recorded in the journal JSON, you end up getting conflicts there. And again, multiply this by many, many agents. And you really start to see churn and lots and lots of merge conflicts and things just not moving through their factory because they're just constantly conflicting with each other.

所以,正如我提到的,随着越来越多的代理并行工作,这种情况显然会呈指数级增长。目前,我们通过更巧妙地安排工作,算是解决了这个问题。比如说工单流程,到这一步我们会考虑如何分阶段推进,并与代理一起确定需要做哪些更改。So as I mentioned, obviously this kind of scales up exponentially as you are adding more and more agents working in parallel. Right now, we've kind of solved this by being a bit more clever about how we structure the work. So thinking about that sort of ticket process. At that point we think about staging, and we work with an agent to work out what the changes we need to make.

我们会尽量把这类 schema 变更安排得早一些,而不是拖到这组工作快结束时再做。我们还准备了不少技能,帮助智能体默认处理这类冲突。似乎没多少模型了解 Drizzle,也不了解它的迁移日志文件是如何工作的。它们只想直接更新和编辑那个日志文件,这样做可不好。要是这么做,你就会陷入很糟糕的境地。We'll try and make a lot of these sort of schema changes earlier on, rather than like later in the set of work. We also have a bunch of skills to help agents fix these kinds of conflicts by default. Not many models seem to know about Drizzle and how its migration journal file works. They just want to update and edit that journal file directly, which is not good. You're in a bad place if you do that.

因此,我们也教会了它们一系列解决这些问题的技巧,这在一定程度上提高了成功率。另一件需要考虑的事是我们选择什么样的技术,对吧?比如,我们进入这个领域之前就选用了 Drizzle,而它是我们架构中的关键部分,所以我们多少受它所限。但实际上,我们应该尝试看看别的选择,找一种不会造成这种冲突的技术。你做出的技术选择会影响多个智能体在你的代码仓库中协同工作的成功率。And so we've given them a bunch of skills on how to resolve those things as well, which kind of increased success rates. The other thing is thinking about the kind of technology choices that we pick, right? Like, we picked Drizzle before we were in this world, and we're kind of bound to it because it's a key part of our architecture. But really, we should try and look at something different, something that doesn't cause this contention, like the technology choices that you make can affect how successful multiple agents can be working within your repository.

我认为 Drizzle 即将更改迁移系统。我想,在我们期待已久的 1.0 版本中,他们会移除那个 journal JSON 文件。I think Drizzle is about to change the migration system. I think in the 1.0 release, which we're looking forward to, which is going to remove that journal JSON file.

过时的假设Stale assumptions

接下来是过时的假设。另一个代理正在改变你的代理所处的环境。你给一个代理分派一张工单,它就开始着手工作。在开始时,它本质上掌握着一份当前世界的快照。对。比如这里,我们看到的是代码的第 12 个版本和工单的第 3 个版本。So next up is stale assumptions. So another agent is changing the world where yours is working. So you give an agent a ticket and it kicks off starting some work. At that starting point, it essentially has a snapshot of the world. Right. So here, for example, we're looking at version 12 of the code and version three of the ticket.

也许那个 PR 在某个时候已经经过评审,而智能体正在做一些工作。但与此同时,其他智能体正在其他分支上处理其他工单,并且可能会在你的智能体处理之前就把那些工作合并进去。对吧?于是就会出现这样的情况:智能体所处的环境已经发生变化,它却仍在其中进行修改。我们反复遇到的一个问题,本质上就是合并冲突。And maybe there's been a review at some point on that PR. And the agent is doing some work. But what happens in the meantime is other agents are doing work in other branches on other tickets, and they might be merging that work before your agent gets to it. Right. And so you end up in a situation where the agent is making changes in a world where its reality has changed. Essentially, something we kept seeing is that we had an issue with merge conflicts.

实际上,我们一开始并没有注意到,但为了让自己的工作合并到 main 分支,智能体会在 main 分支上进行 rebase,然后悄无声息地丢弃其他人已经完成的工作。我们最初也没意识到这一点。有时测试显然会开始失败,有时智能体还会顺手修改测试,让测试不再失败。而我们并不知道这些事正在发生。对。这些事情都在幕后发生。我们并没有一直守在旁边,盯着智能体以及它在做什么。但后来有人开始发现这些问题。我们开始有人会问:“那东西去哪儿了?”Actually, we didn't notice it first, but to get its work merged into main, the agent would rebase on main and silently throw away other work that had been done. And we didn't realize at first. Sometimes obviously tests start failing, sometimes the agent would edit the test as well to stop them failing. And we didn't know this was happening. Right. All this stuff is happening out of band. We're not sitting there watching over the agent and what it's doing. But someone started catching it. We started having people being like, where's that?

那个按钮去哪儿了?上周它还在那儿呢。按钮消失了。所以,有些问题可以通过更好的测试和某种程度上更好的隔离来解决。我们的解决办法是增加另一种触发器,让它作为 PR 流程的一部分运行,能够发现这类编辑,并阻止代理这样做。代理还是会试图通过删除别人的代码来解决合并冲突。不过,我们安排了另一个代理在一旁监看,它可以提醒:“嘿,你这儿做错了。把它还原。你应该这么做。”Where's that button gone? Like that was there last week. The buttons disappeared. So some of this can be done with better testing and kind of better isolation. We solved it by having another kind of trigger that basically ran as part of the PR, which is able to notice these kinds of edits being made and stop the agent from doing it. The agent would still try to resolve merge conflicts in a way that deleted another person's code. But we had another agent watching that could say, “Hey, you've done something wrong there. Revert that. Here's what you should be doing.”

趋于完成:逐步接近完成Convergence: getting closer to done

所以,这些就是过时的假设。收敛性是个有意思的问题。每次迭代是否真的让我们更接近一个可接受的结果?So that's stale assumptions. Convergence is an interesting one. Is each iteration actually getting us closer to an acceptable result?

计数示范:“从1数到100。不要停。”明白。好。行。好。1。然后第二天我们可以说2,就这样一直数到100。准备好了吗?我先说1。好,我准备好了,我接着你数。咱们顺畅地数,直接一路数下去。开始吧。太棒了。我说1,你说2,然后我们就按这个节奏继续。准备好了吗?Counting demonstration: “From 1 to 100. And don't stop.” Got it. Yeah. All right. Okay. One. And then the next day we can say two, and we'll just go until we get to 100. Ready? I'll start one. Yeah. I'm ready, so I'll go after you. Let's keep it smooth and we'll just count straight through. Go for it. Awesome. So I'll say one. You say two and we'll just keep that rhythm going. Ready?

开始吧。一个。没错。我准备好了。我接着说两个。你说完我马上接。太好了。很好。所以我刚才说了一个。现在轮到你了。请说吧。然后说两个。我们往上数的时候就按这个节奏来[字幕显示“200”,不过提示中写的是“100”]。好。太好了。所以我说两个,然后你说三个。我们就这样一个接一个地继续下去。Here we go. One. Exactly. I'm ready. I'll jump in with two. Right after you. Perfect. Excellent. So I said one. Now it's your turn. Go ahead. And two. And we'll take the pace on the way up [the caption reads “200,” though the prompt gave “100”]. All right. Perfect. So I'll say two, and then you'll say three. And we'll keep going one after the other.

James:你们不必互相解释怎么数数。所以基本上,我们工厂里当时就发生着类似的事,对吧?我们就坐在那里,心想:这混乱的情况到底是怎么回事?下面来看一个这类情况在实际中的真实例子。这是同事 Dougal 提的一个非常简单的 PR,只是在 API 响应中新增了一个 API 字段。很简单。James: You don't have to explain to each other how to count. So basically, that kind of thing was happening within our factory, right? Like we were sitting there just like, what is going on with this crazy situation? So here's a real example of that kind of in practice. So this is a very simple PR raised by a colleague, Dougal. Just adding one new API field to an API response. Pretty simple.

这里有 1,700 行改动,但其中大部分都是自动生成的 API 契约,比如 OpenAPI JSON 文件之类的东西。不过后来开始出现很多问题。有人能看出这里的问题吗?是的,实际上,屏幕挺小的。所以,如果我把这里放大,你会发现,没过多久,这段对话就有了 106 条评论。对吧?这显然不是人手动弄出来的。There's 1,700 lines changed on this, but most of that is kind of auto generated API contracts, OpenAPI JSON file is that kind of thing. But a lot of bad things started happening. Can anyone see the issue here? Yeah, actually, it's quite a small screen. So, if I was zoomed in here, basically the conversation in very short order got to 106 comments. Right. Like that wasn't a human doing that.

当时有一大堆代理。所以最后我们在 23 个小时里进行了 11 轮审查。这些代理确实发现了一些问题,但评论都相当吹毛求疵。结果基本上就是,我们陷入了代理之间互相对话的恶性循环。我想我们当时不知为何同时测试了好几种不同的代码审查工具。我们也不知道为什么会这么做。There was a bunch of agents. So we ended up having 11 review rounds over 23 hours. The agents were kind of finding things. They were quite nitpicky comments. But, it basically meant that we kind of in this, like, death spiral of agents talking to each other. I think we, for some reason, we were testing a bunch of different code review tools at the same time. We don't know why we did that.

但在这里你可以看到,我们有一些流程通过 GitHub Actions 运行。一段时间里我们还用过另一个工具[名称不清楚,字幕显示为“agent tests”]。我们还进行了 Tessl 代码审查,也用过 CodeRabbit,虽然它没列在这份清单里,但当时确实也在使用。结果就是,工作一直在做,却没什么进展。最初的工作很快就达到了不错的标准,但随后有多个代理陆续加入,它们负责的其实都是同一项任务,而我们却没有就这些代码审查代理各自应如何定义“做得好”达成任何共识。But here you can see we had some stuff going through GitHub Actions. We had another tool for a while [name unclear, captioned as “agent tests”]. We had our Tessl code review. We also had CodeRabbit as well, which isn't on this list, but that was definitely in the mix as well. And so what was happening, work was being done, but we weren't really getting anywhere. So the initial work had been done immediately to kind of a good standard, but then we had multiple agents sort of chiming in, and they were all responsible for the exact same task, but we didn't have any kind of alignment on what our definition of good looked like for each of these code review agents.

你可以看到这一点。You can see that.

活动公告:AI DevCon 即将重返伦敦。我们今年 6 月在伦敦举办的首场活动门票已售罄。今年 11 月举办第二场纽约活动后,我们将于 2027 年重返 Moorgate 的 The Brewery,带来更强大的嘉宾阵容,以及整整两天由真正使用智能体进行构建的人带来的演讲。你将听到业界对当前现状的坦诚看法、团队采用 AI 的真实故事、成功之处与棘手难题,以及他们对未来发展的判断。活动将于 6 月 7 日和 8 日举行。悄悄告诉你,我们还为你准备了超值优惠:扫描此二维码,即可仅需 £100 抢购早鸟票。伦敦见!Event announcement: AI DevCon is coming back to London. Our first London event sold out in June. After our second New York event this November, we're heading back to The Brewery, Moorgate, in 2027, with a bigger lineup and two full days of talks from the people actually building with agents. You'll hear honest takes on where the industry's at, real stories from teams adopting AI, the wins as well as the messy bits, and where they think things are heading next. It's on June 7th and 8th, and don't tell anyone, but we've got a really great deal for you. Scan this QR code to grab an early bird ticket for just £100. See you in London.

James:所以我想这是个极端例子。大多数人不会真的在每个 PR 上都运行四个不同的代码审查机器人,不过即便只有一个审查机器人,你也能看到每一轮都会提出类似的问题。James: So that's an extreme example, I guess. Like most people aren't really running four different code reviewers on every PR, but even with one review bot, you can kind of see the same sort of issues being raised on each round.

所以它的表述会略有不同,而每次表述不同时,智能体就会自行决定尝试实施所要求的更改。那我们该如何解决这个问题?首先,要识别这种重复。然后,从重复中得出的每一条发现,都不必成为一项需要采取的独立行动。So it's worded slightly differently and each time they're worded differently, the agent goes off and decides to try and implement whatever change that was asked for. So how do we fix this? First of all, recognizing that repetition. And then each finding that comes out of that repetition doesn't need to be a distinct action that needs to be taken.

因此,在本轮审查中发现的这类问题,需要与该机器人或其他机器人在 PR 中发现的现有问题进行汇总。我们还应该确保工厂流水线中不同环节的所有这些代理都遵循一致的标准。我们通过技能以及 AGENTS.md 或 CLAUDE.md 之类的文件来实现这一点,并确保清楚地定义你所认为的良好标准。So these kind of findings that happen in this review cycle need to be kind of aggregated against the existing findings that that bot or other bots have found within the PR. We should also look at making sure we've got consistent standards between all these different agents on these different pieces within our factory pipeline. We do this via skills and things like obviously your AGENTS.md or your CLAUDE.md. And making sure that what you think is good is clearly defined.

而且该仓库中运行的每个智能体也都能理解这一点。最后,还要允许人类介入。也就是说,设置某种条件——我们稍后会讨论停止条件——来检测这种情况,然后指出:“嘿,这样不太好”,并请人类介入,要求做出更改或调整范围,具体采取哪种方式,要视情况而定。这就是收敛。And every agent that is working in that repo understands that as well. And then finally allowing a human to jump in as well. So having some kind of condition, we'll talk about stop conditions shortly, but having some kind of condition that will detect this and then say, hey, this is not good, and pull in a human to ask for change or changing the scope, whatever makes sense there. So that's convergence.

重复工作与恢复Duplicate work and recovery

接下来要讲的是重复工作,以及我们如何从重复工作中恢复。因此,如果把我们的工厂看作一个整体,它实际上是一个分布式状态机。但它也运行在多个你并不拥有的第三方系统之上。对吧?具体来说,我们在 Linear 里有工单,有各种云端执行环境,也就是那些沙箱;我们在 GitHub 上有 PR,还有 CI 运行任务。Next up is duplicate work and how we recover from duplicate work. So if we think about our factory it's effectively a distributed state machine. But it's also running across multiple third-party systems that you don't own. Right. So if you think about it, we have tickets in Linear. We have our kind of cloud execution environments, those sandboxes. We have our PRs on GitHub. We have CI runs.

我们有审查意见,有正在合并的内容,也有代理日志。无论如何,对大多数人来说,这些不同的元素都分散在各处。要形成我们对整个世界的认知,就需要查看所有这些内容,才能弄清楚正在发生什么。幸运的是,从系统设计的角度来看,这些都不是什么新东西,对吧?我们构建容错分布式系统已经有一段时间了,因此可以回归第一性原理,确保原子性和幂等性等特性融入我们的系统设计,以及我们对工厂的思考方式中。We have review comments. We have things being merged. We have agent logs. All of these different elements are all distributed for most people anyway. And to kind of calculate our view of the world, we need to look at all of these things to understand what is happening. Luckily, none of this stuff is like new in terms of system design, right? Like, we've been building fault-tolerant distributed systems for a while now, and so we can kind of go back to first principles and ensure things like atomicity and idempotency are kind of part of our system design and the way we think about our factory.

这让它们具备容错能力。东西总会出故障。是啊。这些东西真的、真的很难测试,尤其是不用生产环境的话。你知道,要怎么模拟 GitHub,比如说,或者 Linear?你根本没法做到。所以肯定会出问题。That makes them fault-tolerant. Things are going to break. Yeah. This stuff is so, so hard to test, like, without using production. Like, you know, how do you mock GitHub, for example, or like, or Linear? Like you just can't do these things. And so things will definitely break.

那么,如何从这些问题中恢复呢?我想给你们讲一个简短的故事:我们曾遇到一个问题,给我们造成了不少麻烦——PR 上的一条评论被重复计数,导致两个不同的工作进程都作出了响应,而我们一开始并没有注意到。有时,后启动的工作进程能判断出这项工作已经有人在做,于是什么也没做。这就相当于空操作,什么都没发生。但有时,具体取决于时机,第二个工作进程也会执行一些工作,并对这些变更作出反应。So how do you recover from those? So I want to tell you a quick story about an issue we had that caused us a bunch of problems where a comment on a PR got counted twice and two different workers responded. Which we didn't initially notice. Sometimes the later worker could work out that the work was already being done and did nothing. There was like a no op, nothing happened there. But sometimes, depending on timing, the second worker could then also do some work and also react to those changes.

显然,由此产生的输出会有所不同。没错。给两个代理同样的任务,它们绝不会达成一致、采取相同的行动。这实际上就是非确定性,而且非常难调试。我们当时只用单个工作进程进行测试。显然,只有一个工作进程时,就不会遇到这种情况。而在生产环境中,情况就截然不同了。最后,我们彻底重写了队列来处理这个问题。于是,我们定义了一个逻辑上的工作单元,以及当前由哪个工作进程负责处理它。团队还进行了形式化验证——这方面我并不擅长——以确认重建后的队列确实能按我们的要求运行。And obviously the kind of output that comes out of that is going to be different. Right. You give two agents the same task. They're never going to agree and do the same things. It's effectively nondeterminism and it's super hard to debug. We were testing with only a single worker. And obviously when there's a single worker you don't get into this state. And in prod, it was a very different story. In the end, we rewrote the queue entirely to handle this. So, we defined what was kind of a logical piece of work and which worker currently owned that. The team also did formal verification, which I'm not an expert in, to verify that the rebuilt queue did what we needed it to do.

预算和停止条件Budgets and stop conditions

所以这里的第五个部分是关于控制和预算的,也就是在事情开始失控时及时叫停。这里又有一个 PR。与我们上次看的那个 PR 不同,这次完成的工作要复杂得多。上次只是给 API 返回结果添加了一个字段,而这次则是为我们的某项功能(名称不清,字幕显示为“verifies”)添加了一系列新功能。结果这项工作持续了六天多。So fifth piece here is around control and budgets. So, actually stopping when things are going crazy. So we've got another PR again. The work done here, unlike the last PR that we looked at, is much more complex. The last one was just adding a field to an API result. This is a bunch of new functionality being added to our feature [name unclear, captioned as “verifies”]. So it ends up running over six days.

基本上没人盯着这件事,结果光是 token 就花了 800 美元。更糟的是,它最后甚至都没被合并,对吧?我们只是把它关掉了,因为里面全是一堆粗制滥造的内容。如果你觉得 105 条评论已经够糟了[前面的例子里是 106 条],那这个有 533 条。简直失控了。所以所有这些评论、所有这些讨论,基本上都是一堆机器人搞出来的,其中还包括一个运行在开发者电脑上的代理,它也在盯着这个 PR。No one really was like keeping an eye on this and racked up $800 spend in tokens. And then the worst thing is it didn't even get merged, right? We just closed it because it was a bunch of slop. And if you thought 105 comments were bad [106 in the earlier example], this one had 533. So it was going crazy. So all those comments, all that conversation was basically a bunch of bots, including an agent that was running on a developer's machine that was watching the PR as well.

那么这里到底发生了什么?我们犯了什么错?其实我们并不是完全没意识到这种情况可能会发生,对吧?我们总不至于直接让一堆机器人访问 GitHub,然后告诉它们放手去干,对吧?所以我们加了一个限制:机器人连续交互的次数最多为十次,而且我们觉得十次是个不错的数字。我们觉得,这样应该挺合理的。而且这个限制确实写在代码里。So what happened here? What was the mistake we made? Well, we were kind of like, not entirely oblivious to the fact that this might happen, right? We weren't just going to give a bunch of bots access to GitHub and say, go crazy, right? So we built in this limit of ten kind of bot interactions in a row, and we thought ten was a nice number. We thought, sure, that would make sense. And this was actually in the code.

这不只是上下文信息。代理可以绕过它。这就像一种硬编码的物理限制。因此,我们会在 GitHub 的讨论串中识别谁是机器人、谁是人类,并确保所有规则都得到遵守。但这里有两个问题。其一,这套逻辑本身有缺陷,不管用户是不是机器人。This wasn't just context. The agent can work its way around that. This is like a physical restriction that was hard-coded. And so we were detecting in the threads within GitHub who's a bot who's a human and kind of making sure that everything was being adhered to. But we had two issues here. One was that logic was flawed, whether the user was a bot or not.

这里没什么特别惊人的,只是一个简单的逻辑错误。因此,每当机器人发布评论时,它就能把那个计数器重置为零。显然,这就被解读成了人类的意图。也就是说,当时我们基本上没有任何防护措施。除此之外,正如我所说,负责这件事的开发者还在本地机器上运行着一个代理,而这个代理是以开发者本人的身份行事的。Nothing particularly amazing here. It was just a simple logic error. And so whenever the bot posted a comment, it was able to reset that counter back to zero. And so that ended up reading obviously as human intent. And so we basically had no guardrails at that point. On top of this, we also had the developer who is kind of owning this was running an agent locally on the machine, as I said, but it was acting on their behalf as a human.

所以它一直在 PR 里发评论,在我们的系统看来像是人类,但显然我们知道它不是人。那是 Claude 在盯着 PR 插话,你知道的,还火上浇油。真的。所以这种情况持续了六天,基本上都没人注意到。后来我们修复了机器人检测的问题,这算是一种解决办法。So it was posting into the PR, and it looked like a human to our systems, but obviously we know it wasn't a human. It was Claude watching the PR and chiming in and like, you know, pouring gasoline on the fire. Really. So yeah, this continued for six days, kind of unnoticed. And we fixed the issue with the bot detection, which was one way of fixing it.

我们真正想做、但目前还没做的,是开始考虑为一个工作项制定预算。也就是说,与其关注单独的轮次数量,不如实际考虑这到底要花我们多少钱?看看 token 的成本,以及 CI 运行之类的开销,然后据此制定预算。What we actually want to do, and we haven't done this yet, is actually start thinking about a budget for a work item. So rather than thinking about those individual number of turns, actually thinking about what is this actually costing us? So looking at the cost of the tokens, looking at the cost of things like CI runs. And budgeting against that.

我个人觉得,如果你有几个机器人或智能体在互相交谈,来回聊了 40 轮,但产出的结果不错、没有超预算,而且只花了你 5 美元,那就没问题,对吧?那为什么要试图限制这种互动程度呢?不过,是的,这就是我们打算朝着这个方向推进的方案,但我们还没完全做到。所以。I think personally, if you've got a couple of bots or agents talking to each other and they have 40 turns of talking to each other, but the work that's coming out is good and it's under budget and it's only costing you $5, then that's fine, right? Like, why try and limit that sort of like level of interaction? But yeah, this is our kind of plan that we want to move to, but we're not quite there yet. So.

要点:为人类打造的工具Key takeaways: tools built for humans

总结一下几个关键点。目前工厂正在推动的大多数事情,都是为有人坐在驾驶位上而设计的。对吧?比如看看 GitHub,GitHub Apps API 的设计方式就是,应用不能批准自己创建的 PR。因此我们有一个工厂应用,它会创建 PR、给内容添加标签,并处理这类事情,但由于 GitHub API 的限制,它无法自动批准自己创建的 PR。So some key takeaways. Most of everything that the factory is driving at the moment is designed for a human at the wheel. Right. So if you take a look at things like GitHub, for example, the way the GitHub Apps API is designed, they can't approve their own PRs. So we have a factory app, which is the thing that will create PRs and put labels on things and do all that kind of stuff, but it can't auto-approve its own PRs because of a limitation of the GitHub API.

他们从来没有按这样的思路设计过:“哦,这个应用安装过程中会运行五六个代理,所以我们应该启用这项功能。”像 CI 这类东西,每次推送都会完整运行一遍。我敢肯定,大多数人都是这样设置 CI 的。只是因为我们一直以来就是这么做的。我们就是,你知道,如果有人推送或提交代码,我们就会触发一堆自动化流程。They never designed it to think, “Oh, five or six agents will be running as part of this app installation, so we should enable that.” Things like CI, every push gets a full run. I'm sure most people just have CI set up this way. Just because it's the way we've always done it. We just, you know, if someone does a push or a commit, we just trigger a bunch of, like, automated processes.

为什么不把其中一些事情交给智能体,让它来决定什么时候运行 CI 呢?我觉得现在的模型已经足够好了,你知道,可以相信它们能做出不错的判断;也可以针对一些事情设置其他保护措施,比如在 main 分支上运行 CI。Anthropic 最近做了不少这方面的工作。几周前他们还发了一篇相关的博客文章,确实值得一看。Why not hand some of that stuff off to an agent and let it decide when it wants to run CI. I think these days the models are good enough that, you know, you could trust them to make a good judgment on that and maybe put in other protections around things like running CI on main, for example. Anthropic have done a bunch of this recently. They posted a blog post about this a couple of weeks ago. So definitely worth looking at.

还有像问题跟踪器这样的东西,对吧?传统的问题跟踪器通常只有一个受指派人。Linear 大概去年增加了委派给智能体的功能,这很酷,但为什么不能委派给三个智能体,或者混合使用几种不同的设置呢?对吧?所有这些限制之所以存在,是因为这些工具,以及我们正在使用的大多数工具,都是基于一个并非为智能体而设计的世界构建的。And then things like issue trackers, right? Traditionally issue trackers just have like one assignee. Linear added the ability to delegate to an agent like last year maybe, which is super cool, but why not delegate to like three agents or, a mixture of those different kind of settings? Right. Like all these restrictions are because these tools and most of the tools we're using have been built on a world that was not designed for agents.

没错。尤其是不能让大量编码代理始终高速并行工作。我接下来想简要谈谈自主性。今天我们讨论的所有内容,都让我们逐步建立起对这座工厂的信任。我们并没有从第一天起就把所有功能全都打开,让它去做我刚才提到的一切。我们是从小处着手的,对吧?先从一些简单的环节开始。随着我们逐渐确信这座工厂有能力做好这些事情,我们就赋予它越来越多的自主权,也能逐步放手。这意味着我们可以开始逐步左移和右移。Right. And especially not many coding agents working in parallel at speed all the time. The next piece I want to talk about briefly is just around autonomy. So everything we talked about today allowed us to earn a level of trust in the factory. We didn't just turn it all on from day one and let it just do everything that I talked about. We kind of started small, right? We started with some small elements. And as we kind of gained confidence that the factory was competent at doing those things, we gave it more and more autonomy and we were able to kind of step back more. This means that we can start kind of shifting left and shifting right.

所以从左移的角度来看,我们参与编写代码的程度开始降低了。我们在前期工单规划这类工作上投入得越来越多,但还可以进一步左移。作为一名工程师,我可以开始承担更多产品经理的职责。我可以让我的智能体连接到 PostHog 这类工具。我们用它做产品分析,并据此决定:这个功能到底值不值得开发?合理吗?会有人用吗?然后从右侧来看,考虑部署后的工作,比如在 QA 和生产环境中进行测试,或者更新文档——这些都是我不想再做的事。最后:So in terms of shifting left, we are starting to be less involved in the code. We are doing more and more work in that kind of upfront ticket planning, but we could shift even further left. As an engineer, I can start taking on more of the kind of product manager roles. I could start getting my agent to connect to things like PostHog, which we use for product analytics and making decisions about, should we even build this feature? Does it make sense? Will anyone use it? And then on the right hand side, thinking about stuff after it gets deployed, like doing testing in QA, in prod things, or maybe updating docs, things that I don't want to do anymore. And then lastly:

你凭直觉做的事情,都要记录在上下文中,并确保智能体能够访问这些上下文。没错。也就是说,把那些你作为人类会下意识去做的事情写下来,放进某个工具或技能中。这样,智能体就能在需要时访问并利用这些内容来解决问题。What you do by instinct, always record it in context and make sure that agents have access to that context. Right. So things that you just do instinctively as a human. Make sure it's written down. Make sure it's in a tool or a skill. And the agents can kind of access that and use that as needed to solve the problem.

这样你就不用总是重复自己说过的话了。就是这样,谢谢大家。我不太确定时间安排如何。我们稍微超时了,不过接下来马上有 30 分钟的咖啡休息时间。所以各位,欢迎上来提问。再给我们一轮掌声。不好意思,还有一件事。我还得稍微宣传一下。我们刚刚推出了全新的软件工厂。请扫描二维码。如果你注册时使用的是你在 DevCon 登记的邮箱,就能获得价值 500 美元的 Tessl 额度。也就是说,你可以免费使用智能体 token,开始上手体验。请大家试试看。谢谢大家。So you don't have to repeat yourself all the time. And that's it. Thank you. I'm not sure how we are on time. We're a little over, but we have a 30 minute coffee break right after this. So, guys, feel free to come up and ask some questions. Another round of applause. Please forgive me. One more thing. I've got to do a bit of a pitch. So we've obviously just launched our brand new software factory. Scan the QR code. If you go and sign up and use the email that you've registered with at DevCon, you will get $500 of Tessl credits. So basically free agent tokens and you can go and start just playing around with this. So, please have a go. Thanks, everyone.