章鱼总结
00:00 / 18:30

AI Engineer · 18:30

all right. hi, everyone. excited to be here. and today i'm going to chat about the evolution of software factoring, software engineering, and how it's becoming factory engineering. so excited to do this. first, a little bit about me. i've been an engineer for a long time. i was a principal engineer at google. i used to lead engineering on the google docs suite, helped scale that product to hundreds of millions of users. i'm currently the founder and ceo of warp. warp builds a platform for companies to build their own internal software factories. i'm going to show a little bit of that today. warp is also well known for our open source agentic terminal. it has about 65,000 github stars. it's used by almost a million developers. our mission has always been helping developers ship better software more quickly, and it's cool to evolve what we're doing as the world changes around us. this is where i think we're still mostly at. most developers that i talk to, most platform teams, they're working with individuals who are running their own. coding agents locally, maybe they're running multiple of them at a time. it could be through their terminal. it could be through an agentic development environment. just show of hands quickly, actually. how many people in here are mostly working in this fashion, local multithreading? okay, so still most people, but actually not everyone. i think that this is going to change and it's starting to change already. the reasons are, there's a few of them. so one is like if you are doing local interactive prompting as your main way of working with coding agents, you're kind of limited by human throughput really. like you cannot automate if every agent needs to be interactively prompted. there's a second reason, too, that i hear a lot from platform teams and from engineering leaders. this mechanism of everyone choosing their own local setup, their own models, their own skills, it makes it very hard to actually make sure that you're using these agents efficiently from a cost perspective and a productivity perspective. and then finally, there's a big security problem and governance problem when everyone is setting up and running their own local agents. and so the thing that is coming, i loosely call a software factory, that means different things to different people. i would, well, i'm curious for people in this room, like how many folks are currently trying to build or building or using their own internal software factories? show of hands. okay, so i would say that's almost more than the interactive agents at this point. that's super cool. so i'm going to define what i think of as a software factory, but i'll start by saying what i think a software factory is not.

好的。 大家好。 很高兴来到这里。 今天我将聊聊软件工厂化的演变,以及软件工程如何逐渐转变为工厂工程。 我非常期待这次分享。 首先,简单介绍一下我自己。 我做工程师已经很多年了。 我曾是 Google 的首席工程师。 我曾负责 Google Docs 套件的工程工作,帮助这款产品扩展到数亿用户。 我目前是 Warp 的创始人兼首席执行官。 Warp 构建了一个平台,帮助企业打造自己的内部软件工厂。 今天我会展示其中的一部分。 Warp 也因我们的开源智能体终端而广为人知。 它在 GitHub 上有大约 65,000 颗星。 有近一百万开发者在使用它。 我们的使命始终是帮助开发者更快地交付更好的软件,而随着周围世界的变化不断调整我们的工作方式,这感觉很酷。 我认为我们大多数人目前仍处于这个阶段。 我接触的大多数开发者和平台团队,都在与一些开发者合作,他们在本地运行自己的 编程智能体,或许还会同时运行多个。 他们可能是通过终端运行的。 也可能是通过智能体开发环境。 先快速举个手。 在座有多少人主要是以这种方式工作,也就是本地多线程? 好的,还是大多数人,但并不是所有人。 我认为这会改变,而且已经开始改变了。 原因有几个。 其中一个是,如果你主要通过本地交互式提示来使用编程智能体,效率实际上会受限于人的处理能力。 如果每个智能体都需要交互式提示,你就无法实现自动化。 还有第二个原因,我经常从平台团队和工程负责人那里听到。 每个人都选择自己的本地配置、模型和技能,这种方式使得人们很难确保智能体在成本和生产力方面得到高效利用。 最后,当每个人都在配置和运行自己的本地智能体时,会出现严重的安全和治理问题。 因此,接下来会出现的东西,我姑且称之为软件工厂,不同的人对它有不同的理解。 我很好奇,在座有多少人目前正在尝试构建、正在构建或使用自己的内部软件工厂? 请举手。 好,我觉得现在这几乎比使用交互式智能体的人还多。 这太酷了。 接下来我会定义一下我心目中的软件工厂,不过我会先说说我认为什么不是软件工厂。

