OctSum
00:00 / 20:24

AI Engineer · 20:24

Hi everybody, uh I'm Dex. This is 12 Factor Factories, uh which started as a joke title but then everyone started calling it that, so uh and the war on slop. Uh so thank you all for coming. Um I like to yap about coding agents on the internet and like a year ago we did the whole context engineering thing, uh a lot of views on YouTube and up until about a week ago, uh I was the CEO and co-founder at a company called Human Layer, uh the multiplayer coding agent workspace. Uh and for those of you who are blessed to not be uh quite as uh terminally online as uh some of us may be, uh we are now a part of Factory, which I'm very excited about and I will be touching on during this talk. but i want to get right into it. last summer was all about this, like, you know, three months ago, feels like forever. factories were all the hype. and i gave an intuition-based talk back in june of, like, we should probably still read the code. and here's how rl and verifiers are working. and, like, exactly as our friends at google were saying, you know, models really like just solving the tests, just getting them to pass. i now have some data beyond just that intuition. there's a benchmark called slop code bench, which we just released actually today, a bunch of new data on from the lab at university of wisconsin. but very unsaturated benchmark. you know, gpt 5.5 got a 15%. astra, i think, scored 16.3. so like, we are getting better at this, but there's a lot of ways to go. i'll talk all about that data in a sec. we, of course, have the study from faros of, you know, 30% of prs merging without review, longer comments, more comments, more incidents per pr, more bugs per developer. and i titled this talk, i don't think it was quite correct. i said, why software factories fail? and everyone said, oh, dex is the anti-software factory guy. dex hates software factories. i actually love software factories. i'm a huge fan. the title was probably more along the lines of, you know, there are certain things you could do in your software factory that would cause it to fail. and here's what those things, what i think those things might be. and, you know, please, please don't do them. maybe the dark factory thing. but i think the main takeaway here, and i think we've heard this from a lot of folks, is software factories is just good engineering. a friend of the pod, friend of the conference, lauren was talking about this yesterday, of like a lot of this is just stuff we've been doing for a long time. actually, eno from factory had a really, the post is much longer, but it's like the factory mindset is about how do we standardize our process, not just the output. and there's a whole bunch of stuff we'll dig into there on like how we're thinking about that. but i try to kind of make the same point, right? it's like. your standard software factory is going to look something like you have some engineers, some product managers, maybe a ceo or someone to drive the vision. and those people are going to come up with stuff that we want to build and they're going to put it in a tracker. this is, again, this is pre-ai. a lot of the things we hear about software factories today were around for 30 years, right? you take stuff off the tracker, you build it, you run some unit tests, automated tests. maybe you poke it locally. when you're ready, you make a pull request. At that point, someone might pull it down, interact with it, test it. Your CI is going to run a bunch of checks and static linters. And like none of this is like that new. And if anything is wrong with it, you send it back, you go fix the problems. And when it's actually ready to go to prod, we do some canaries and rollouts and feature flags and all kinds of fun stuff there. And eventually it makes contact with our users. And I love our users. I love customers. But they do like to complain about things that are broken and ask for stuff that we haven't built yet. and so that goes back to the team. and at some point, something breaks at three in the morning, and the customers are the first one to figure it out. so we had monitoring so that we can wake people up at three in the morning, and they can solve it before anybody notices. this is your pre-ai software factory.

大家好,呃,我是 Dex。 这是《12 Factor Factories》。呃,这原本是个玩笑式的标题,但后来大家都这么叫了。还有,呃,反对劣质代码之战。 呃,感谢大家前来。 嗯,我喜欢在网上聊编程智能体。大约一年前,我们做了整个上下文工程的内容,在 YouTube 上有很多播放量。直到大约一周前,我还是一家名叫 Human Layer 的公司的 CEO 和联合创始人。这家公司打造的是多人协作的编程智能体工作空间。 呃,对于那些有幸没有像我们有些人一样终日沉迷网络的各位来说,呃,我们现在已经加入了 Factory。对此我非常兴奋,也会在这场演讲中谈到。 但我想直接进入正题。 去年夏天大家都在聊这个。你知道,才三个月前,却感觉像是过了好久。 工厂式架构当时风头正盛。 今年六月,我做了一场基于直觉的演讲,大意是:我们可能还是应该读读代码。 还有强化学习和验证器是如何运作的。 而且,正如我们的谷歌朋友所说,模型真的很喜欢只解决测试问题,只要让测试通过就行。 现在,除了直觉之外,我还有一些数据。 有一个名为 Slop Code Bench 的基准测试,我们今天刚刚发布了它。威斯康星大学实验室带来了不少新数据。 但这个基准测试还有很大的提升空间。 你知道,GPT 5.5 得了 15%。 我记得 Astra 的分数是 16.3。 所以我们确实在这方面有所进步,但还有很长的路要走。 稍后我会详细讲讲这些数据。 当然,我们还有 Faros 的研究:30% 的 PR 未经审查就合并了;评论变得更长、数量更多;每个 PR 引发的事故更多,每位开发者遇到的漏洞也更多。 我给这场演讲起了这个标题,但我觉得这个标题不太准确。 我说,为什么软件工厂会失败? 然后大家都说,哦,Dex是那个反对软件工厂的人。 Dex讨厌软件工厂。 其实我很喜欢软件工厂。 我是它的超级粉丝。 标题大概更接近这个意思:你知道,在软件工厂里有些事会导致它失败。 下面就是这些事,也就是我认为可能导致失败的那些事。 所以,拜托,千万别这么做。 也许还有“暗黑工厂”这个概念。 但我觉得这里最重要的一点,而且我觉得我们也听很多人说过,就是软件工厂本质上只是良好的工程实践。 播客的朋友、会议的朋友Lauren昨天谈到了这一点:这里面很多东西,不过是我们长期以来一直在做的事。 其实,Factory的Eno有篇文章说得特别好,虽然文章长得多,但大意是:工厂思维关注的是我们如何规范流程,而不只是规范产出。 关于我们如何思考这一点,还有很多内容,我们会深入探讨。 但我试着表达的观点其实差不多,对吧? 就像…… 标准的软件工厂大概是这样的:有一些工程师、一些产品经理,可能还有一位CEO或其他负责推动愿景的人。 这些人会提出我们想要构建的东西,然后把它们放进任务跟踪系统里。 再说一次,这还是AI出现之前的情况。 如今我们听到的很多关于软件工厂的东西,已经存在30年了,对吧? 你从任务跟踪系统里拿出任务,把它做出来,然后运行一些单元测试和自动化测试。 也许你可以在本地试着操作一下。 准备好后,你就发起一个拉取请求。 这时,可能会有人把它拉下来,和它交互、测试它。 你的持续集成流程会运行一系列检查和静态代码分析工具。 而且这些都不是什么新鲜事。 如果有任何问题,你就把它退回来,然后去修复问题。 等它真正准备好上线时,我们会做一些金丝雀发布、逐步推出、功能开关之类的各种有意思的事情。 最终,它会接触到我们的用户。 我爱我们的用户。 我爱我们的客户。 不过,他们确实喜欢抱怨出问题的东西,也会要求我们做一些尚未开发的功能。 于是这些反馈又回到了团队。 而某个时候,凌晨三点出了故障,客户会最先发现。 所以我们设置了监控,这样凌晨三点就能把人叫醒,让他们在任何人发现之前解决问题。 这就是你们的前 AI 软件工厂。

