00:13 模型进步让旧工具发挥出更大能力
软件代理的价值不只在于生成更多软件,也能让开发者构建更有野心、更高质量的软件。Pi coding agent 一年间核心工具没有变化,模型能力提升却使它能完成更多工作;过去有用的提示技巧和 Pi Auto Research 插件,对当前先进模型已不再必要。模型进步本身正在改变代理的实际表现。
AI Engineer · 19:56
My name is Armin Ronacher and I want to share with you a little bit the lessons that we have learned from building software with agents and in particular I want to make a strong case for not so much building the factory as building the atelier or workshop. And I want to show some data with this from our own usage but in particular I want to explain what I mean by building the atelier or the workshop prior to building the software factory. and i think everybody here has been using agents for quite a while, and you have probably noticed that we're sort of on an exponential curve in what we can do with them. but the comparison that i want to give here is that you can be an amazing artist and use the greatest and latest technology from cnc machines to 3d printers, which are just very good power tools, and it can increase the ambition of what it can do with your art. and i think we can also look at software a little bit in that sense. so less about building much more software and just building way more ambitious and high quality software. so i'm going to show you a little bit of what i mean by that. and you might know that Earendil is working on a pi coding agent. so we have obviously a little bit of a horse in a race here of how we're looking at this. but i think what is probably quite interesting is that. the pi coding agent has not really changed in a year on the core harness. it still has the same tools today as it did in december last year. and i think this is interesting because it has become much more powerful purely as a effect of the models getting better. so i'm much more capable today of what i can do with pi without any changes landing in the core functionality of what the harness is doing. And I think this is an interesting thing to reflect on because it means that we are all simultaneously getting better even without landing any significant changes in how we're doing this. And you might have remembered throughout the last year and a half maybe that there were a lot of ideas of how you can prompt the machines better or how you can do some interesting tricks with the harness. Very few of them are still necessary. For me, a good example here is that I was in love with Pi Auto Research, which was a plugin that basically allowed an agent to drive towards a goal like improving performance. but if you use a present day state of the art model, you actually discover that the entire plugin is no longer necessary. so there's a lot that is just happening in the models that is dramatically improving how we're doing. so these machines are getting better.
我叫 Armin Ronacher,想和大家分享一些我们在使用智能体构建软件时学到的经验。特别是,我想有力地说明,与其打造软件工厂,不如先打造工作室或工坊。 我想用一些我们自己的使用数据来展示这一点,但更重要的是,我想解释在打造软件工厂之前,先打造工作室或工坊是什么意思。 我想在座的各位应该都已经使用智能体有一段时间了,你们可能也注意到,我们能用它们做的事情正处于某种指数级增长曲线上。 不过,我想打个比方:你可以是一位出色的艺术家,使用最新、最先进的技术——从数控机床到 3D 打印机,它们都只是非常趁手的工具——而这些技术可以拓展你用艺术创作的雄心。 我认为,我们也可以从这个角度来看待软件。 重点不是构建更多软件,而是构建更有雄心、质量更高的软件。 我来稍微展示一下这是什么意思。 你们可能知道,Earendil 正在开发一个名为 pi 的编程智能体。 所以,显然,我们在这场竞赛中也有自己的立场和关注点。 不过,我觉得很值得关注的一点是…… 在核心框架方面,pi 编程智能体这一年来基本没有变化。 它现在用的工具,和去年 12 月用的还是同一套。 我觉得这很有意思,因为它之所以变得强大得多,纯粹是因为模型变得更好了。 如今,即使我们没有对框架的核心功能做任何改动,我用 pi 能做的事情也比以前多得多。 我觉得这值得我们思考,因为这意味着,即使我们没有对做事的方式进行任何重大改进,我们也都在同步变得更好。 你们或许还记得,在过去一年半左右的时间里,人们提出了很多想法,讨论如何更好地提示模型,或者如何利用框架玩出一些有趣的花样。 其中很少还有必要。 对我来说,一个很好的例子是,我曾经非常喜欢 Pi Auto Research。这是一个插件,基本上可以让智能体朝着某个目标努力,比如提升性能。 但如果你使用当今最先进的模型,就会发现整个插件已经不再必要了。 模型本身正在发生许多变化,极大地改善了我们的工作方式。 所以这些模型越来越好了。
and i just want to show this from a couple of graphs from basically my pi sessions where i filtered them out to have nothing but the default set. and the total amount of corrections, and i used jeff to analyze this, the total amount of corrections that i had to do. got down and down and down with every single model that got better and better. so i'm pushing back a lot less against the agent with the latest model than i did in december last year. the same thing with like how often i'm aborting it. and i think this to me was the most interesting way in which i sort of analyzed my sessions, which is the average. so this is the p90th percentile, but the 90th percentile of how long an agent was running in response to a task that i gave it. with opus 4.6 in december last year, was about two and a half minutes. and now with the latest models, they are on the 90th percentile running for 14 minutes and more. and that does actually change something about how you want to work with a harness. but really, again, nothing in pi has changed. and still, i'm seeing this sort of different behavior of how i'm using this. and this probably you have noticed in one form or another. if you're still using an agent, we're going to see what it's doing. you'll probably notice that the present day agents are much more likely to use bash than any of the other tools that are being provided. but again, nothing has changed in how we configured harness. it's just that there's a lot more emergent behavior coming from the models. what's missing here is astra and sol. they actually look very similar to opus for my testing. i just didn't have enough data in my test set. Um, to show this nicely. you will notice that there's a little purple thing here. i want to talk about this in the end, which is sort of code mode is sort of slowly creeping up. but the core of this is even if you have a piece of infrastructure nowadays that is sort of there and is doing a good job, it's still changing as a result of the models.
我想用几张图来展示一下,这些数据基本上来自我的 Pi 会话;我筛选过这些会话,只保留默认设置。 我还用 Jeff 分析了我需要做的修正总量。 随着每个模型变得越来越好,修正次数也一次又一次地减少。 与去年 12 月相比,面对最新的模型时,我对智能体的纠正少多了。 我中止它的频率也一样。 我觉得,对我来说,分析这些会话最有意思的方式是看平均值。 这里展示的是第 90 百分位数,也就是智能体针对我给出的任务运行时长的第 90 百分位数。 去年 12 月,使用 Opus 4.6 时,这个时间大约是两分半钟。 而现在使用最新的模型时,运行时长的第 90 百分位数达到 14 分钟甚至更久。 这确实会改变你想要如何使用工具框架。 不过说到底,Pi 里确实什么都没变。 但我还是看到了自己使用它的方式出现了这种变化。 你大概也以某种方式注意到了这一点。 如果你还在使用智能体,我们就来看看它在做什么。 你可能会注意到,如今的智能体比起提供的其他工具,更倾向于使用 Bash。 不过,工具框架的配置方式并没有改变。 只是模型表现出了更多涌现行为。 这里没有展示 Astra 和 Sol。 在我的测试中,它们的表现实际上和 Opus 很相似。 我的测试集里数据不够。 嗯,这样展示会更直观。 你会注意到这里有个小小的紫色东西。 我想最后再谈谈这个,也就是代码模式正慢慢地显现出来。 但这件事的核心是,即使如今你有一套基础设施已经就位、运行良好,它仍会因为模型而发生变化。
what has not changed in the last year, at least this is the case for me, and i think this is the case for a lot of people, is that we're still humans, we're still limited by our fundamental capabilities. and as we are being more ambitious and we're doing more with these machines, i don't want to say like we're the bottleneck, but we are the thing that paces what they can do. and in particular, human attention is, for me at least, a limiting factor. and i'm noticing this with largely in how coding agents deployed in teams, that this is sort of a stable amount of attention that we have to work with. Um, starting new projects is getting incredibly easy with these agents. And I think like particularly when a new model comes out, we are all super excited of trying the latest and greatest thing you can do from 3D games to um new ways in which we automate things. But maintaining them has not really gotten easier. Um, but we are also increasingly taxing a lot of external systems that actually in many ways are not supposed to be part of this revolution. Um, I think we all know that GitHub has a lot more commits being uh pushed up there and a lot more repositories. But I know quite a few people who have well-established old websites on the internet that found a new life for agents. and they are totally not ready for the new volume that's coming from us kind of directly hitting them. so i just want to caution a little bit here in saying that when we are pushing things, we're also accidentally simultaneously all of us pushing things, which we're not really ready for what agents are doing. and this to me, i think, is an interesting graph because. the number of prompts that i'm actively pushing over the year is sort of flat. i know that in some months it's a little bit higher, in some months it's a little bit lower, but they're alternating between 120, 190, something like this prompts that i'm pushing per day. but you can see that the time that the agent was active for my use went from less than my working day to many times my working day. and this, november is not even over, right? so you can see that this is taking an exponential curve up. and this here is the number of projects, this is git repositories that i've created over the last year. and this is like obviously cumulatively going up. so i have 141 different projects that i started. but the number of projects i'm committing on a regular cadence to, which means like i'm committing for more than five days to and i'm returning to them also. It's pretty much flat with between ten, fifteen, something like this. and i have done this sort of an informal survey with a bunch of my friends as well, and this seems to be a common trend that actually maintaining something regularly is tricky. and i had this discussion with a friend of mine in sort of in relation to this graph, and he said like, well, actually, i have an open source project that is now fully automated. so there's an issue tracker coming in, there's an agent that's set up to auto review, commit, and send it back. and that is maybe a way to scale up, so you take the human out of the whole thing. but actually, he also turned it off because eventually he didn't care about the project as much anymore, and he wanted his token specs to use them for other things. so our attention to an open source project matters even if maybe we have automated it entirely. so if we stop using something, we have a tendency to no longer actually actively take care of it.
过去一年里没有改变的是——至少对我来说是这样,我觉得对很多人也是如此——我们仍然是人类,仍受自身基本能力的限制。 随着我们的目标越来越远大、用这些机器做的事情越来越多,我不想说我们是瓶颈,但我们确实决定了它们能做多少。 尤其是对我来说,人类的注意力是一项限制因素。 我注意到这一点主要体现在团队部署编码代理的方式上:我们能投入的注意力大致是固定的。 嗯,有了这些代理,启动新项目变得轻而易举。 我觉得尤其是在新模型发布时,我们都会兴奋地尝试它能做的最新、最厉害的事情,从 3D 游戏到嗯,各种自动化的新方式。 但维护这些东西并没有变得更容易。 嗯,我们也在给许多外部系统增加越来越大的负担,而这些系统在很多方面其实并不该成为这场革命的一部分。 嗯,我想我们都知道,GitHub 上被推送的提交数量和仓库数量都多了很多。 但我认识不少人,他们在互联网上有一些历史悠久、早已成熟的网站,这些网站因为代理而重新焕发生机。 而它们完全没准备好应对我们直接冲击它们所带来的新流量。 所以我想提醒大家一点:当我们推送东西时,我们也会在不知不觉中同时一起推送;而这些系统其实还没准备好应对代理正在做的事情。 我觉得这张图很有意思,因为…… 这一年里我主动发送的提示词数量大致持平。 我知道有些月份会稍微多一点,有些月份会稍微少一点,但我每天发送的提示词数量在 120、190 左右交替,差不多是这样。 但你可以看到,智能体为我工作的时间,已经从不到我的工作日时长,增加到了我工作日时长的许多倍。 而且,十一月甚至还没结束,对吧? 所以你可以看到,这呈现出一条指数增长曲线。 这里是项目数量,也就是我在过去一年里创建的 Git 仓库数量。 这个数字显然是在不断累积上升的。 所以我已经启动了141个不同的项目。 但我定期持续提交代码的项目数量——也就是说,我会连续提交五天以上,而且之后还会回来继续做—— 基本上持平在十到十五个左右。 我也和不少朋友做过这种非正式调查,似乎大家普遍都有这样的情况:要定期维护某样东西确实很难。 我和一位朋友讨论过这个问题,当时是结合这张图聊的。他说:“嗯,其实我有一个开源项目,现在已经完全自动化了。” 有问题会提交进来,还有一个配置好的智能体,会自动审查、提交代码,再把结果发回去。 这或许是一种扩大规模的方法,就是把人从整个流程中移除。 但实际上,他后来也把它关掉了,因为最终他对这个项目没那么在意了,而且想把他的 token 配额用在别的事情上。 所以,即使我们可能已经把某个开源项目完全自动化,我们对它的关注仍然很重要。 所以,如果我们不再使用某样东西,往往也就不再主动维护它了。
so if we're pushing towards, and i would make this argument, first figuring out how to make a really good workshop to build really high quality software, there's a question of what matters. and i think for me, the three most important things to matter is on the one hand, to really know when to push back against what an agent is doing, telling it that this is the wrong way of doing it. and i think that this is a crucial skill because an agent is really rewarded in just completing a goal. and it is very easy to look at if it has succeeded in this goal or not. and this, we can sort of see it in the same way as the rl environment maybe is rewarding the model during training. but that doesn't mean that what is being actually delivered is something that we are intrinsically happy with for a longer period of time. And this becomes tricky the more and more commits we're doing, the larger and larger the software is going. It's very easy to basically create the Simpson car of all the features in a software, um, but actually having something that intrinsically fits together where the internal complexity of the system does not is like, um, explode, uh, still requires us to, um, to. to work with it as it's working. and i like to call this like true skill versus agent skill. there is clearly a difference between someone who is an experienced software engineer working with an agent and someone who is not an experienced software engineer. and i think for me, the truest form of this is that my son is now sending me pull requests on a project that we're doing together. and there's a very clear quality difference in what his contributions are because he is not a software engineer. we're using the same system to prompt it, right? and i've noticed this myself in situations, but i've heard this also particularly from a lot of others. it is actually a very frustrating experience if you're in a situation where it really matters and other people in the room are basically just going to the agent to answer a question. and no longer have a really good understanding of either what the system is doing or that the fundamental problem that they're working on, they actually comprehend. so there is a lot of value in still understanding what you're doing. that also means that you kind of have to moderate the speed in which you're doing things to still work within your understanding.
所以,如果我们要朝这个方向努力——我想提出这样的观点:首先要弄清楚如何打造一个真正出色的工作坊,以开发高质量的软件——那么问题就是,什么才是重要的? 我认为对我来说,最重要的三件事中,第一就是要真正懂得何时该反驳智能体正在做的事,告诉它这样做是错的。 我认为这是一项关键技能,因为智能体真正受到奖励的,只是完成目标。 而且,要判断它是否达成了这个目标,非常容易。 这一点,我们可以把它看作强化学习环境在训练期间奖励模型的方式。 但这并不意味着实际交付的东西是我们从内心真正满意、并且能长期满意的。 随着我们提交的代码越来越多,软件规模越来越大,这件事就会变得越来越棘手。 要把软件里的所有功能拼成一辆“辛普森汽车”其实很容易,嗯;但要让各部分真正协调地融为一体,同时不让系统的内部复杂度爆炸,呃,仍然需要我们,嗯,去…… 在实际使用的过程中不断与它协作。 我喜欢把这称作真正的技能与智能体技能之间的区别。 显然,有经验的软件工程师使用智能体,与没有软件工程经验的人使用智能体,是有区别的。 我觉得对我来说,最能体现这一点的是,我儿子现在会针对我们一起做的项目给我发拉取请求。 他的贡献和别人做的有明显的质量差异,因为他不是软件工程师。 我们用的是同一个系统来写提示词,对吧? 我自己也在一些情境中注意到了这一点,而且我也听很多人特别提起过。 如果你身处一个事情真的很重要的场合,而在场的其他人基本上只是去问智能体问题,这其实会让人非常沮丧。 他们不再真正了解系统在做什么,也不再真正理解自己正在处理的根本问题。 所以,真正理解自己在做什么仍然很有价值。 这也意味着,你得适当放慢做事的速度,确保自己仍能理解所做的事情。
and one of the ways in which i started doing this as my commits started going through the roof, basically, was i looked into how are my trajectories of sessions going? and can i hook myself into a part before the end of it to find a consistent way for me to evaluate what's going on? and so for instance, i started basically prompting the agent that before it's going towards the verification, which is typically around 70% of it, to start producing a really nice short executive summaries and a nice typeset html page. so you can really understand what it's doing as it's finishing. particularly with newer models, it's no longer quite as horrible to read the text that comes out of it. but this is one way in which i found to balance out that i'm basically no longer reading the code in a lot of cases.
我的提交量开始猛增之后,我开始尝试这样做:查看自己的会话流程是怎么进行的。 我能不能在会话结束前的某个环节介入,找到一种稳定的方法来评估正在发生什么? 比如说,我开始提示智能体:在进入验证阶段之前(通常进度约为70%),先生成一份简洁漂亮的执行摘要,再做一张排版精美的 HTML 页面。 这样它收尾时,你就能真正理解它在做什么。 尤其是对较新的模型来说,它生成的文字已经不再那么难读了。 这是我找到的一种方法,用来平衡这样一种情况:很多时候,我基本上已经不再阅读代码了。
Um, and this I think is something that increasingly is more important to me is to to to also show up with a little bit of a a guidance towards um not writing all the software over and over. Um, I'm a huge believer in using fewer dependencies and writing more code yourself. So I really like the Atlassian Revolution for for that. element of it. but in german we have this word called wildwuchs, which basically means uncontrolled growth. and uncontrolled growth in software that is supposed to work together can have a lot of really negative consequences. you might have seen a blog post that was going around recently about a tar archive that has been crafted in a way that different tar implementations read it in different ways. and i think this is a bit of a problem now. for us to work together, we really want to have standards. we want to have common specifications. we want to have common file formats. and we now can basically make an agent implement any format we want. but there are going to be these differences. and what really makes it hard for us to agree on standards and what makes us work together on something. often it's not a technical challenge as much as it is a problem of how do people agree on what is supposed to be in this file format and how is it supposed to be implemented and how is it supposed to be interpreted because there can be multiple interpretations of it. and i really think that these open protocols and file formats are a really important aspect. you can imagine there is a future where we all have our own little photoshop clones but we'll no longer be able to send file formats to each other because we have diverged too much. and this really comes down to this part that collaboration between humans is as hard as it has ever been. and this is slowing us in a way down, right? and i think it's important to sometimes resist this temptation of just having the agent solve the problem and just taking a step back and figuring out if this is maybe one of those problems where we should be working together with other people. it is, for me, coming from an open source background, fascinating to see. how little actual human collaboration is happening in open source projects now, and how many more projects end up with gazillions of forks, because it's just easier to have a fork happen than to try to upstream changes.
嗯,我想这件事对我来说越来越重要:也要提供一些指导,避免我们一遍又一遍地重写所有软件。 嗯,我非常相信应该减少依赖项,多自己写代码。 所以我很喜欢 Atlassian Revolution 在这方面的理念。 其中的这一点。 但在德语里,我们有个词叫 wildwuchs,基本意思是失控的增长。 而本应协同工作的软件如果失控增长,可能会带来很多非常负面的后果。 你可能看到最近流传的一篇博客文章,讲的是有人精心制作了一个 tar 归档文件,导致不同的 tar 实现以不同的方式读取它。 我觉得这现在是个问题。 为了协同工作,我们确实需要标准。 我们需要通用规范。 我们需要通用文件格式。 而现在,我们基本上可以让智能体实现任何我们想要的格式。 但其中会出现这些差异。 而真正让我们难以就标准达成一致、难以协同完成某件事的, 往往不是技术挑战,而是人们如何就文件格式应包含什么、应如何实现以及应如何解读达成一致的问题,因为同一个格式可能存在多种解读方式。 我真的认为,这些开放协议和文件格式是非常重要的一环。 你可以想象这样一个未来:我们都有自己的 Photoshop 小克隆版,但由于彼此的格式已经分化得太远,我们再也无法互相发送文件了。 这确实归结于一点:人与人之间的协作一如既往地困难。 而这在某种程度上拖慢了我们的速度,对吧? 我认为,有时候重要的是要抵制这种诱惑:不要只是让智能体解决问题,而是退后一步,想想这是否正是我们应该与其他人一起努力解决的问题之一。 对我来说,作为一名来自开源领域的人,看到这一点真是令人着迷。 如今开源项目中真正的人类协作竟然这么少,而最终出现的项目分叉却多得惊人,因为分叉比尝试将改动合并回上游要容易得多。
so i want to make a very strong argument for building software that strives towards excellence. and i understand that this is hard. we have, i think, seen a pretty big explosion recently of verified software. it's also very clear that this is in itself hard. the technology stack is not right there yet where this works. but i think it is one of those areas where it's really worth pushing towards and seeing if this is maybe something that can help us over time. creating more stable software. i really am very happy with seeing so many people wanting to build fundamentally faster and more memory efficient software. i think it's a great development. for years, i was very frustrated with how little my ram usage actually goes to things that i think are worthwhile. and now there's a significant trend of people trying to rebuild things in a native language rather than, for instance, just building an electron wrapper. so all of those things are really cool developments. but they are in many ways still building up on technology that we have created before times. i really like rust. i like that there is now a trend towards building memory safe software. i think you've probably all been exposed to what happens with. yeah, good models finding security issues. so there's a strong argument towards that. and it now has also led to people that would never have picked that language before to actually give it a try because it delivers some value that now can, in quote, come for free.
所以我想强烈主张,我们应该构建追求卓越的软件。 我也明白这很难。 我觉得最近我们见证了经过验证的软件大幅增长。 同样也很明显,这件事本身很难。 目前的技术栈还不够成熟,尚无法很好地实现这一点。 但我觉得这是值得努力推进的领域之一,也值得看看这或许能否随着时间推移为我们带来帮助。 打造更稳定的软件。 看到这么多人想要构建从根本上更快、更节省内存的软件,我真的非常高兴。 我觉得这是一个很棒的发展。 多年来,我一直很苦恼:我觉得有价值的东西实际上只占用了我内存用量中的很小一部分。 现在有一个显著趋势:人们尝试用原生语言重构各种东西,而不是像以前那样只套一层 Electron 外壳。 所以这些发展都非常棒。 但在很多方面,它们仍然建立在我们过去创造的技术之上。 我很喜欢 Rust。 我喜欢如今出现了构建内存安全软件的趋势。 我想你们大概都见识过……会发生什么。 是的,优秀的模型能发现安全问题。 所以这方面有很充分的理由值得推进。 而现在,这也让一些以前绝不会选择这种语言的人愿意尝试一下,因为它能带来一些如今可以“免费”获得的价值。
on the last part, i want to talk a little bit about maybe there is something by harness can do something. and this is less so much for me to say, hey, here's a thing that a path that we are on. is to give you some idea of maybe where some of the challenges are as we're pushing this task to be much more long running. the first one is if you have a task that only takes two minutes to run, you're kind of willing to babysit it and if it breaks and it ends early or it doesn't run to completion or you have to restart the agent, to just restart it manually and tell it to continue. so it's like we have largely been working in an environment for quite a while where that was acceptable. if you now have automated agents running on thousands of issues overnight, you want to have an agent actually be able to restart itself. because we're pretty big believers on this concept of durable agents, also durable agents that create durable workflows where they orchestrate themselves in a way where you can start it, stop it, you can suspend it, you can bring it back. and this is not just because we have these longer running tasks, but also because there's a lot of inefficiency in what we're doing. and we are all compute constrained. we are all constrained in terms of the cost of inference. and being able to be a little bit more intelligent about how we're doing this, i think is really interesting. and i wish more people would be pushing towards that. for instance, if you pay raw token costs, you get a pretty significant discount of flex scheduling. but that means that maybe for minutes, no token is coming, right? and so then you want to suspend your agent, you want to suspend also your sandbox and actually not waste the other resources that are also expensive. so this is one part where i do think beyond the quality of the models, because the models are getting so good now, we might want to rethink a little bit of how we are using these resources intelligently.
最后一点,我想稍微谈谈,或许 Bash 能做些什么。 这并不是要对我来说,像是在说:嘿,这就是我们正在走的一条路。 而是想让你大致了解一下,当我们推动这项任务变得可以持续运行更长时间时,会遇到哪些挑战。 首先,如果一项任务只需要运行两分钟,你大概愿意在旁边盯着它;如果它出错、提前结束、没能跑完,或者你得重启智能体,你可以手动重启,然后让它继续。 所以我们长期以来基本上都在一个可以接受这种做法的环境中工作。 但如果现在有自动化智能体一夜之间处理数千个问题,你就会希望智能体能够自行重启。 因为我们非常认同持久型智能体这个理念,也认同能创建持久工作流的持久型智能体:它们可以自行协调,让你能够启动、停止、暂停,然后再恢复运行。 这不仅是因为我们的任务运行时间更长,也因为我们现在做的事情有很多低效之处。 而且我们的算力都很有限。 推理成本也都让我们捉襟见肘。 我认为,如果能更聪明地处理这些事情,会非常有意思。 我也希望有更多人能朝这个方向努力。 比如,如果你按实际 Token 数付费,采用 Flex 调度就能享受相当大的折扣。 但这意味着可能会有几分钟都没有 Token 输出,对吧? 所以你会想暂停智能体,也暂停它的沙箱,避免浪费其他同样昂贵的资源。 所以我认为,除了模型质量之外,既然模型现在已经变得这么好,我们或许也该重新思考一下如何更聪明地使用这些资源。
And the second thing is, um, you probably know that when, when, when Pi came out, there was a pretty big, um, motivation to say like bash is everything that you have to run. And this is still largely what we believe. Um, but now we also see that there is, um, an emergence of, um, desire to orchestrate sub-agents, a desire to use models which are not LLMs, like decision models or, or classifier models like Jeff. and in those cases, you need to start composing workflows. and this, i think, originally came from the folks from cloudflare, say like instead of having thousands of tools being put into the code, into the context, what if we just give the agent in addition to javascript, in addition to bash, javascript to run? and have all the tool calls that the agent would natively do happen via javascript, then you can orchestrate them better. and this has gone from a curiosity, i think, in many ways, to something that is fundamentally shockingly useful. and this means that now the harness, in many cases, and this is definitely the case already in codex, you can do it in pi, many other harnesses at this point, you can have the harness orchestrate very large invocations of tool calls. Without having to go through the inefficient context. And this does require a little bit of a rethinking of how you're doing things. And it also allows you to use classifier models. And I think this is the other big part that really changed how I was looking at how far I can push certain technology because you're. penalized for not having an active kv cache, but they are also very cheap and very fast. and they allow you now to take certain problems that previously were just too expensive or too slow to do, to have a decision model do this. and the way i think you should be thinking on this is that when you have code mode, what the harness can do is it can create a little workflow that can have decision points along the way. where if you, for instance, have to crunch through 3,000 incoming customer support requests, and you have to make decisions along the way if this is being sent towards having an agent work on it, towards requiring more feedback from a customer, you can have the agent create basically an on-demand workflow, and then for every single if condition that it's doing, it's just going through jeff. and then you can crunch through thousands of issues for very little time, in no time, in your coding agent. that previously that would have taken you hours.
第二点是,你们可能知道,Pi 刚推出时,大家普遍认为 Bash 就是你需要运行的一切。 这仍然基本上是我们的看法。 不过现在我们也看到,人们开始希望协调子智能体,也希望使用非 LLM 的模型,比如决策模型或分类器模型,像 Jeff 这样的。 在这些情况下,你需要开始编写工作流。 我认为,这个想法最初来自 Cloudflare 的那帮人:与其把成千上万种工具塞进代码和上下文里,不如除了 JavaScript 和 Bash 之外,再给智能体提供运行 JavaScript 的能力? 让智能体原本会直接调用的所有工具都通过 JavaScript 来调用,这样你就能更好地编排它们。 我认为,这在很多方面已经从一个新奇想法,变成了真正出乎意料地实用的东西。 这意味着,现在的执行框架在很多情况下——Codex 已经可以做到,Pi 和目前许多其他执行框架也可以——能够编排规模非常大的工具调用。 而不必经过低效的上下文。 这确实需要你稍微重新思考一下做事的方式。 它也让你能够使用分类器模型。 我认为这是另一项重大变化,它确实改变了我对某些技术还能推进到什么程度的看法,因为你会…… 因为没有活跃的 KV 缓存会受到惩罚,但它们也非常便宜、速度很快。 它们现在让你能够用决策模型处理一些以前成本太高或速度太慢、根本无法处理的问题。 我认为你应该这样理解:有了代码模式,执行框架就可以创建一个小型工作流,并在流程中设置决策点。 比如,你需要处理 3,000 条收到的客户支持请求,并在过程中判断该请求是交由智能体处理,还是需要向客户进一步征求反馈;你可以让智能体按需创建一个工作流,然后对它执行的每一个 if 条件,都只需通过 Jeff 来处理。 这样,你就能在编程智能体中,用很短的时间、几乎转眼之间处理成千上万个问题。 而以前这可能要花上好几个小时。
so with this, i just want to leave this idea. now that we can build everything, maybe we should not. but we should really, i think, push towards much more enjoyable and in many ways much more ambitious software than we have been doing before. Thank you.
所以,我想借此留给大家一个想法。 既然我们现在什么都能构建,也许我们不该什么都构建。 但我认为,我们确实应该朝着更令人愉悦、在很多方面也更有雄心的软件迈进,而不是继续沿用过去的做法。 谢谢。
Armin Ronacher 以 Pi coding agent 的使用数据说明,核心工具架构一年未变,模型进步却让代理更少需要纠正、能连续运行更久,也更常自主选择工具。但启动项目和生成代码变容易,并未消除人的注意力、理解力与维护能力限制:他一年开启 141 个项目,持续维护的只有约 10 至 15 个。因此,软件开发不应只追求产量,而应先建设能产出高质量软件的“工坊”:把握何时纠正代理、保持对系统的理解、重视标准与协作,并追求稳定、优秀的软件。同时,长时任务也要求代理具备暂停恢复能力,并通过代码模式和分类模型更高效地编排工作流。
软件代理的价值不只在于生成更多软件,也能让开发者构建更有野心、更高质量的软件。Pi coding agent 一年间核心工具没有变化,模型能力提升却使它能完成更多工作;过去有用的提示技巧和 Pi Auto Research 插件,对当前先进模型已不再必要。模型进步本身正在改变代理的实际表现。
对使用默认工具集的 Pi 会话进行分析后,纠正代理的次数随模型进步而下降,主动中止代理的情况也在减少。任务运行时长的第 90 百分位从上一年 12 月使用 Opus 4.6 时约两分半,升至最新模型下的 14 分钟以上。代理也更常使用 bash;这些变化不是 harness 配置调整带来的,而是模型涌现出的行为。
代理运行时间和产出增长很快,但人的注意力并未同步扩张。每天主动提交的提示大致维持在 120 至 190 条,代理活跃时间却从不到一个工作日增长到数倍于工作日。演讲者一年创建了 141 个仓库,持续超过五天并定期回访的项目只有约 10 至 15 个。即便开源项目已自动处理 issue、审查和提交,维护者不再关心项目后仍可能关闭自动化;持续照料依然离不开人的投入。
代理容易因完成可衡量的目标而得到肯定,但目标达成不代表交付物长期令人满意;功能不断叠加,也可能使软件像“辛普森汽车”一样杂乱,内部复杂度失控。开发者需要判断何时指出代理走错方向,并理解自己正在解决的问题。演讲者观察到,缺乏软件工程经验的人即使使用同一套代理,贡献质量仍有差异;若团队成员只让代理回答问题,却不理解系统和问题本身,协作会变得令人沮丧。因此,工作速度也应受个人理解能力约束。
为避免提交数量激增后完全失去对工作的把握,演讲者观察自己的代理会话轨迹,并在通常约完成 70%、进入验证阶段前,要求代理生成简短的执行摘要和排版清晰的 HTML 页面。这样能在任务结束时理解代理做了什么,也为自己逐渐不再逐行阅读代码的工作方式补上一道检查环节。
减少依赖、自己编写更多代码有其价值,但软件若无序增长,彼此协作的系统会产生负面后果。不同 tar 实现可能以不同方式读取同一个经过特殊构造的归档文件,说明协作需要共同标准、规范和文件格式;代理虽然能实现各种格式,却也可能带来实现与解释上的分歧。若各自开发的 Photoshop 式应用逐渐偏离,文件将难以互通。开源项目中协作减少、分叉增多,也提示有些问题应先由人们共同商定,而不只是交给代理各自解决。
软件开发应追求卓越,而不只是更快地产出。形式化验证软件的增长体现了这一追求,但现有技术栈仍有局限;更稳定的软件仍值得持续探索。演讲者也肯定人们重建更快、更省内存软件的趋势,例如用原生语言替代 Electron 包装,并看好 Rust 和内存安全软件的发展。模型发现安全问题的能力,也让更多人愿意尝试此前可能不会选择的语言。
两分钟左右的任务可以由人看护,失败后手动重启;若要让代理一夜处理数千个 issue,就需要代理能自行重启,并支持启动、停止、暂停和恢复,从而形成持久工作流。这样做也能节约资源:推理成本受限,而 flex 调度虽然价格有折扣,却可能数分钟没有 token 输出;此时暂停代理及其沙箱,能避免闲置消耗。
在 bash 之外,代理工作流开始编排子代理,也开始使用决策模型和分类模型。代码模式允许代理通过 JavaScript 编排大量工具调用,避免把所有工具调用都塞进低效的上下文,并让 harness 承担更大规模的调用编排。分类模型便宜、快速,适合工作流中的决策点:例如处理 3,000 条客服请求时,可判断哪些交给代理、哪些需要向客户补充反馈,从而快速处理大量问题。
能够构建一切,不意味着都应该构建;更值得追求的是比以往更令人享受、也更有野心的软件。
00:13 模型进步可以在核心工具架构不变的情况下显著提升代理能力,因此应先建设能产出高质量软件的工坊,而不是只追求扩大软件产量。
04:36 代理生成与运行能力增长得比人的注意力和维护能力更快,项目能否持续仍取决于是否有人愿意持续投入。
07:59 开发者必须能判断何时纠正代理,并保持对系统和问题的理解,才能避免只达成局部目标却交付长期不满意的软件。
12:03 软件协作需要人们共同维护开放标准、规范和文件格式,避免各自实现造成互操作性分裂。
15:40 面向长时任务的代理应能暂停、恢复并管理自身工作流,以提高资源使用效率。
19:23 代理能力越强,越应把目标放在更有野心、更稳定、更令人享受的软件上,而不是把“什么都能做”当作都要去做。