读见

Dex Horthy 谈软件工厂的 12 项实践:如何守住 AI 代码质量

原题12 Rules for a Software Factory That Doesn't Ship Slop — Dex Horthy, Factory

约 17 分钟原文英文已翻译

视频由 YouTube 提供

看前速览

3 个要点

Dex Horthy 讲解如何让编码智能体自动接手任务,同时用规划、测试和分级人工评审维护代码库。

  1. 自动接单后,验证也要跟上

    故障和功能请求可以触发智能体,测试和持续集成应在人工介入前发现容易修复的问题。

  2. 按返工风险决定规划深度

    Horthy 比较短提示、详细规格和手写实现,用修改按钮颜色和修改数据库结构说明返工代价为何相差很大。

  3. 保留决策依据,并评审影响重大的工作

    用原型、浏览器测试和静态规则提供反馈,把决策记录放在代码附近,按风险决定评审计划、设计还是结果。

完整摘要

Dex Horthy 认为,软件工厂沿用了许多已有的工程实践。智能体可以在故障出现时起草修复,但验证也要跟上。他引用 Slop Code Bench 上约 15% 和 16% 的成绩,建议根据返工风险决定规划深度,让智能体验证实际产物,用静态规则约束常见坏写法,并记录代码变动背后的决策。他还借《反低质产出宣言》强调,人仍要评审影响重大的工作,确认上线功能能否真正帮助用户。

章节

文字稿

查看原文

简要描述Brief Description

Dex Horthy 探讨了如何围绕现有工程实践构建软件工厂,并通过基准测试、规划、测试、代码检查规则和人工审查,确保智能体生成的工作易于维护。Dex Horthy discusses how to build a software factory around existing engineering practices, using benchmarks, planning, tests, lint rules and human review to keep agent-generated work maintainable.

目录Table of Contents

  • 12 因子工厂与反垃圾内容之战
    12 factor factories and the war on slop
  • 低质代码基准测试:最佳模型得分 16%
    Slop Code Bench: the best model scores 16%
  • 软件工厂不过是优秀的工程实践。
    Software factories are just good engineering
  • 正向压力和背压
    Forward pressure and back pressure
  • 软件工厂的 12 项实践
    12 practices for software factories
  • 知己知彼:模型不会维护代码
    Know your enemy: models don't maintain code
  • 构建前先规划
    Plan before you build
  • 进行视觉对齐,并让智能体测试
    Align visually and let agents test
  • 用 lint 规则对抗低质内容
    Fight slop with lint rules
  • 功能开关、评测与统一的 Forge
    Feature flags, evals and a unified forge
  • 你买不到的东西
    What you can't buy
  • 反低质内容宣言
    The Anti-Slop Manifesto
  • 为什么审查仍然重要
    Why reviewing still matters

12 因子工厂与反低质内容之战12 factor factories and the war on slop

我是 Dex。标题《12 因子工厂》起初只是个玩笑,但后来大家都这么叫它。一年前,我还在谈上下文工程。大约一周前,我还是 HumanLayer 的 CEO 兼联合创始人。HumanLayer 是一个供编程智能体使用的多人协作工作空间。我们现在已成为 Factory 的一部分。去年夏天,软件工厂风头正盛。I'm Dex. The title, 12 Factor Factories, started as a joke, but everyone started calling it that. A year ago I was talking about context engineering. Until about a week ago, I was CEO and co-founder of HumanLayer, a multiplayer workspace for coding agents. We're now part of Factory. Last summer, software factories were all the hype.

Slop Code Bench:最佳模型得分为 16%Slop Code Bench: the best model scores 16%

我在六月做过一次基于直觉的演讲,大意是我们可能还是应该读代码,并介绍了 RL 和验证器是如何运作的;就像 Google 的朋友们所说的,模型真的很喜欢只去解决测试、让测试通过。现在,除了直觉之外,我还有了一些数据。我们刚刚发布了一个名为 Slop Code Bench 的基准测试,实际上就在今天,来自威斯康星大学实验室的一批新数据也一并发布了。不过,这个基准测试还远未饱和:GPT-5.5 得分为 15%,Astra 我记得是 16.3%。所以我们确实在这方面有所进步,但还有很长的路要走。我马上会详细聊聊这些数据。当然,我们还有 Pharos 的研究:30% 的 PR 在未经审查的情况下就被合并了;评论更长、数量更多;每个 PR 引发的事故更多,每位开发者引入的 bug 也更多。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 a lot of ways to go. I'll talk all about that data in a sec. We of course have the study from Pharos of you know 30% of PRs merging without review, longer comments, more comments, more incidents per PR and more bugs per developer.