i think it's not just a loose set of automations. i don't think of a software factory as a collection of ai teammates. i don't think it's a shared set of skills and mcps. and i also don't think software factories are personal agent swarms. i think these are all useful primitives, but they're not the end state that we should be shooting for. and so to me, the way that i define software factory is very specific. and i'll unpack this, but i define it as a code-defined. closed loop system for continuously measuring and improving cloud coding agents. so that's a mouthful, but let me unpack it. so if you want to build a software factory and really scale it, i believe the first thing you need to do is fully encode it in a declarative language. so you need to say, okay, these are all of the coding agents that i want to run. these are how they're triggered. when work comes into this factory, this is the workflow from triage to spec, whatever your workflow is. you need to specify what mcps are available, where your agents run, really as much as you can in a terraform-style declarative set of code files that define your factory. i'll talk about why this matters in a bit. the second part of it is a continuous closed loop of improvement. and that closed loop can look something like this. this is the typical one. this is just really the sdlc, where you have ideas that come in from people. they could come in from automated signals. and then your agents do some amount of work, taking that issue through various stages from triage to implementation. verification, monitoring, and so on. the important piece here is really this closed loop concept where the more that your agents run, the more efficient you can make this loop. and i'll talk about how you do that in a second. the third really key aspect, if you're building a software factory, is that everything needs to be measurable. if you're just going on vibes in terms of how you deploy coding agents, you can't be confident that you're actually getting the best, highest quality outputs at the best cost. you can't be confident you're maximizing throughput. so you really need a measurement mindset and measurement capabilities.

我认为它不仅仅是一组松散的自动化流程。 我不认为软件工厂是一群AI队友的集合。 我也不认为它是一套共享的技能和MCP。 我也不认为软件工厂是个人智能体集群。 我认为这些都是有用的基础构件,但它们并不是我们应该追求的最终形态。 所以对我来说,软件工厂的定义非常具体。 我会详细解释这一点,但我的定义是:一个由代码定义的 闭环系统,用于持续衡量和改进云端编码智能体。 这个定义有点拗口,让我解释一下。 如果你想构建一个软件工厂并真正扩大其规模,我认为首先需要用声明式语言完整地将其编码。 你需要明确:好,这些是我想运行的所有编码智能体。 这是它们的触发方式。 当工作进入这个工厂时,从分类处理到编写规格说明,整个工作流是怎样的,不管你的工作流是什么。 你需要指定有哪些 MCP 可用、智能体在哪里运行,并尽可能用一组 Terraform 风格的声明式代码文件来定义你的工厂。 我稍后会谈谈这为什么重要。 第二部分是持续改进的闭环。 这个闭环大致可以是这样的。 这是一个典型的例子。 这其实就是软件开发生命周期,人们提出各种想法。 这些想法也可能来自自动化信号。 然后,你的智能体会完成一定的工作,让这个任务经历从分类处理到实现的各个阶段。 还有验证、监控等等。 这里真正重要的是闭环的概念:智能体运行得越多,你就越能提高这个循环的效率。 我马上会讲怎样做到这一点。 如果你要构建一座软件工厂,第三个真正关键的方面是:一切都必须可衡量。 如果你部署编码智能体时只是凭感觉行事,就无法确信自己真的以最优成本获得了最好、质量最高的产出。 你也无法确信自己实现了最大的吞吐量。 所以,你确实需要具备衡量的思维和能力。

and so if there's one thing that i'm hoping people walk away from this talk with, it's the idea that the way to work with coding agents and the way to think about them is that there's a really cool fundamental new engineering problem, which is how do you take this magic new primitive that we all have that we've gotten in the last year, that you have these intelligent agents, and how do you engineer a system around them to use them most effectively? to me, it's not about like growing a garden or following a recipe. we're all engineers. we've spent our careers learning how to solve problems from an engineering mindset. and when you think of coding agents as a new engineering primitive, then you naturally want to, you'll naturally start to build a certain way of using them. That's the mindset. So yeah, just to unpack that a bit, so there's continual measurement and continual learning, but there's also a new set of tools. and so when i was learning how to become a better engineer at google, you know, i really had to get good at using things like debuggers and profilers and chrome dev tools. and basically, there are all of these tools of the trade for building software by hand that maybe are not as important now, but they really separated the best engineers from the okay engineers. and in the new world of factory engineering, there is a new set of tools that everyone should be trying to master. and so those are things like evals. can you set up self-improvement loops that work? can you write benchmarks? can you a-b test your factory? and that's a really important skill set. and mastering that skill set is something that i think of as like factory engineering. now, that doesn't mean that that's the only kind of engineering you're going to be doing. you're still going to be doing product engineering, meaning you as an engineer should still feel responsible for... You know, does the product you ship actually solve a real user or customer problem? But the best engineers, and I would say like every engineer really, is going to need to learn this new tool set of how do you improve the system, not just build the product.