and the basic point is like, all you need to do to make this agentic is replace someone builds the thing with an agent builds the thing. so you have orchestration. i'm not going to go into the details of the sandbox and the model and all this stuff. but you can incrementally build this up by adding what i'll call forward pressure. what causes work to start? can we take all of the feature requests and just route them straight to our factory? can we take all of the incidents that happen so that when i get paged at 3 in the morning, i'm looking at a pull request that we think is going to solve it, not just a stack trace about what went wrong. so the forward pressure, what causes new work to start, and back pressure, which is sort of like, okay, cool, now we can build things in minutes or hours. but the review and testing still takes hours or days if we're doing it in the old way. so we bring in agentic code review, agentic testing. anyone doing agents code reviewing their pull requests? okay. i thought it would be a little bit more, but that's pretty good. y'all are catching up. and then we invest heavily into our cicd and our linters and our, anyone doing like lean checks on their code, like formal verification? all right. hardcore. i like it. Um, through the back pressure. How do we let agents hill climb to a better outcome without needing to involve humans? How do we just overall increase the quality of what is coming out of our build step and agents help here? But a lot of what makes software factories good is stuff. We've kind of had for decades and just like context engineering, which was the thing that i was talking about last summer and like june of 2025, there was all these ideas of like rag and memory and state and history and all this stuff and. we tried to distill out what are the timeless things that go into building agents. and so i want to distill out now some of what i think are the timeless things that go into building and designing a software factory. because there's a lot of noise and hype. like i said, terminally online, twitter is going to break your brain if you spend too much time wondering what everyone else is doing. i'm also going to talk about slop because i have a very fun project that i've been working on with swix and a couple, a handful of other speakers here. but we'll get to that later. Um, we're going to do 12 great practices for software factories. And I think the first time I started talking about this, it was only like nine, but we are at 12 now, so I'm very excited about this. Um, I touched on this, but loops was this concept that was very in vogue. I think this is much more useful if you think about the, uh, interplay of forward pressure and back pressure. Um, so, you know, again, very hyped up, but the actual tactical thing is like, how do you start work automatically and how do you make sure that whatever comes out and is touched by a human by the end, all the low-hanging stuff is already fixed, the outcome is as good as it can be, uh, autonomously. Uh, number two, I will call know your enemy.

基本要点是,要让这一切具备智能体能力,你只需把“由人来构建”换成“由智能体来构建”。 这样你就有了编排机制。 我不会深入讲沙箱、模型以及这些东西的细节。 不过,你可以通过逐步加入我称之为“向前推动力”的东西来构建这一套系统。 是什么让工作开始? 我们能不能把所有功能需求都直接送到我们的工厂? 我们能不能把发生的所有事故都纳入流程,这样凌晨三点我被呼叫时,看到的是一份我们认为能解决问题的拉取请求,而不只是说明出了什么问题的堆栈跟踪? 所以,前向压力,也就是促使新工作开始的因素;还有反向压力,大概就是:好,现在我们几分钟或几小时就能构建出东西了。 但如果我们还沿用老办法,审查和测试仍然要花几个小时甚至几天。 所以我们引入智能体代码审查和智能体测试。 有人在用智能体审查自己的拉取请求吗? 好。 我还以为会更多一点,不过这已经很不错了。 你们正在迎头赶上。 接下来,我们会在 CI/CD、代码检查工具上投入大量资源。有人会对代码做精益检查吗?比如形式化验证? 好。 够硬核。 我喜欢。 嗯,通过反向压力。 我们怎样才能让智能体自主不断改进,达到更好的结果,而不需要人类介入? 总的来说,我们怎样才能提高构建步骤的产出质量?智能体能在这方面提供帮助吗? 不过,优秀的软件工厂所依赖的很多东西, 其实我们几十年来就一直在用。就像上下文工程一样,这是我去年夏天,也就是2025年6月左右谈到的话题。当时有很多想法,比如 RAG、记忆、状态、历史记录等等。 我们试着提炼出构建智能体所依赖的那些历久弥新的要素。 所以现在,我想提炼出一些我认为构建和设计软件工厂所依赖的历久弥新的要素。 因为噪音和炒作太多了。 就像我说的,长期沉迷网络。要是你花太多时间琢磨别人在做什么,Twitter 会把你的脑子搞坏。 我还要聊聊“垃圾内容”,因为我和 Swix 以及这里另外几位演讲者一起做了一个特别有趣的项目。 不过我们稍后再说这个。 嗯,我们要讲软件工厂的 12 条优秀实践。 我记得第一次开始聊这个时,大概只有九条,但现在已经有 12 条了,所以我对此非常兴奋。 嗯,我提到过这个,但“循环”曾是一个非常流行的概念。 我觉得,如果你从正向推动力和反向压力之间的相互作用来思考,这会有用得多。 嗯,你知道的,这个概念又被炒得很热,但真正的实操问题是:如何自动启动工作?又如何确保最终交由人类查看的成果中,那些容易解决的问题都已经修好,并且自主完成的结果尽可能好? 嗯,第二条,我称之为“了解你的敌人”。

