Claude Code 作者 Boris Cherny 在斯坦福课分享五条 Agent 实战原则
几千个 Claude Agent 同时跑:Claude Code 作者 Boris Cherny 在斯坦福课上的五条实战原则
Claude Code 作者 Boris Cherny 在斯坦福 CS146S 课程第四周分享五条实战原则,他本人同时跑着几千个 Claude agent,团队自去年 11 月起代码接近全部由 Claude 写出,人均产出约提升 10 倍。五条原则包括自动化研发瓶颈(已自动化 code review,下一步是审批)、为六个月后的模型而建、小团队更快、用循环方式调度 agent,以及懂领域的人会赢。他还提到 Claude Code 早期收入连续数月持平,Opus 4 发布后增长才陡升。
查看原帖上周四,Boris(Claude Code 的创造者)回到了我的斯坦福课程 𝗧𝗵𝗲 𝗠𝗼𝗱𝗲𝗿𝗻 𝗦𝗼𝗳𝘁𝘄𝗮𝗿𝗲 𝗗𝗲𝘃𝗲𝗹𝗼𝗽𝗲𝗿。他坐在我旁边时,我问他现在运行着多少个 Claude agent。 “几千个。” 他的主要收获: - 𝗔𝘂𝘁𝗼𝗺𝗮𝘁𝗲 𝘆𝗼𝘂𝗿 𝗯𝗼𝘁𝘁𝗹𝗲𝗻𝗲𝗰𝗸:自去年 11 月以来,Claude 编写了他团队 100% 的代码,每位工程师的产出提升了约 10 倍。代码交付量太大,人们不再仔细阅读,而是开始快速浏览,于是他们自动化了代码审查。审批是下一步。团队找出了阻碍其开发速度的主要因素,并构建系统来为自己解除阻塞。 - 𝗕𝘂𝗶𝗹𝗱 𝗳𝗼𝗿 𝘁𝗵𝗲 𝗺𝗼𝗱𝗲𝗹 𝟲 𝗺𝗼𝗻𝘁𝗵𝘀 𝗼𝘂𝘁:Claude Code 早期的收入连续数月持平,因为当时的模型还不够聪明。后来 Opus 4 发布,增长变得极为迅猛。他的方法是阅读你的 agent 对话记录,看看模型在哪里失败。那正是下一个模型版本会改进的地方。 - 𝗦𝗺𝗮𝗹𝗹 𝘁𝗲𝗮𝗺𝘀 𝗴𝗼 𝗳𝗮𝘀𝘁𝗲𝗿:有几个月,Claude Code 基本上只有他一个人。有了 AI,一两个人就能比规模大他们 100 倍的团队交付得更多。约束催生创造力。 - 𝗧𝗵𝗶𝗻𝗸 𝗶𝗻 𝗹𝗼𝗼𝗽𝘀:他的祖父曾在苏联编写打孔卡程序。Boris 编写的循环会运行数天或数周,并生成许多 agent。他预计,手写代码正走向打孔卡的去处。 - 𝗗𝗼𝗺𝗮𝗶𝗻-𝘀𝗽𝗲𝗰𝗶𝗳𝗶𝗰 𝗯𝘂𝗶𝗹𝗱𝗲𝗿𝘀 𝗮𝗿𝗲 𝘁𝗵𝗲 𝗳𝘂𝘁𝘂𝗿𝗲:他预计 2027 年最好的会计软件将由一名会计构建。当代码变得廉价时,深入理解问题就是唯一的 alpha。 在印刷术出现后的 50 年里,欧洲产生的文学作品比之前 1,000 年还多。他认为编程即将经历一场类似的创造大爆发。
查看原文
I asked @bcherny how many Claude agents he's running right now as he sat next to me. "A few thousand." Boris (creator of Claude Code) came back to my Stanford course 𝗧𝗵𝗲 𝗠𝗼𝗱𝗲𝗿𝗻 𝗦𝗼𝗳𝘁𝘄𝗮𝗿𝗲 𝗗𝗲𝘃𝗲𝗹𝗼𝗽𝗲𝗿 last Thursday. His main takeaways: - 𝗔𝘂𝘁𝗼𝗺𝗮𝘁𝗲 𝘆𝗼𝘂𝗿 𝗯𝗼𝘁𝘁𝗹𝗲𝗻𝗲𝗰𝗸: Claude has written 100% of his team's code since November and output is up ~10x per engineer. So much code shipped that people stopped reading it carefully and started skimming, so they automated code review. Approvals are next. The team identified the main things impeding their development velocity and built systems to unblock themselves. - 𝗕𝘂𝗶𝗹𝗱 𝗳𝗼𝗿 𝘁𝗵𝗲 𝗺𝗼𝗱𝗲𝗹 𝟲 𝗺𝗼𝗻𝘁𝗵𝘀 𝗼𝘂𝘁: early Claude Code revenue was flat for months because the model wasn't smart enough yet. Then Opus 4 came out and growth became astronomic. His method is to read your agent transcripts and see where the model fails. That's where it will improve in the next model release. - 𝗦𝗺𝗮𝗹𝗹 𝘁𝗲𝗮𝗺𝘀 𝗴𝗼 𝗳𝗮𝘀𝘁𝗲𝗿: for months Claude Code was basically just him. With AI, one or two people can outship a team 100 times their size. Constraints breed creativity. - 𝗧𝗵𝗶𝗻𝗸 𝗶𝗻 𝗹𝗼𝗼𝗽𝘀: his grandpa programmed punch cards in the Soviet Union. Boris writes loops that run for days or weeks and spawn many agents. He expects that typing code by hand is heading where punch cards went. - 𝗗𝗼𝗺𝗮𝗶𝗻-𝘀𝗽𝗲𝗰𝗶𝗳𝗶𝗰 𝗯𝘂𝗶𝗹𝗱𝗲𝗿𝘀 𝗮𝗿𝗲 𝘁𝗵𝗲 𝗳𝘂𝘁𝘂𝗿𝗲: he expects the best accounting software of 2027 to be built by an accountant. When code is cheap, knowing the problem deeply is the only alpha In the 50 years after the printing press, Europe produced more literature than in the previous 1,000. He thinks coding is about to undergo a similar explosion of creation.
正文
@stanfordnlp 教授 @mihail_eric 教授秋季新课「CS146S: The Modern Software Developer」,课程介绍: https://t.co/AhFJW6xl8V
课程第四周,请到了 Claude Code 作者,Boris 分享的核心并不是“多用 AI 写代码”,是把研发瓶颈系统化地自动化掉,并为六个月后更强的模型提前设计。他自己身边同时跑着“几千个” Claude agent;团队从去年 11 月起代码已接近全部由 Claude 写出,人均产出约提升 10 倍。 https://t.co/9iItZYGIze
# 五条要点
1. 自动化你的瓶颈 代码写得太多以后,人开始只扫一眼、不再细读,于是他们把 code review 自动化了;下一步是审批。做法是先找出拖慢交付的环节,再为这些环节建系统,而不是泛泛“全面 AI 化”。
2. 为六个月后的模型而建 Claude Code 早期收入曾连续数月几乎持平,因为当时模型不够强;Opus 4 出来后增长才陡升。他的方法:读 agent 对话记录,看模型现在会在哪里失败;那里往往就是下一版模型会补上的能力。
3. 小团队更快 Claude Code 有好几个月基本就是他一个人。他认为有了 AI,一两个人可以超过百倍规模的团队;约束反而催生创造力。
4. 用“循环”思考 他祖父在苏联用穿孔卡片编程;他自己写能跑几天甚至几周、并不断拉起大量 agent 的循环。他预期手敲代码会逐渐变成穿孔卡片那样的过时技能。
5. 懂领域的人会赢 他预计 2027 年最好的会计软件会由会计来做。当写代码变便宜,真正的壁垒是对问题本身的深度理解。