如果我希望大家从这次演讲中带走一件事,那就是:与编码智能体协作以及看待它们的方式,在于认识到一个非常酷的全新基础工程问题:我们如何利用过去一年里获得的这种神奇的新基础能力,也就是这些智能体,并围绕它们构建一个系统,以最有效地使用它们? 对我来说,这不像是种花园或照着食谱做菜。 我们都是工程师。 我们的职业生涯一直在学习如何用工程思维解决问题。 当你把编码智能体看作一种新的工程基础能力时,你自然就会想要,也会开始建立一套使用它们的方法。 这就是这种思维方式。 好,稍微展开说一下:除了持续衡量和持续学习之外,还有一套新的工具。 当我在谷歌学习如何成为更优秀的工程师时,我确实必须熟练掌握调试器、性能分析器和 Chrome 开发者工具之类的工具。 基本上,手工构建软件有这样一整套专业工具,它们现在也许没那么重要了,但它们曾真正区分出顶尖工程师和普通工程师。 而在工厂工程的新世界里,有一套每个人都应该努力掌握的新工具。 其中包括评测之类的工具。 你能建立有效的自我改进循环吗? 你能编写基准测试吗? 你能对你的工厂进行 A/B 测试吗? 这是一套非常重要的技能。 掌握这套技能,在我看来就像是工厂工程。 当然,这并不意味着你只需要做这一种工程工作。 你仍然需要做产品工程,也就是说,作为工程师,你仍然应该对产品负责……比如,你交付的产品是否真正解决了用户或客户的问题? 但最优秀的工程师,我认为其实每一位工程师,都需要学习这套新工具,不只是构建产品,还要学会如何改进系统。

and so what does that look like? if you think from first principles about how do you engineer an agentic system, i think you come up with something like this. it doesn't have to be exactly this, but it's kind of an infrastructure stack that you're going to want to use to engineer your agents. and so at the bottom of this is what i call factories as code. i talked about this earlier. it's defining all of your coding agent workflows in a code format. the value of that is that you get the ability to branch off it and test different factory configurations. you can roll back. and then, crucially, it opens up the way for self-improvement, which is the ability for coding agents themselves to suggest changes to how your factory works to get that continual loop going. above that is a layer of data and context. this is also crucial. so if you are running coding agents at scale in an organization, you really must be recording everything that those agents are producing. so all of their conversations, all of their artifacts, the videos that they make, the screenshots. and the reason for doing that is that's the raw material that you will use to improve the way your factory works over time. on top of that is a compute layer. so you need to have sandboxing. sandboxing increases security. it makes your factory more repeatable. your sandboxing should be probably multi-platform. on top of that is the inference layer. the way that i would think about inference in models in a factory is they are a degree of freedom to test. and so your factory, however you build it, should support multiple models. it should also support multiple coding agents because, you know, Claude Code might be better for some things, codex, pi, warp. these harnesses all have different properties. you might want to write your own coding agent harness that has some of your organizational context baked in. so your platform should support that. on top of that, you need an orchestration layer. so this is what actually moves work through the factory. in some ways, the least interesting part, but you need that. and then finally, your factory should be all api and mcp first so that it can be used not just by. you know, people, but it can be used by other coding agents. and it can go to where the work is being done. so your factory should integrate into things like slack, linear, jira, github, and so on.