I will still posit that uh unattended uh models don't do a great job of maintaining and improving codebase quality over time. So if you care about having a system that's gonna be still maintainable in three or six months, um, I mean again, I gave this talk, I said please read the code because a lot of it is slop. Uh, agents got really good at solving one-off problems and making video games and blender slop and all this stuff. Uh, I don't think, you know, if you steer a model to fix your codebase, it can go fix your codebase. But then you have to know what is there and what you want. Uh, so if you are just. hands off pushing features into the machine, you may not find that it autonomously will make things better over time. back then, i didn't have a benchmark. now i have a benchmark that basically has the model solve problems in checkpoints. like a model can clone all of excel or redis in a couple days, maybe even a couple hours now with like agent swarms. but that requires knowing the entire problem in advance. and most of us don't write software that way. most of us ship a feature and then ship another feature and then ship another feature. And if you're building by hand without AI, along the way you say, oh, that's a bad abstraction. We need to centralize this. We need to remove this. And so this is a benchmark that measures a model's ability to evolve a code base over time. And so Astra, again, is sixteen percent very unsaturated. There's a bunch of data here. I probably don't have time to look at all of it, but we can look at code quality metrics like cyclomatic complexity, lines per symbol, the percentage of functions that have high complexity. There's more. There's two hundred custom rules. Fifty of them are based on things we've been doing for a while. A lot of them are custom based on looking at code that models right. comparing it to pre-ai repos. i wrote a long article about, i wrote a bunch. gabe orlansky, who runs the lab that does this benchmark, just put up this paper today based on some of the research we did with them. there's a bunch of stuff in here. i probably don't have time to go through all of it, but they also test the model's ability to design good libraries and interfaces. the craziest one here is like, models did learn to use exceptions instead of returning tuples in python. there was a lot of patterns that were identified as like probably not great that were way less present in the, you know, six months ago models than they are in today's models. so it almost feels like we're like, the slop is amplifying over time. and claude and glm are now writing python 3 in python 2 style. so we have, you know, percent s format strings are back and they will not use f strings by default anymore. things to be aware of, you may not care about this, i care about this. the jury's still out on fable 5.2. i love reading the anthropic blog post about how to prompt the new models. and so allegedly, if you tell fable it owns the code base, it should keep it clean. i haven't tested this yet. we're running the benchmark in the background right now. but for those of us not building fbs games, shouts out to ben, built a cool game. you should go watch this video. it's insane. you should know your enemy. you should understand that like, Work with this in mind that if you need your code base to last a long time or your code base has been around for a long time, we should probably maintain understanding of the system and the code.

我仍然认为,无人值守的模型并不擅长随着时间推移维护和提升代码库的质量。 所以,如果你在意这个系统三个月或六个月后依然易于维护,嗯,我再说一次,我当时做这个演讲时就说过:请阅读代码,因为其中很多都是垃圾内容。 嗯,智能体在解决一次性问题、制作电子游戏、生成 Blender 垃圾内容,以及诸如此类的事情上,已经变得非常厉害。 嗯,我不是说你引导模型去修复代码库,它就不能把代码库修好。 但你得知道代码库里有什么,以及你想要什么。 嗯,所以如果你只是…… 不加干预地把功能丢给机器,你可能会发现,它并不会随着时间推移自主地把事情做得更好。 那时候我还没有基准测试。 现在我有了一个基准测试,基本上是让模型在各个检查点解决问题。 比如,借助智能体群,一个模型现在几天内就能克隆出整个 Excel 或 Redis,甚至可能只要几个小时。 但这需要事先了解整个问题。 而我们大多数人并不是这样编写软件的。 我们大多数人会发布一个功能,再发布另一个功能,然后再发布一个功能。 如果你不用 AI、亲手构建软件,过程中你会说:哦,这个抽象设计得不好。 我们需要把它集中起来。 我们需要把它删掉。 所以,这是一个用来衡量模型随时间演进代码库能力的基准测试。 所以,Astra 的表现又是 16%,远远没有饱和。 这里有一大堆数据。 我可能没时间全部看完,不过我们可以看看代码质量指标,比如圈复杂度、每个符号的代码行数,以及高复杂度函数所占的比例。 还有更多内容。 这里有 200 条自定义规则。 其中 50 条基于我们长期以来一直在做的事情。 其中很多是自定义规则,是通过观察模型编写的代码制定的。 并将其与 AI 出现前的代码库进行比较。 我写过一篇很长的文章,还写过不少东西。 负责这项基准测试实验室的 Gabe Orlansky,今天刚发布了这篇论文,内容基于我们与他们合作开展的一些研究。 这里面有很多内容。 我可能没时间全部讲完,不过他们也会测试模型设计优质库和接口的能力。 这里最让人惊讶的一点是,模型确实学会了在 Python 中用异常,而不是返回元组。 很多被认定为可能不太好的模式,在六个月前的模型中远没有如今这么常见。 所以感觉就像是,糟粕在随着时间不断放大。 现在 Claude 和 GLM 都在用 Python 2 的风格写 Python 3 了。 所以,百分号 s 格式化字符串又回来了,它们默认不再使用 f 字符串了。 有些事情需要注意,你可能不在乎,但我在乎。 Fable 5.2 目前还没有定论。 我很喜欢看 Anthropic 关于如何给新模型编写提示词的博客文章。 据说,如果你告诉 Fable 代码库归它所有,它就会把代码库保持整洁。 我还没测试过这一点。 我们现在正在后台运行基准测试。 不过,对于我们这些不做 FBS 游戏的人来说,向 Ben 致敬,他做了个很酷的游戏。 你应该去看看这个视频。 太疯狂了。 你应该了解你的对手。 你应该明白这一点:如果你需要代码库长期维护,或者代码库已经存在很久了,我们就应该持续理解整个系统和代码。