软件工厂不过是优秀的工程实践。Software factories are just good engineering

我给这场演讲起的标题,我觉得不太准确。我说的是《软件工厂为何会失败》。大家都说:“哦,Dex 是反软件工厂派。Dex 讨厌软件工厂。”其实我很喜欢软件工厂,是它的忠实拥趸。标题或许更应该是这样的:你知道,在软件工厂里,有些做法会导致它失败。下面就是我认为可能会导致失败的做法,请大家尽量别这么做。也许还包括“暗工厂”这种做法。不过我认为这里最重要的一点是,而且我觉得我们也听很多人提到过:软件工厂说到底就是良好的工程实践。Lauren 昨天也谈到了这一点:很多做法其实我们早就用了很久。And I titled this talk I don't 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 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 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. Lauren was talking about this yesterday of like a lot of this is just stuff we've been doing for a long time.

其实你知道,Factory 那边有一篇很……那篇文章要长得多,不过核心是,工厂思维关注的是如何标准化我们的流程,而不只是标准化产出。我们还会深入探讨很多相关内容,比如我们是如何思考这个问题的。但我想表达的观点大致相同,对吧?标准的软件工厂大概是这样的:有一些工程师、一些产品经理,也许还有一位 CEO 或其他负责推动愿景的人。这些人会提出我们想要构建的东西,然后把它们放进一个跟踪系统里。再说一次,这还是 AI 出现之前的情况。如今我们听到的很多关于软件工厂的说法,其实已经存在 30 年了,对吧?你从跟踪系统里拿出任务,着手构建,运行一些单元测试、自动化测试,也许还会在本地手动试一试。Actually, you know, 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.

准备好后,你会发起一个拉取请求。这时,可能会有人把它拉下来、与之交互、进行测试。你的 CI 会运行一大堆检查和静态代码检查器,这些都不是什么新鲜事。如果有任何问题,就把它退回去,然后修复问题。等它真正准备好上线时,我们会做一些金丝雀发布、逐步推出、使用功能标志,还有各种有意思的操作。最终,它会接触到我们的用户。我爱我们的用户,也爱客户,但他们确实喜欢抱怨出故障的东西,也会提出我们还没开发的功能需求。于是这些反馈又会回到团队。某个时候,凌晨 3 点会有东西出故障,而客户往往是第一个发现的。所以我们做了监控,这样凌晨 3 点我们就能把人叫醒,让他们在其他人察觉之前解决问题。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 3:00 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 3:00 in the morning and they can solve it before anybody notices.

这就是你在 AI 出现之前的软件工厂,核心意思是,要让它具备智能体能力,你只需要把负责构建的人员换成一个智能体。This is your pre-AI software factory, and the basic point is like all you need to do to make this agentic is replace the person doing the build with an agent.

正向压力与背压Forward pressure and back pressure

这样你就有了编排。但你可以通过逐步加入我所说的“前向压力”来构建这一套机制。是什么让工作开始?我们能不能把所有功能请求直接路由到我们的工厂?能不能把所有发生的事故都纳入其中,这样凌晨 3 点我被呼叫时,看到的是一个我们认为能解决问题的拉取请求,而不只是一段说明出了什么问题的堆栈跟踪?这就是前向压力:是什么促使新工作开始?还有背压,简单来说就是:好,现在我们可以在几分钟或几小时内构建东西,但如果还按老办法来,审查和测试仍然要花上几小时甚至几天。所以我们引入智能体式代码审查和智能体式测试。So you have orchestration. 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:00 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.

有人在用智能体审查自己的拉取请求吗?好吧。我还以为会更多一点,不过这已经挺不错了。你们正在赶上来。然后我们在 CI/CD、代码检查器,以及 Lean 这类形式化验证工具上投入了大量资源。好。够硬核。我喜欢。那说到背压,怎么才能让智能体不断迭代、逐步找到更好的结果,而不需要人类参与?我们怎样才能全面提升构建步骤产出内容的质量?智能体在这方面能帮上忙,但软件工厂之所以优秀,很多时候靠的是一些我们几十年来就一直在做的事情。就像上下文工程一样,我去年夏天,大概 2025 年 6 月的时候聊过这个话题。当时有各种各样的想法,比如 RAG、记忆、状态、历史记录之类的,我们试着从中提炼出构建智能体时那些历久弥新的要素。Anyone doing agent agents code reviewing their pull requests? Okay. I thought it would be a little bit more, but that's pretty good. Y'all are y'all are catching up. and then we invest heavily into our CI/CD and our linters and tools like Lean for formal verification. All right. Hardcore. I like it. so the back pressure. How do 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 a thing that I was talking about last summer in 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 like distill out what are the timeless things that go into building agents.