那么,这具体是什么样的呢? 如果你从第一性原理出发,思考如何构建一个智能体系统,我认为你会得到类似这样的东西。 它不一定要完全是这样,但这大致是你构建智能体时会用到的基础设施技术栈。 在最底层的是我称之为“工厂即代码”的东西。 我之前谈过这一点。 它是以代码的形式定义你所有编码智能体的工作流。 这样做的价值在于,你可以从中创建分支,测试不同的工厂配置。 你还可以回滚。 关键的是,它为自我改进开辟了道路:编码智能体本身可以针对工厂的运作方式提出修改建议,从而形成持续改进的循环。 再往上是数据和上下文层。 这也至关重要。 如果你在组织中大规模运行编码智能体,就必须记录这些智能体产生的所有内容。 包括它们的所有对话、所有产出物、制作的视频和截图。 这样做是因为,这些都是你随着时间推移用来改进工厂运作方式的原材料。 再往上是计算层。 所以你需要有沙箱隔离机制。 沙箱隔离能提高安全性。 它能让你的工厂更具可重复性。 你的沙箱隔离方案可能应该支持多平台。 在此之上是推理层。 我认为,在工厂中,模型推理是一个可以测试的自由变量。 因此,无论你如何构建工厂,它都应该支持多个模型。 它还应该支持多个编码智能体,因为你知道,Claude Code 可能更擅长某些任务,还有 Codex、Pi、Warp。 这些智能体运行框架各有不同的特性。 你可能想编写自己的编码智能体运行框架,将一些组织内部的上下文融入其中。 所以你的平台应该支持这一点。 在此之上,你需要一个编排层。 它负责让工作实际流经整个工厂。 从某种意义上说,这是最没意思的部分,但它是必需的。 最后,你的工厂应该全面采用 API 和 MCP 优先的设计,这样它不仅能供 你知道,人使用,也能供其他编码智能体使用。 而且它可以进入实际开展工作的地方。 所以你的工厂应该与 Slack、Linear、Jira、GitHub 等工具集成。

i'm going to give a quick demo of what some of these tools look like in the context of warp factories, but this stuff i'm going to show, i think, applies also if you're building your own. so let me start here. so at the foundation, i mentioned earlier, is factories in code. and so i'm going to show some code. it's not going to be that interesting, but if you're familiar with something like terraform, you will get what's going on here. you basically want a declarative way of saying, this is my factory. my factory has certain policies, it accesses certain repos. it has certain triggers. it has a sort of blueprint that defines the workflow of work going through it. and then if you zoom out, all of these other things that are part of the factory also have code definitions. The second thing, moving up a layer, is the idea that, sorry, that everything that you do in the factory. should be. tracked across your entire team. And so this think of think of what I'm showing here is this is a sort of Google Doc style live view of what every coding agent on Warp's team across all of our engineers are doing at all times. And so I could click in and I could see, okay, I don't know what Maggie is working on, but I know I could look at it. She's implementing Opus 5.5 on the high plan. She's doing it from Slack. it has this artifact. i could look in and see the actual conversation here. i could see what it's generated. and so i could see this in real time, which is cool. but the really important thing is that you gather all this information so that it can be used for improving the factory.

我会快速演示其中一些工具在 Warp 工厂中的样子,不过我认为,接下来展示的内容也适用于你自己构建工厂的情况。 那我就从这里开始。 正如我之前提到的,基础是以代码形式定义工厂。 所以我会展示一些代码。 这不会特别有趣,但如果你熟悉 Terraform 之类的工具,就会明白这里在做什么。 基本上,你需要用声明式的方式来描述:这就是我的工厂。 我的工厂有特定的策略,会访问特定的代码仓库。 它有特定的触发器。 它有一份类似蓝图的东西,定义了其中的工作流程。 然后,如果把视角拉远,工厂中的所有其他部分也都有代码定义。 第二点,再往上一个层级,是这样一个想法:抱歉,就是你在工厂里做的所有事情。 都应该被。 在整个团队范围内跟踪。 所以,你可以把我展示的这个看作一个类似 Google 文档的实时视图,随时显示 Warp 团队中所有工程师的每个编码智能体正在做什么。 我可以点进去看看,比如说,虽然我不知道 Maggie 在做什么,但我知道我可以查看。 她正在高档套餐上实现 Opus 5.5。 她是通过 Slack 做这件事的。 它生成了这个成果。 我可以点进去查看这里的实际对话。 我可以看到它生成了什么。 我可以实时看到这些,这很酷。 但真正重要的是,你收集了所有这些信息,以便用它们来改进工厂。