To do this, we like to plan before we build. I highly encourage this. You should do this. We used to do this before in this old software factory. People realize, especially when building things took hours or days and when testing and reviewing things took hours or days, even if this part is faster, this part is probably still slow if you're doing it properly, we would have architecture review. and we would have sprint planning, and we would talk as a team, and we would align in the hopes that we might decrease the percent chance that we'd have to rework something later. we wanted to be rather sure that we're building the right thing in the right way before we actually go and spend time building it, time and tokens, and then get to review and have to rework it. a lot of people overdo this as well. i've overdone this for sure, where you spend six hours working on a spec, and you're like, i feel like i could have just yolo'd this. because sometimes you can just yolo a two-sentence prompt, and if it's small, you don't care. there's maybe a 50% chance you send a couple more prompts, and then it's good. you could spend five hours handwriting a detailed spec, and maybe there's a 10% of it you have to change afterwards. or you could write all the code by hand in 20 hours, and then there's like a 0% chance. well, there's 0% chance you have to rework it because of something the agent did. you know, people still make mistakes too. but i think about this in terms of expected pain. like, how likely will this have to change later? times how hard will it be to change. i don't argue with the model during planning about what color the button is going to be, but i do want to make sure we get our database schemas right and stuff like that, because it's really hard to change later. so based on your problem and what you're doing and your code base, you should probably decide where on this spectrum you want to land.

为此,我们喜欢先规划,再动手构建。 我强烈建议这么做。 你应该这么做。 以前在那家老软件工厂里,我们就这么做。 人们会意识到,尤其是在构建东西需要几小时甚至几天、测试和审查也需要几小时甚至几天的时候:即使这一部分变快了,如果做得规范,这一部分可能仍然很慢;我们会进行架构审查。 我们会进行冲刺规划,团队一起讨论并达成共识,希望能降低之后不得不返工的概率。 我们希望在真正花时间和 token 把东西做出来、再拿去评审并返工之前,能相当确定自己正在用正确的方式构建正确的东西。 很多人也会在这方面做得太过。 我肯定也做过头了:花六个小时写规格说明,然后心想,我是不是直接随便来就行了。 因为有时你只要随手写个两句话的提示词就行了;如果事情很小,你也不在乎。 可能有 50% 的概率,你再发几个提示词就搞定了。 你可以花五个小时手写一份详细的规格说明,但之后可能有 10% 的内容需要改。 或者你也可以花 20 个小时手写全部代码,那样返工的概率大概是 0%。 嗯,因为智能体做了什么而导致你不得不返工的概率是 0%。 当然,人也会犯错。 但我会从预期痛苦的角度来考虑这件事。 比如说,之后需要改动的可能性有多大? 再乘以改起来有多难。 规划时,我不会跟模型争论按钮要用什么颜色,但我确实想确保数据库架构之类的东西是正确的,因为以后改起来真的很难。 所以,根据你的问题、你在做的事情以及你的代码库,你大概应该决定自己要在这个光谱上的哪个位置。

aligned visually, i published a skill called show me, which is optimized for instead of reading walls of text, you get html mockups, you get tables, you get charts, you get all this stuff that is optimized for the human brain, which is very visual. we've been, i think coda said, we've been running away from predators and eating fruit for millions of years. we've only been reading text for about 5,000. anyways, you can get this. it's got about 40,000 installs. you should help agents test their work, screenshots, browsers, videos, curl, whatever you can do to help the agent. again, hill climb against an outcome. Given if you're building an IOS app, make sure it can build, run, and test that app in whatever environment it's running.

视觉上保持一致。我发布了一个叫 Show Me 的技能,它经过优化:你不用读一大堆文字,而是能看到 HTML 模型、表格、图表,以及各种针对人类大脑优化的内容,因为人类大脑非常依赖视觉。 我想 Coda 说过,我们数百万年来一直在躲避捕食者、吃水果。 而我们阅读文字也不过才大约 5,000 年。 总之,你可以试试这个。 它已经有大约 40,000 次安装了。 你应该帮助代理测试它们的成果:截图、浏览器、视频、curl,能做什么就做什么,尽量帮助代理。 再说一次,围绕某个结果不断改进。 如果你在开发 iOS 应用,就要确保它能在运行环境中构建、运行和测试。

You should fight slop with anyone here writing in TypeScript. Okay, some people are feeling lazy. I feel like it should be more than that, but this is a repo from dylan mulroy, who's a principal engineer cloudflare anti-slop. If you haven't, if you're not using this, you should go check it out. It's 100 ish rules on like stopping agents from building slop factory. Also has an eslint plugin that i should probably mention and also again the you can go slop fork. All of the python code quality rules out of slop code bench. This this exists for your language, you should use it. slop is a tool. not all slop is bad. vibe coding, prototypes, side projects. if you have something behind a feature flag, you just need to figure out if people even want it before you go put in the time.