软件工厂的 12 项实践12 practices for software factories

在构建和设计软件工厂时,有一些经久适用的做法,因为周围有太多噪音和炒作。就像我说的,长期泡在网上会让人脑子出问题;如果你花太多时间琢磨其他人在做什么,Twitter 会把你搞疯。我还会聊聊 slop(低质量生成内容),因为我最近和 Swyx 以及现场另外几位演讲者一起做了一个特别有趣的项目。不过我们稍后再谈这个。我们要讲 12 条软件工厂的优秀实践。我想我第一次开始聊这个话题时,只有九条左右,但现在已经有 12 条了。所以我对此非常兴奋。我之前提到过,循环(loops)这个概念曾经非常流行。我觉得,如果你从前向压力和反向压力之间的相互作用来思考,会更有用。There are durable practices in 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 Swyx and a couple handful of other speakers here. but we'll get to that later. 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. 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 interplay of forward pressure and back pressure.

如何自动启动工作,并确保在交由人工处理之前,简单的问题都已解决?How do you start work automatically and make sure the easy fixes are already done by the time it reaches a human?

知己知彼:模型不会维护代码Know your enemy: models don't maintain code

第二点,我称之为“了解你的敌人”。我仍然认为,放任模型自行运行,并不能很好地长期维护和提升代码库质量。所以,如果我们希望系统在三个月或六个月后仍然易于维护,我的意思是,我之前做这场演讲时就说过,请阅读代码,因为其中很多都是粗制滥造的东西。智能体现在很擅长解决一次性问题、制作电子游戏、生成 Blender 垃圾内容,以及各种类似的东西。我不认为你只要引导模型去修复代码库,它就能把代码库修好。但你得先知道代码库里有什么,以及你想要什么。所以,如果你只是撒手不管,把功能需求一股脑塞给机器,那你可能会发现,它并不会自主地随着时间推移让事情变得更好。number two, I will call know your enemy. I will still posit that unattended models don't do a great job of maintaining and improving codebase quality over time. So if we care about having a system that's going to be still maintainable in three or six months, I mean, again, I gave this talk and I said please read the code because a lot of it is slop. Agents got really good at solving one-off problems and making video games and blender slop and all this stuff. 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. 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.

那时候我没有基准测试。现在我有了一个基准测试,基本上是让模型在各个检查点解决问题。比如,模型可以在几天内克隆出整个 Excel 或 Redis;现在有了智能体集群,甚至可能只要几个小时。但这要求事先知道整个问题是什么。而我们大多数人写软件并不是这样。我们大多数人会先发布一个功能,再发布另一个功能,然后再发布一个功能。如果你不用 AI、手动构建软件,过程中就会说:“哦,这个抽象设计得不好,我们得把它集中起来,或者把它删掉。”所以,这个基准测试衡量的是模型随着时间推移演进代码库的能力。Astra 的得分还是 16%,离饱和还差得很远。这里有很多数据。我可能没时间全部看完,不过我们可以看看代码质量指标,比如圈复杂度、每个符号对应的代码行数,以及高复杂度函数所占的比例。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 or we need to remove this. And so this is a benchmark that measures a model's ability to evolve a codebase over time. And so Astra again is 16% 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.

还有更多。这里有 200 条自定义规则,其中 50 条是基于我们长期以来一直在做的事情,很多则是我们通过查看模型编写的代码,并将其与 AI 出现前的代码仓库进行比较后定制出来的。我为此写过一篇很长的文章,也写了不少相关内容。负责这项基准测试的实验室由 Gabe Orlanski 运营,他今天刚发布了这篇论文,内容基于我们和他们一起做的一些研究。这里面还有很多东西。我可能没时间全都讲一遍,不过他们也测试了模型设计优质库和接口的能力。这里最、最离谱的一点是,模型确实学会了在 Python 中使用异常,而不是返回元组。有很多模式被认定为可能不太理想,而这些模式在六个月前的模型中出现得少得多,在如今的模型中却更常见。There's more. There's 200 custom rules. 50 of them are based on things we've been doing for a while and a lot of them are custom based on looking at code that models write, comparing it to pre-AI repos. I wrote a long article about it. I've written quite a bit on this. Gabe Orlanski 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 most 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, 6 months ago models than they are in today's models.