and so that brings me to the third thing, moving up the stack here, is once you have all of this information that's being stored centrally, you get the ability very easily without doing any like install stuff on everybody's laptop, anything like that, to understand how these coding agents are working. and you can think of that in terms of like traditional output metrics, like your dora metrics, like, okay, cycle time. but you can also think of that in terms of like how automated am i, like how many human interactions per pr, what's your throughput. you should be able to see data very clearly here on what's your cost. again, surfacing this, if you don't have this data, you're kind of flying blind. so this is really important. and then there's this next layer of data, which is also really important that i mentioned earlier, which is the ability to set up online evals. that run across all your coding agent sessions. and so what i mean by this, an eval is just like, as these coding agent sessions are running and they're recording their output, you want the ability to go back and have another agent look at them and score them on some dimension that might indicate how well they're doing. and to make that more concrete, so it's like we have an eval score here that we use that is looking for redundant tests. this is a good example. and so one common failure mode of coding agents is that sometimes they will write tests that are unnecessary. we want to catch that, and that's what this eval does. we want the ability then to see, okay, when it's writing too many tests, why is it doing that? and is there a mechanism that we could change in the factory for improving that? and so, again, just to kind of recap here, you want a way of recording all the runs. when these runs run, i didn't show this, but all of the runs are, you know, you want a way of specifying. what is the sort of like actual loop that they're running through? you want to be able to see where they are in that loop. as the runs work, you want to be able to gather their data. once you gather their data, you want to be able to set up these online evals. and then these online evals give you a sense of like, okay, where are there opportunities for improvement?

这就引出了第三点,继续往技术栈上层走:一旦所有这些信息都被集中存储,你就能非常轻松地了解这些编码智能体的工作情况,而不用在每个人的笔记本电脑上安装什么东西,或者做类似的事情。 你可以从传统产出指标的角度来考虑,比如 DORA 指标,像是周期时间。 但你也可以从自动化程度的角度来考虑,比如每个 PR 需要多少次人工交互,吞吐量是多少。 你应该能够在这里非常清楚地看到成本数据。 再说一次,把这些数据呈现出来很重要;如果没有这些数据,你基本就是在盲目行事。 所以这非常重要。 接下来还有一层数据,也非常重要,就是我之前提到的设置在线评估的能力。 这些评估会覆盖所有编码代理会话。 我的意思是,所谓评估,就是当这些编码代理会话运行并记录输出时,你需要能够回头让另一个代理查看这些记录,并按照某个可能反映它们表现的维度来评分。 说得具体一点,我们这里有一个评估分数,用来检测冗余测试。 这是个很好的例子。 编码代理常见的一种失败模式是,它们有时会编写不必要的测试。 我们希望发现这种情况,这正是这个评估的作用。 接下来,我们希望能够看出:当它编写了太多测试时,为什么会这样? 我们能否调整工厂中的某种机制来改善这一点? 再简单总结一下,你需要有办法记录所有运行过程。 这些任务运行时,我没有展示这一点,不过对于所有运行,你需要有办法指定: 它们实际执行的循环流程是什么? 你需要能够看到它们处在循环的哪个阶段。 在运行过程中,你需要能够收集数据。 收集到数据后,你需要能够设置这些在线评估。 然后,这些在线评估能让你大致了解哪些地方有改进的机会。

once you have that in place, you can do something that we call self-improvement, which is rather than having humans look at the outputs of these scorers, you have agents look at the output. and so the way to think about self-improvement is like it looks at the scorer output. it says, okay, we saw some number of failed runs. Um, let's try to look for patterns in those failures and suggest a possible solution. And then the form that that solution takes is. as a pr against your factory definition. and so this is like the awesome thing about having your factory defined as code and being able to use coding agents is that you can then have the coding agents diagnose problems with how they're working internally and suggest fixes to them.

建立好这一机制后,你就可以进行我们所说的自我改进:让智能体而不是人类来查看这些评分器的输出。 自我改进可以这样理解:它会查看评分器的输出。 它会说,好,我们发现有一些运行失败了。 嗯,我们来试着寻找这些失败中的规律,并提出一个可能的解决方案。 然后,这个解决方案所采取的形式是 针对你的工厂定义提交一个 PR。 把工厂定义为代码并使用编码智能体的好处就在于,你可以让编码智能体诊断其内部工作方式存在的问题,并提出修复建议。