你应该打击任何在这里用 TypeScript 写代码的人产出的劣质内容。 好吧,有些人开始偷懒了。 我觉得它应该不止这些,不过这是 Dylan Mulroy 的一个代码仓库,他是 Cloudflare 的首席工程师,致力于反对劣质代码。 如果你还没用过这个,不妨去看看。 里面大约有 100 条规则,讲的是如何阻止代理造出劣质代码工厂。 它还有一个 ESLint 插件,我大概也该提一下;另外,你也可以去 fork Slop。 Slop Code Bench 里所有关于 Python 代码质量的规则。 如果你的编程语言也有这样的工具,就应该用起来。 劣质代码也是一种工具。 并非所有劣质代码都不好。 氛围编程、原型、个人项目。 如果有个功能藏在功能开关后面,你只需要先弄清楚大家到底想不想要它,再决定是否投入时间开发。

i think it's great. i don't think there's always, always, always, always every line of code has to be perfect. you should give models a feature plugging system, post-hog or statsig or launchdarkly or whatever it is, so they can try stuff and see if it performs better and then make decisions about what the right thing to be in your tool. you should compound over time, eval everything, learn from past sessions, and you should unify your forge. what i mean by this is, you know, we used to send git patches around on mailing lists. i think linus and the linux people still do this, but most people keep all their code in github. and so before the ana to forge, we have centralized patches, but we still have people pasting like claude answers back and forth in slack, and hopefully like... not doing too many rounds of that because it's like i copy out of mine and send it to my coworker, he pasted it into his agent, and then they send it back to me, and then i paste it into my agent, and maybe we get an answer. so like centralizing all of your designs and decisions and like whatever you have in like notion and google docs and whatever it is, should like, you should try to bring those things as close as possible together so you can understand not just the code about what something was built, but all the decisions that went into it.

我觉得这很棒。 我不认为每一行代码都必须永远、永远、永远、永远完美无缺。 你应该给模型提供一个功能开关系统,比如 PostHog、Statsig、LaunchDarkly 之类的,让它们尝试不同方案、看看表现是否更好,然后决定什么才适合放进你的工具里。 你应该让成果随着时间不断累积,评估一切,从过去的会话中学习,并统一你的 Forge。 我的意思是,你知道,我们以前会在邮件列表上互相发送 Git 补丁。 我觉得 Linus 和 Linux 社区的人现在仍然这么做,但大多数人把所有代码都放在 GitHub 上。 所以,在 Ana to Forge 之前,我们有集中管理的补丁;但大家还是会在 Slack 里来回复制粘贴 Claude 的回答。希望这种来回折腾的次数别太多,因为有时候就是我从自己的智能体那里复制出来发给同事,他把内容粘贴到他的智能体里,然后他们再发回给我,我再粘贴到我的智能体里,最后也许能得到一个答案。 所以,把所有设计、决策,以及你放在 Notion、Google Docs 或其他地方的内容集中起来——你应该尽量把这些东西整合到一起,这样你理解的不只是某个东西是怎么构建的代码,还包括其中做出的所有决策。

you can't buy everything. i think there's things in this space that just cannot be productized. obviously, you can buy vms or you can bring your own. dev environment, i think, is very personal to most teams. the harness, of course, you can go get a frontier harness or you can use something minimal like open code or pi and customize the heck out of it. and then you have this control plane picture of like, how do you collaborate on sessions and plans? how do you do automations and scheduling? how do you respond to events? all this governance stuff. part of the reason i'm really excited to be working with factory on all this stuff is like, they have a much bigger view of this picture and have a lot more stuff solved here. but there are parts, especially at the top here, is like, i don't think anyone can sell you verification of your code. because only you know, if you have hundreds of engineers and hundreds of repos, you have those opinions and you know how to test your code. not just a black box you can buy. there are building blocks that are undifferentiated. but the idea of software factory, i think, is a way of thinking about our work.

不是所有东西都能买到。 我觉得这个领域里有些东西就是无法产品化。 显然,你可以买虚拟机,也可以自带虚拟机。 我觉得开发环境对大多数团队来说都很个人化。 至于智能体运行框架,你当然可以去找一个前沿的框架,也可以使用 Open Code 或 Pi 这样简洁的工具,然后随心所欲地定制。 然后你就有了这样一个控制平面:如何协作处理会话和计划? 如何进行自动化和排期? 如何响应事件? 还有所有这些治理方面的事情。 我特别期待与 Factory 合作做这些事情,部分原因是他们对这幅图景有更全面的认识,也已经解决了其中更多的问题。 但有些部分,尤其是这里的顶层部分,我觉得没有人能卖给你代码验证服务。 因为只有你自己知道——如果你有数百名工程师和数百个代码仓库,你们会有自己的判断,也知道如何测试自己的代码。 这不是一个你可以直接买来的黑盒。 有些基础组件并没有差异化。 但我觉得,“软件工厂”这个概念是一种思考我们工作的方式。