所以感觉就像我们在逐渐发现,垃圾内容会随着时间不断放大。Claude 和 GLM 现在写 Python 3 时,竟然采用 Python 2 的风格。所以你知道,`%s` 格式字符串又回来了,而且它们默认不再使用 f-string 了。这些都是需要留意的事。你可能不在乎这个,但我在乎。Fable 5.2 目前还没有定论。我很喜欢读 Anthropic 关于如何提示新模型的博客文章。据说,如果你告诉 Fable 它负责这个代码库,它就会让代码保持整洁。我还没测试过。我们现在正在后台运行基准测试。不过,对于我们这些不做 FBS 游戏的人来说,向 Ben 致意。他做了个很酷的游戏。你应该去看看这个视频,太疯狂了。你应该了解你的对手。你应该明白,如果你希望代码库能长期维护,就得始终了解整个系统和代码。So it almost feels like we're like learn 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. So 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 posts about like how to prompt the new models. And so the allegedly if you tell Fable it owns the codebase, 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 codebase to last a long time, you should keep an understanding of the system and the code.

构建之前先做好规划Plan before you build

为此,我们喜欢先规划再构建。我强烈建议这样做,你也应该这样做。以前在这家老软件工厂里,我们就常常这么做。人们会意识到这一点,尤其是在构建东西需要数小时或数天、测试和审查也需要数小时或数天的时候。即使这一部分变快了,如果你做得规范,这一部分可能还是很慢。我们会进行架构评审和迭代规划,也会作为团队一起讨论、达成共识,希望能降低之后不得不返工的概率。在真正投入时间去构建之前——投入时间和 token——我们希望相当确信自己正以正确的方式构建正确的东西,这样之后进入评审时才不必返工。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.

很多人也会这样。我肯定也有过头的时候:花六个小时写规格说明,然后心想,我感觉直接莽一把也行啊。因为有时候你确实可以只写两句话的提示词,直接莽;如果事情比较小,你也不在乎。可能有 50% 的概率,你再多发几个提示词,然后就搞定了。你可以花五个小时手写一份详细的规格说明,但之后可能有 10% 的内容需要修改。或者你也可以花 20 个小时手写所有代码,这样的话……嗯,你有 0% 的概率需要因为智能体做了什么而返工。当然,人也会犯错。不过我会从预期痛苦的角度来考虑这件事:之后需要修改的可能性有多大,乘以修改起来有多难?A lot of people 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 yoloed this. because sometimes you can just yolo two sentence prompt, and if it's smaller, 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's going to be, but I do want to make sure we get the database schemas right, because they're 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.

进行视觉对齐,并让智能体进行测试Align visually and let agents test

为了在视觉上保持一致,我发布了一个名为 Show Me 的技能。它的设计思路是:与其阅读大段文字,不如直接查看 HTML 模型、表格、图表以及各种内容——这些都针对人类大脑进行了优化,因为人类大脑非常擅长处理视觉信息。我想,Coda 说过,我们数百万年来一直在躲避捕食者、采摘水果,而阅读文字不过才大约 5,000 年。总之,你可以试试这个技能。它大约有 40,000 次安装。你应该帮助智能体测试它们的工作成果:截图、浏览器、视频、curl,凡是能帮到智能体的都可以。To align visually, I published a skill called Show Me, which is like optimized for instead of reading walls of text, you get HTML mockups, you get tables, you get charts, you get all this stuff that, you know, is optimized for the human brain, which is very visual. we've been I think Coda said you know, 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.

智能体可以逐步迭代,以达成目标。如果你正在开发 iOS 应用,请确保它能够在自身环境中构建、运行和测试该应用。The agent can iterate toward an outcome. If you're building an iOS app, make sure it can build, run, and test that app in its environment.

用 lint 规则对抗低质量代码Fight slop with lint rules