the final tool that i'm going to point out that i mentioned earlier is the ability to create and run benchmarks. this is also essential. so if you're following discourse online, you'll often see things like, okay, this is the best model, this is the new best skill, this is the best harness. the only way to answer those questions for real is to test on your own data. and so you should have in place some mechanism. where you can basically create a benchmark set out of your real data and then replay those tasks. oops, i'm on the wrong one here. and replay those tasks against different configurations to see how they would have done if you had varied some model or varied some harness or varied your factory configuration. So just to make this clear. this is something that looks like what you might get when a new model drops, like in SWE-bench or terminal bench. it's showing the trade-offs of different models here in terms of cost and quality. you want to be in the upper left-hand quadrant, but it's on your own actual data. and you can test not just models, but also you want to be able to test, hey, if i got rid of these skills, does my factory perform better or worse? so these are some of the tools. and just to return to this big concept, like this has worked well for us. we have managed to use these tools to drastically improve our throughput and lower our cost. we are just constantly doing this because this cost really matters to us, where we're getting a performance baseline, we're scoring, we're benchmarking, we're testing. and we're doing factory engineering. and so that brings me back to this last point that i just want to emphasize again. engineer your agents. it's a new engineering primitive. we're all engineers. think about how you can get the most out of them and build the system for that. i think this is very exciting. i know there's a lot of like, angst around what it means to be an engineer right now. i know we're not writing code, but i'm still using all the engineering skills that i spent my whole career learning. and so to me, it's still a really exciting time. if you're interested in more factories, you can check it out here. thank you all for coming to the talk.

最后,我要指出的一个工具是我之前提到过的创建和运行基准测试的功能。 这也至关重要。 如果你关注网上的讨论,经常会看到诸如“这是最好的模型”“这是最新、最好的技能”“这是最好的运行框架”之类的说法。 真正回答这些问题的唯一方法,就是用你自己的数据进行测试。 因此,你应该建立一套机制, 让你基本上可以用真实数据创建一个基准测试集,然后重放这些任务。 哎呀,我这里选错了。 并用不同的配置重放这些任务,看看更换模型、运行框架或工厂配置后,它们的表现会如何。 为了把这点说清楚, 这看起来就像新模型发布时你可能会看到的 SWE-bench 或 Terminal Bench 测试结果。 这里展示了不同模型在成本和质量方面的权衡。 你希望结果位于左上象限,但这里用的是你自己的真实数据。 你不只能测试模型,还需要能够测试:如果我去掉这些技能,我的工厂表现会变好还是变差? 这些就是其中一些工具。 再回到这个大概念:这套方法对我们很有效。 我们成功利用这些工具大幅提高了吞吐量,降低了成本。 我们一直在做这些,因为成本对我们非常重要:建立性能基线、评分、进行基准测试和各种测试。 我们还在进行工厂工程。 这让我回到了最后一点,我想再次强调。 用工程方法打造你的智能体。 这是一种新的工程基本构件。 我们都是工程师。 想想如何充分发挥它们的作用,并为此构建系统。 我觉得这非常令人兴奋。 我知道现在很多人对于当工程师意味着什么感到焦虑。 我知道我们现在不写代码了,但我仍然在运用整个职业生涯中学到的所有工程技能。 所以对我来说,这仍然是一个非常令人兴奋的时代。 如果你对更多工厂感兴趣,可以在这里了解。 感谢大家来听这场演讲。

摘要

Warp 创始人 Zach Lloyd 认为,个人在本地交互式运行编码智能体,会受到人工吞吐量限制,也难以统一管理成本、安全和治理。他提出将软件工厂建设为代码定义、持续测量和改进云端编码智能体的闭环系统,并说明从工厂配置、运行记录和沙箱到模型、编排及集成的基础设施。演示涵盖团队实时视图、成本与吞吐指标、在线评估、由智能体提出改进 PR,以及用真实任务比较不同配置。核心价值在于将智能体视为工程系统,通过测量和实验持续提升效果,同时保留工程师对产品价值的责任。

章节

00:12 从本地编码智能体到软件工厂