so that's software factories. i also want to talk about slop. factories are about how do we increase human leverage, right? how do we get the best return on our time? and i've talked a little bit about why humans should be involved and what it means to be a diligent steward of what we're building and what we're doing. but i think it's bigger than just software. so i'm very excited to announce the anti-slop manifesto. which you can go, if you go to slopmanifesto. com, you can read it. i'll put their url up later. but we built this in collaboration with a lot of people here, both attendees and speakers. special shouts out to swix and philip. it has signers from zoominfo and i think xai and OpenAI. and like, there's a lot of cool people on there. i encourage you to go read it and check it out and be a part of, you know, but i'll tell you what's in it. we value outcomes over outputs. we value understanding over speed. we value our own thinking over whatever the model came up with as a first draft. we value better work over easier work. we value improving the system over just patching outputs. and the things we believe are that ai is the most useful tool most of us have ever worked with. but it can create a swarm of agents can produce more work in a single day than a human can review in their entire career. look at some of the math stuff coming out of OpenAI. slop is when we put less effort into producing something than we ask their consumer on the other end to spend understanding it. and using ai doesn't necessarily make something slop, but it happens when we pass off ai output without taking responsibility for its quality or for the reader's experience. i believe strongly, i've been saying this for a year now, ai cannot replace human judgment. it can only amplify our judgment or maybe perhaps our lack of judgment in certain cases. and the slop is asymmetric. the cost of producing a thousand line pr or a 10 page doc is approaching zero. but the cost of reviewing it is still fairly constant. and slop proliferates when we repeatedly work around problems instead of solving them correctly. it comes from tools that love to add. And are not biased towards subtracting. I'm not going to name names. But I think a lot of slop comes from pressure. Companies are pushing their people to redefine what is humanly possible. And I think slop compounds. So the more slop sits in our knowledge base, in chat, in code, the more of it the next agent reads and copies. And the more slop flying around our team, the more we lose the will to fight it. And everything gets worse over time. Communication and quality and all of this.

这就是软件工厂。 我还想谈谈低质内容。 工厂关乎的是如何提升人类的杠杆效应,对吧? 我们怎样才能让时间获得最佳回报? 我稍微谈过为什么应该有人类参与,以及作为我们正在构建和开展之事的尽责守护者意味着什么。 但我认为这不只关乎软件。 所以我非常激动地宣布《反垃圾宣言》。 你可以去 slopmanifesto, com 上阅读它。 我稍后会把网址放出来。 不过,这是我们和这里的许多人共同合作完成的,他们既有与会者,也有演讲者。 特别感谢 Swix 和 Philip。 签署者来自 ZoomInfo,我想还有 xAI 和 OpenAI。 而且,上面还有很多很棒的人。 我鼓励你去读读看、了解一下,并参与其中。你知道,不过我来告诉你里面写了什么。 我们看重成果,而非产出。 我们看重理解,而非速度。 我们看重自己的思考,而非模型给出的初稿。 我们看重更好的工作,而非更轻松的工作。 我们看重改进系统,而非只是修补输出。 我们相信,AI 是我们大多数人用过的最有用的工具。 但一群智能体在一天内产出的工作量,可能超过一个人在整个职业生涯中所能审阅的量。 看看 OpenAI 最近推出的一些数学相关内容。 所谓垃圾内容,就是我们在制作某样东西时投入的精力,少于我们要求另一端的消费者花在理解它上的精力。 使用 AI 并不一定会产出垃圾内容,但如果我们把 AI 的输出直接拿来交差,却不为它的质量或读者的体验负责,那就成了垃圾内容。 我坚信这一点,我已经说了一年了:AI 无法取代人类的判断力。 它只能放大我们的判断力,或者在某些情况下放大我们缺乏判断力的程度。 而垃圾内容的影响是不对称的。 制作一份千行的 PR 或一份 10 页的文档,成本正趋近于零。 但审阅它的成本依然基本不变。 当我们一再绕过问题,而不是正确地解决问题时,垃圾内容就会泛滥。 它源自那些热衷于添加内容的工具。 却不会倾向于删减。 我就不点名了。 但我觉得,很多垃圾内容都是压力造成的。 公司正逼着员工重新定义人类能力的极限。 而且我觉得,垃圾内容会不断累积。 所以,知识库、聊天记录和代码里堆积的垃圾内容越多,下一个代理读取并复制的垃圾内容也就越多。 团队里流传的垃圾内容越多,我们就越失去抵制它的意愿。 一切都会随着时间推移变得更糟。 沟通、质量,以及所有这些方面。

so, we, the undersigned of the anti-slop manifesto, guys, is it a little hot in here? i might just have to pop off the jack. there we go. they couldn't give me one of these with a factory logo on it yet, but i'm sure it's coming soon. thus, we, the anti-slop undersigners, resolve that human time and attention is incredibly valuable. so we optimize for using it wisely. we fight slop because ai should make our work better, not just easier. we optimize our systems and tools and products for the efficient elicitation of human intent and for efficient human understanding. and we do our own thinking when working with a model. we explore resources, code, prior art. we really want to understand the problem before we actually get to work. and we own the intent and the taste and the consequences of what we ship. however much ai helps us to make it, we own it. and when an agent wrote something that we're sending somebody, we make that clear. and we actually make sure it's good before we drop it in slack or email or whatever it is. and when someone sends us slop, this is also like we have to push back. we have to tell people, you know, kindly, empathetically, and ask them to like review it first. and most of us, it's a journey. i've been on both sides of this one.

那么,我们这些《反垃圾内容宣言》的签署者,伙计们,这里是不是有点热? 我可能得把千斤顶取下来。 好了。 他们现在还没法给我一个带厂商品牌标志的这种东西,不过我相信很快就会有。 因此,我们这些反对垃圾内容的联署者决议:人的时间和注意力极其宝贵。 所以,我们要优化使用方式,让它们发挥价值。 我们反对垃圾内容,因为人工智能应该让我们的工作变得更好,而不只是更轻松。 我们优化自己的系统、工具和产品,以便高效地 eliciting 人的意图,并让人高效地理解信息。 与模型协作时,我们也会自己思考。 我们会探索相关资源、代码和已有成果。 我们真的希望先弄清楚问题,再开始动手。 而且,对于我们发布的东西背后的意图、品味和后果,我们都要负责。 无论人工智能帮了我们多少忙,成果都由我们负责。 如果是智能体写了我们要发给别人的内容,我们会明确说明。 而且,在把内容发到 Slack、电子邮件或其他地方之前,我们会确保它确实不错。 有人给我们发来垃圾内容时,我们也得对此提出异议。 我们得友善、体贴地告诉他们,并请他们先检查一遍。 对我们大多数人来说,这都是一个循序渐进的过程。 这件事上,我两边都经历过。