有人在用 TypeScript 写代码吗?好吧,有些人有点懒。我觉得应该不止这样,不过这是 Dylan Moroy 的一个仓库,他是 Cloudflare 的首席工程师。叫 Anti Slop。如果你还没用过这个,应该去看看。里面有大约 100 条规则,能防止智能体生成一堆垃圾代码。Factory 也有一个 ESLint 插件,我应该顺便提一下。还有,你可以把 Slop Code Bench 里所有 Python 代码质量规则都 fork 出来。你的编程语言也有对应的工具,应该用起来。slop 是一种工具。不是所有 slop 都不好。氛围编程、原型、个人项目都可以。如果你把东西放在功能开关后面,只是想先搞清楚大家到底想不想要它,再决定要不要投入时间。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 Moroy, who's a principal engineer at 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 So, you can go slop fork all of the Python code quality rules out of slop code bench. 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 like figure out if people even want it, before you put in the time.

功能标志、评估与统一的 ForgeFeature flags, evals and a unified forge

原型代码的每一行都不必完美。你应该给模型配备一个功能开关系统,比如 PostHog、Statsig、LaunchDarkly 之类的,让它们可以尝试各种东西,看看效果是否更好,然后据此决定你的工具里应该采用什么方案。你应该随着时间不断积累经验,评测一切,从过去的会话中学习。你还应该把整个开发流程整合起来。我的意思是,你知道,我们过去会在邮件列表里互相发送 Git 补丁。我想 Linus 和 Linux 社区的人现在可能还这么做,但大多数人都把代码放在 GitHub 上。我们已经把代码补丁集中起来了,但大家仍然会在 Slack 里来回复制粘贴 Claude 的回答——希望来回次数别太多,因为这就像是我从自己的助手里复制出来发给同事,他再粘贴到自己的智能体里,然后把结果发回给我,我再粘贴到我的智能体里,也许最后能得到一个答案。所以,你应该尽量把所有设计、决策,以及诸如此类的内容集中到 Notion、Google Docs 等地方,并尽可能把它们整合到一起,这样你了解的就不只是某样东西是如何构建的代码,还包括背后的所有决策。Every line of prototype code doesn't have to be perfect. You should give models a feature flagging system, PostHog, 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. We've centralized code 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 copied out of mine and sent 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, 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.

你买不到的东西What you can't buy

你不可能什么都买。我觉得这个领域里有些东西根本就没法产品化。显然,你可以买虚拟机,也可以带上自己的开发环境。我觉得对大多数团队来说,这都非常个人化。当然,harness 你可以直接用前沿的,也可以用 OpenCode 或 Pi 这样精简的方案,然后尽情定制。接下来还有控制平面这块:你们要如何协作处理会话和计划?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 OpenCode 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?

自动化和调度要怎么做?怎么响应事件?还有所有这些治理方面的事。我之所以特别期待能和 Factory 一起做这些事,部分原因是他们对整个图景的理解更全面,也已经解决了更多这方面的问题。不过有些方面,尤其是这里最上层的部分,我觉得没人能向你兜售代码验证,因为只有你自己才了解。如果你有数百名工程师和数百个代码仓库,你自然会有自己的判断,也知道怎么测试代码。这不是一个可以直接买来的黑盒。有些基础构件并无差异化,但我认为,软件工厂这个概念是一种看待我们工作的方式。这就是软件工厂。我还想谈谈 slop。工厂关注的是如何提高人类的杠杆效应,对吧?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 it's a way of thinking about our work. so that's software factories. I also want to talk about slop. it's factories are about how do we increase human leverage, right?

我们怎样才能让投入的时间获得最佳回报?我还稍微谈到了为什么应该让人类参与其中,以及尽职尽责地守护我们正在构建和做的事情意味着什么。我认为这比软件更宏大。How do we get the best return on our time? and I talked a little bit about why humans should be involved and like what it means to be a diligent steward of what we're building and what we're doing. I think it's bigger than software.

反低质内容宣言The Anti-Slop Manifesto

我宣布《反垃圾内容宣言》(Anti-Slop Manifesto)。你可以访问 slopmanifesto.com 阅读。我稍后会把网址放出来。不过,这是我们和这里的很多人共同打造的,既有参会者,也有演讲者。特别感谢 Swyx 和 Philipp。签署者来自 ZoomInfo,我想还有 AI 和 OpenAI,而且上面还有很多很棒的人。我鼓励你去读一读、了解一下,也参与进来,你懂的。不过我先告诉你里面写了什么。我们重视成果,而不是产出;重视理解,而不是速度;重视自己的思考,而不是模型给出的第一版草稿;重视把工作做得更好,而不是让工作变得更轻松;重视改进系统,而不是批量派发产出。我们相信,AI 是我们大多数人用过的最有用的工具,但它也可能带来这样的情况:一群智能体一天产出的工作量,可能超过一个人整个职业生涯能审阅的总量。I'm announcing 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 shout-out to Swyx and Philipp. it has signers from ZoomInfo and I think AI 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 dispatching 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 like a swarm of agents can produce more work in a single day than a human can review in their entire career.