Zach Lloyd 曾领导 Google Docs 工程团队,现任 Warp 创始人兼 CEO。多数开发者仍在本地交互式运行一个或多个编码智能体,但每个智能体都依赖人工提示会限制自动化和吞吐量;各自选择模型、技能和本地配置,也使成本效率、生产力、安全和治理难以统一管理。

本地交互式编码智能体受人工处理能力限制

03:14 代码定义、闭环和可测量性

Lloyd 将软件工厂定义为以代码定义、持续测量和改进云端编码智能体的闭环系统,而非松散自动化、AI 队友、共享技能或个人智能体群的简单集合。工厂应以类似 Terraform 的声明式代码指定智能体、触发条件、工作流、可用 MCP 和运行位置;工作从人工想法或自动信号进入,经过分诊、实现、验证和监控,再利用运行结果持续优化。质量、成本和吞吐量都需要测量,而不能仅凭感觉判断。

软件开发闭环中从问题分诊到实现的流程

05:43 工厂工程师的新工具与产品责任

编码智能体是新的工程基础组件,需要围绕它设计系统,而不是只学习提示技巧。工厂工程的新技能包括评估、自我改进循环、基准测试和 A/B 测试;工程师仍需承担产品责任,判断交付的产品是否真正解决用户或客户的问题。

工程师的新工具集:改进系统与构建产品

08:07 软件工厂的基础设施栈

基础设施以工厂即代码为底座,使配置可以分支测试、回滚,并让智能体提出修改。数据层记录对话、产物、视频和截图,作为改进素材;计算层使用沙箱提高安全性和可重复性。模型与智能体运行框架应可替换,以便按任务比较,也可纳入组织自建框架;编排层负责推动工作,API 和 MCP 则让人及其他智能体通过 Slack、Linear、Jira、GitHub 等入口使用工厂。

基础设施栈底层:工厂即代码
数据与上下文层
计算层
推理层
编排层

10:40 工厂配置与团队实时视图

Warp 的工厂配置采用声明式定义,涵盖策略、可访问的代码仓库、触发条件和工作流蓝图,其他工厂组件也有代码定义。团队实时视图集中展示各工程师的编码智能体活动,可查看任务入口、产物和实际对话;集中记录的重点是为后续改进工厂提供数据。

工厂代码中的策略与仓库配置
团队编码代理的实时视图
查看团队成员的任务详情
查看代理的实际对话

12:31 指标与在线评估

集中存储的运行数据可用于观察周期时间等 DORA 指标、人均每个 PR 的交互次数、吞吐量和成本。在线评估让另一个智能体检查运行记录并按特定维度评分,例如识别编码智能体编写的冗余测试,再追查原因并寻找工厂配置的改进机会。

编码代理成本数据
检测冗余测试的评估分数

14:58 通过 PR 实现自我改进

自我改进机制让智能体读取评估结果,从失败运行中寻找共同模式并提出解决方案。由于工厂本身由代码定义,建议可以形成针对工厂定义的 PR,使智能体能够诊断自身工作方式并建议修复。

以 PR 形式提出工厂定义的改进方案

15:51 用真实数据做基准并持续优化

选择模型、技能和运行框架时,应从组织的真实数据构建基准集,重放任务并比较不同模型、框架或工厂配置的成本与质量,也可测试删除某项技能后的效果。Lloyd 表示,Warp 持续建立性能基线、评分、跑基准和测试,已借此显著提高吞吐量并降低成本;他的最终建议是将智能体作为工程系统持续优化。

不同模型的成本与质量权衡
图表中理想的左上象限

结论

01:53 以人工交互为主的本地智能体工作方式限制吞吐量,也增加成本、安全和治理管理难度。

03:44 软件工厂应是代码定义、持续测量和改进云端编码智能体的闭环系统。

08:35 工厂即代码使配置可测试、可回滚,也让智能体能够通过 PR 提出自身工作方式的改进。

13:32 集中记录运行数据并开展在线评估,有助于发现质量、成本和自动化方面的改进机会。

16:07 模型、运行框架和工厂配置应使用组织自己的真实任务进行基准比较。

07:42 工程师需要学习改进智能体系统的新技能,同时继续对产品是否解决真实用户问题负责。