so i've had to have that note. i believe there will always be alpha in reviewing something. as models get better, we may stop reading most of the code. we may still review a plan or a design or a result. but if you don't review anything, if you bring nothing to the table, no thinking, then you're just going to get the same ai output as everybody else. agent reviewers, linters, verifiers, they're very useful, but they are not sufficient. so for now, we'll still review some subset of the outputs. what subset, of course, depends on the stakes. but what shipped, who's using it, and how it's helping them matters far more than lines of code or prs merged or, god forbid, the number of agents we're running in parallel. it's cool if it gets you to the outcome. but unreviewed output isn't always necessarily bad. you know, slop is a cool one-shot prompts, vibe coding. these are all like high leverage things that are in the right place. slop is bad when it undermines our outcome. if we want to make a good product, a maintainable system, we want to save people time and energy. if slop undermines that, then it's bad. and i guess finally, like none of us has this figured out. we're each relearning what we will and won't accept, and there's no single right answer here. you've got to calibrate yourself. the world moves fast. my goal here is these are principles that we can use to embrace our important human role in harnessing ai safely, responsibly, in a way that creates value for everyone for many years to come. so you can read and sign the manifesto at slopmanifesto. com. tldr, you know, give a shit. care about what you're doing. i'm going to stick around for tariq's talk, but then, what is that slide? all right, i'll be hanging in the hallway afterwards. come say hi. keep learning. keep giving a shit. i'm excited to keep building with y'all. thank you so much.

所以我也收到过那样的提醒。 我相信,审阅任何东西始终都能发现新的价值。 随着模型越来越好,我们可能会停止阅读大部分代码。 我们可能仍会审查计划、设计或结果。 但如果你什么都不审查,拿不出任何东西,也不思考,那你得到的就只会是和其他人一样的 AI 输出。 智能体审查器、代码检查工具和验证器都很有用,但光靠它们还不够。 所以目前,我们仍会审查部分输出。 当然,审查哪些内容取决于风险大小。 但真正发布了什么、谁在使用、它如何帮助他们,这些都远比代码行数、合并的 PR 数量,或——但愿别这样——我们并行运行的智能体数量重要得多。 只要它能帮你达成目标,那就很棒。 不过,未经审查的输出也不一定总是不好。 你知道,“slop”这个词挺酷的,一次性提示、氛围编程也是。 这些都是杠杆效应很高、用在恰当场景里的做法。 当“slop”损害我们的成果时,它才是坏的。 如果我们想打造好产品、构建易于维护的系统,并为人们节省时间和精力, 那如果“slop”损害了这些目标,它就是坏的。 最后我想说,我们谁都还没完全弄明白这件事。 我们都在重新摸索自己能接受什么、不能接受什么,这里没有唯一正确的答案。 你得为自己找到合适的尺度。 世界变化很快。 我的目标是提出一些原则,让我们能发挥重要的人类作用,安全、负责任地驾驭 AI,以创造价值,并让所有人受益多年。 所以,你可以在 slopmanifesto 阅读并签署这份宣言。 com。 长话短说,你懂的,要真正在乎。 在乎你正在做的事。 我会留下来听塔里克的演讲,不过,接下来那张幻灯片是什么? 好吧,之后我会在走廊里待着。 过来打个招呼吧。 继续学习。 继续用心在乎。 我很期待继续和大家一起建设。 非常感谢。

Overview

Dex Horthy 将软件工厂视为良好工程实践的延伸:用智能体承担构建工作,同时通过自动化启动任务、测试、审查和质量门槛形成前向与后向压力。他以 Slop Code Bench 的低分说明,模型擅长解决已知问题,却未必能长期维护逐步演进的代码库,因此团队仍需理解系统、在高风险处先规划,并帮助智能体验证成果。演讲还提出以 lint 规则、功能开关、评估和统一工作上下文抑制质量退化,并通过反垃圾宣言强调:AI 输出不必然是垃圾,关键在于人是否对质量、理解成本和交付后果负责。

Chapters

00:12 软件工厂是良好工程,智能体接替的是构建环节

软件工厂并非全新概念,而是标准化流程的工程实践:团队把工作放进任务追踪器,构建功能,运行单元测试和自动化测试,再经拉取请求、人工测试、CI 与静态检查,修复问题后通过灰度、分阶段发布和功能开关上线,并用监控发现故障。将流程智能体化,核心变化是把“由人构建”替换为“由智能体构建”,其余工程环节仍然重要。用户反馈、线上故障和质量控制构成了持续迭代的闭环。

Slop Code Bench 的 GPT 5.5 基准分数
Faros 研究中 PR 未经审核合并的数据及相关工程指标
从任务跟踪器取出事项并进入构建、测试与发布的软件流程

03:55 前向压力与后向压力,让任务启动和质量收敛自动化

工厂的前向压力决定新工作如何开始:可以把功能请求直接送入流程,也可以在凌晨发生事故时生成待审的修复拉取请求,而不只是提供堆栈信息。后向压力则处理智能体快速产出与人工审查、测试仍需数小时甚至数天之间的落差,因此要引入智能体代码审查和测试,并强化 CI/CD、lint 与形式化检查。目标是让智能体能够针对结果持续改进,尽可能在人工介入前修好低垂果实。

概括前向压力启动工作与后向压力提升产出质量的自动化目标

06:28 理解模型局限:代码库演进基准仍显示明显短板

Horthy 认为,无人值守的模型还不擅长长期维护和改善代码质量;一次性解决问题,不等于能在连续增加功能的过程中识别坏抽象并重构。Slop Code Bench 通过多个检查点衡量代码库演进能力,演讲举例称 Astra 得分为 16%,并称基准仍远未饱和。评测检查圈复杂度、每个符号的行数、高复杂度函数比例、约 200 条自定义规则及库和接口设计。模型虽在部分模式上有所进步,但演讲也观察到旧式 Python 写法回潮等现象,因此长期项目仍需人理解代码库并明确希望它变成什么样。