看看 OpenAI 最近产出的那些数学内容。所谓低质内容,就是我们在产出某样东西上投入的精力,少于我们要求另一端的读者花在理解它上的精力。使用 AI 并不一定会产出低质内容,但如果我们把 AI 的输出直接交出去,却不为其质量或读者的体验负责,就会出现这种情况。我这一年来一直在这么说:AI 无法取代人类的判断力。它只能放大我们的判断力,或者在某些情况下,放大我们缺乏判断力的问题。而且这种低质内容的成本是不对称的:生成一份上千行的 PR 或一份十页的文档,成本正趋近于零,但审阅它的成本却基本没变。当我们一再绕开问题,而不是正确地解决问题时,低质内容就会泛滥。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've been saying this for a year. 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. The signers of the Anti-Slop Manifesto resolve that human time and attention is incredibly valuable.

所以,我们要做的是优化如何明智地使用它。我们反对粗制滥造的内容,因为 AI 应该让我们的工作变得更好,而不只是更轻松。我们优化系统、工具和产品,以便更高效地引导人们表达意图,也让人们更高效地理解内容。与模型协作时,我们也要自己思考。我们会探索各种资源、代码和先例,真正弄清楚问题之后才开始动手。我们也要对自己的意图、品味,以及交付成果所带来的后果负责。无论 AI 在创作过程中帮了我们多少,成果都由我们负责。如果某个代理写了我们要发给别人的内容,我们就要明确说明这一点,并且在把内容发到 Slack、邮件或其他地方之前,确保它确实够好。别人发给我们粗制滥造的内容时,我们也得提出异议。我们要友善、体谅地告诉对方这一点,并请他们先检查一下内容。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 we have to push back. We have to tell people, you know, kindly and empathetically, and then ask them to like review it first.

对我们大多数人来说,这都是一个过程。我也曾站在这件事的两边,所以我也收到过这样的反馈。我相信,审阅任何东西总会有 alpha。And most of us it's a journey. I've been I've been on both sides of this one. So I've had to have that note. I believe there will always be alpha in reviewing something.

为什么审查仍然重要Why reviewing still matters

随着模型不断进步,我们可能会不再阅读大部分代码,但仍然会审查计划、设计和结果。不过,如果你完全不做审查,也不投入自己的思考,那你得到的就只会和其他所有人得到的一样,都是 AI 的输出。智能体审查器、代码检查工具和验证器都非常有用,但光靠它们还不够。所以目前,我们还是会审查一部分输出。至于审查哪些,当然取决于风险有多高。但比起代码行数、合并的 PR 数量,或者我们并行运行了多少个智能体,最终交付了什么、谁在使用它,以及它如何帮助他们,都重要得多。只要它能帮你达成目标,那就很不错。不过,未经审查的输出也不一定总是糟糕。一轮提示词就能完成任务,这可能很有用。氛围编程也是如此——这些都是用对地方就能带来巨大杠杆效应的做法。As models improve, we may stop reading most of the code while still reviewing plans, designs, and results. But if you skip all review and bring none of your own thinking, you're just going to get the same AI output as everybody else. agent reviewers, linters, verifiers, they're very useful, but they are insufficient on their own. 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, PRs merged, or 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. One-shot prompts can be useful. vibe coding, these are all like high-leverage things that are in the right place.

当劣质内容损害我们的成果时,它就是坏的。如果我们想打造优质产品、构建可维护的系统,想为人们节省时间和精力,而劣质内容妨碍了这些目标,那它就是坏的。最后我想说,我们谁都还没完全弄明白。我们都在重新摸索自己愿意和不愿意接受什么,这件事没有唯一正确的答案。你得自己把握好尺度。世界变化很快。我的目标是提出一些原则,让我们能够拥抱自身重要的人类角色,安全、负责地利用 AI,为所有人创造价值,并让这份价值延续多年。你可以前往 slopmanifesto.com 阅读并签署这份宣言。认真对待你正在做的事。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 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. Care about what you're doing.