基准测试中 Astra 的得分数据
代码质量指标列表
模型在 Python 库设计中的模式变化

09:28 先规划,但按返工风险决定投入多少

规划和架构讨论可以降低方向错误导致的返工,但并非每件事都值得写长规格。Horthy 用“预期痛苦”权衡:后续变更有多大可能发生,以及变更有多难。两句提示可能足以处理小功能;数据库结构等难以修改的决定,则值得在构建前充分对齐。规划过度同样有成本,例如花六小时写规格后,可能发现直接尝试更合算;应依据问题规模、代码库情况和改动成本选择规划深度。

用预期返工代价衡量规划投入

11:01 用视觉呈现和实际运行结果帮助智能体验证

为便于人理解方案,可以让智能体生成 HTML 模型、表格和图表等视觉材料,而不是只交付大段文本。验证也应尽量贴近实际使用:提供截图、浏览器、视频或 curl 等手段,让智能体围绕预期结果反复改进;例如开发 iOS 应用时,应确保它能在相应环境中构建、运行和测试。

HTML样稿、表格和图表等视觉呈现
关于人类演化的比喻性说明
文字阅读历史的时间对比
指向所介绍的内容
展示约4万次安装的数据

11:39 用 lint 规则约束垃圾代码,也要区分场景

对抗代码质量退化,可以把规则写进 lint 和语言专用工具。演讲举例介绍了一个约有 100 条规则的 TypeScript 反垃圾代码仓库,以及 ESLint 插件;Slop Code Bench 的 Python 质量规则也可作为工具使用。但“slop”并非一概有害:原型、个人项目和用功能开关验证需求的代码,可以允许不完美。关键不在于每行代码都无瑕疵,而在于质量是否损害最终结果。

规则数量的核心信息

12:20 功能开关、评估与统一工作上下文

功能开关和产品分析工具可以让模型尝试不同方案,再依据表现判断什么更适合产品。团队还应持续积累评估结果,从过往会话中学习,并把设计、决策和代码放在尽可能靠近的工作环境中。若设计散落在 Notion、Google 文档,代码在 GitHub,而智能体答案在 Slack 中来回复制,协作者就难以理解实现背后的决策;集中上下文有助于保留这些信息。

集中设计与决策信息,形成统一工作上下文

13:25 可购买构建模块,但代码验证依赖团队自身判断

虚拟机、开发环境、智能体运行框架以及协作和自动化控制面,都可以购买、采用现成方案或自行定制;但开发环境往往具有团队个性。真正无法简单商品化的是代码验证:拥有大量工程师和代码仓库的组织,必须依靠自己的规范、判断和测试方法确认代码质量。软件工厂因此不仅是工具组合,也是一种组织工作方式。

代表核心观点:代码验证依赖团队自身判断

14:19 反垃圾宣言:重视结果、理解与人的判断

反垃圾宣言提出,重视结果胜过产出数量、理解胜过速度、独立思考胜过照搬模型初稿,并应改善系统而非只修补单次输出。宣言将 slop 定义为:生产者投入的精力少于接收者理解内容所需的精力。使用 AI 本身不会让成果必然变成 slop;当人不为输出质量和读者体验负责时,问题才出现。其风险具有不对称性:生成千行 PR 或十页文档的成本趋近于零,审阅成本却相对恒定;反复绕开问题、偏爱新增而不善于删减,也会让 slop 在知识库、聊天和代码中累积,供后续智能体复制。

反垃圾宣言强调重视成果而非产出
对 slop 的核心定义
强调人工判断不可被 AI 替代
说明内容生产成本下降而审核成本仍在
说明 slop 会在团队知识与代码中累积传播

17:00 承担输出责任,并对团队中的低质量内容友善地反馈

宣言认为人的时间与注意力十分宝贵,工具和流程应帮助有效表达人的意图、提升人的理解。与模型协作时,仍要主动研究问题、检查资源、代码和既有方案,并对意图、品味及交付后果负责。把智能体生成的内容发给他人时应说明其来源,并在发送前确认质量;收到未经检查的内容时,也应友善、体谅地请对方先审阅。AI 能放大人的判断,也可能放大判断力的缺失。

承担交付内容的意图、品味与后果

18:15 审查仍有价值,按风险选择检查范围

随着模型进步,人们或许不必阅读大部分代码,但仍可审查计划、设计或结果;如果完全不投入思考,就只会得到和所有人相同的 AI 输出。智能体审查、lint 和验证器很有用,却不足以取代人的判断,实际需要审查哪些输出应由风险决定。衡量价值应关注交付了什么、谁在使用、它如何帮助用户,而不是代码行数、合并的 PR 数或并行运行的智能体数量。slop 的判断标准是它是否损害产品、可维护性或为他人节省时间;团队需要持续校准,没有适用于所有场景的唯一答案。

强调审查范围应根据风险高低来选择

Conclusions

02:12 软件工厂的核心是标准化良好工程流程,并让智能体承担构建工作,而不是省略测试、审查和上线控制。

06:28 智能体能快速解决明确的问题,但长期维护代码库仍需要人理解系统、判断抽象并规划难以逆转的决策。

16:11 生成成本下降而审阅成本相对稳定,因此人必须对 AI 输出的质量和读者理解成本负责。

18:35 智能体审查、lint 和验证器不能完全替代人的判断,审查范围应根据交付风险确定。

18:48 评价软件工厂应看交付成果及其对用户的帮助,而不应把代码行数、PR 数量或并行智能体数量当作主要目标。

12 Rules for a Software Factory That Doesn't Ship Slop — Dex Horthy, Factory · Video Summary · OctSum