Block深度复盘:用Claude Fable编排千级PR大规模代码迁移
How Block orchestrates Claude Fable across thousands of pull requests | Claude by Anthropic
Agent编排与大规模代码重构的硬核实战,给出了Fable+小模型的具体分工、Buzz工具链及成本控制策略,做AI工程落地的同学值得参考。
Block builds tools that help businesses and individuals participate in the economy, including Square for sellers and Cash App for consumers. Bradley Axen leads AI capabilities at Block, where his team builds end-to-end AI products, including Buzz, an open-source workspace for human-agent teams (opens in new tab), and partners with the Square and Cash App teams to build customer-facing AI features. Brad spoke with Anthropic about how frontier models like Claude Opus 5 and Claude Fable 5 have transformed what it means to be an engineer, how Block applies agent orchestration patterns with Fable, and the role of safeguards when every employee has access to frontier models.
Block 构建了帮助企业和个人参与经济活动的工具,包括面向卖家的 Square 和面向消费者的 Cash App。Bradley Axen 在 Block 负责 AI 能力,他的团队构建端到端的 AI 产品,包括 Buzz——一个供人机协作团队使用的开源工作区(在新标签页中打开),并与 Square 和 Cash App 团队合作开发面向客户的 AI 功能。Brad 与 Anthropic 探讨了 Claude Opus 5 和 Claude Fable 5 等前沿模型如何改变了工程师的含义、Block 如何将代理编排模式应用于 Fable,以及当每位员工都能访问前沿模型时保障措施所扮演的角色。
Frontier models have made meaningful progress in 2026. How has this technology impacted how you work?
2026 年,前沿模型取得了实质性进展。这项技术如何影响了你的工作方式?
The biggest impact AI has had on our work at Block is how we build things, and you couldn't overstate how impactful that is. We saw the beginning of it in 2025 with tools like Claude Code, which at the time, required a lot more manual intervention. As models become more intelligent, design and engineering work has shifted toward designing the migrations themselves, reviewing agent behavior, and building more customer-facing features, which was always the goal.
AI 对我们在 Block 的工作产生的最大影响在于我们构建产品的方式,其影响力无论如何强调都不为过。我们在 2025 年看到了它的开端,当时像 Claude Code 这样的工具还需要大量人工干预。随着模型变得更加智能,设计和工程工作已转向设计迁移本身、审查代理行为以及构建更多面向客户的功能,而这始终是我们的目标。
The next phase is to bring these transformative technologies to our customers, through Block’s products. There's just as much value AI can bring to helping a small business handle the back-of-house operations it doesn't want to spend its time on, or to helping a Cash App customer manage their finances. With Claude, we have a whole new lever in technology that can change what people expect software to do for them. Imagine if AI could respond to customer needs and build new interfaces on the fly? Increasingly, I think our products will be built on demand with AI to solve specific problems.
下一阶段是通过 Block 的产品将这些变革性技术带给我们的客户。AI 同样能为小企业带来巨大价值,帮助它们处理不想花费时间处理的后台运营事务,或帮助 Cash App 客户管理财务。借助 Claude,我们拥有了一个全新的技术杠杆,可以改变人们对软件功能的期望。想象一下,如果 AI 能够响应客户需求并即时构建新界面呢?我认为,我们的产品将越来越多地基于 AI 按需构建,以解决特定问题。
As frontier intelligence evolves, what can your team do now that it couldn't do a few months ago?
随着前沿智能的演进,你们团队现在能做哪些几个月前还做不到的事情?
The biggest thing that has changed with Claude’s newer frontier models is the scale at which we can build software. Writing code is still the core component, but now we'll do company-wide migrations with AI. We've all had that dream for a long time, and in 2025 it rarely panned out. Before Claude Fable 5, you had to have a particularly well-shaped problem for frontier models to really shine.
Claude 较新的前沿模型带来的最大变化是我们构建软件的规模。编写代码仍然是核心组成部分,但现在我们将使用 AI 进行全公司范围的迁移。长期以来,这一直是我们的梦想,但在 2025 年很少能实现。在 Claude Fable 5 之前,只有当问题具有特别良好的结构时,前沿模型才能真正发挥优势。
In 2026, AI is a major part of how we run all large-scale code migrations. For us, a migration might mean hundreds or thousands of individual pull requests across multiple repos and millions of lines of code. In the past, humans had to coordinate that work, and models could take on one or a few PRs at a time. With Fable, we're seeing it orchestrate the work across many sessions. A human engineer steers, and Fable focuses on the higher-level design work: data models, API specs, algorithms. It then directs up to dozens of smaller, more cost-effective models like Opus or Sonnet to do the individual tasks, such as making the actual file edits and running tests.
到2026年,AI将成为我们执行所有大规模代码迁移的主要方式。对我们而言,一次迁移可能意味着跨越多个仓库、涉及数百万行代码的数百或数千个独立拉取请求(PR)。在过去,人类必须协调这些工作,而模型一次只能处理一个或少数几个PR。借助Fable,我们看到它能够跨多个会话编排工作。人类工程师负责引导方向,而Fable专注于更高层面的设计工作:数据模型、API规范、算法。随后,它指挥多达数十个更小、更具成本效益的模型(如Opus或Sonnet)执行具体任务,例如进行实际的文件编辑和运行测试。
The economics work out well. Early results show the orchestrator using frontier tokens for complex, upfront planning before driving a higher percentage of tokens to smaller worker models, without a drop in quality. We run the whole setup on Buzz, our open source collaboration workspace where humans and AI agents work side by side in shared channels and threads. It gives us great visibility into how the team is progressing.
经济效益非常可观。早期结果显示,编排器在前期的复杂规划中使用前沿模型令牌,随后驱动更高比例的令牌流向较小的工作模型,且质量并未下降。我们在Buzz上运行整个设置,Buzz是我们开源的协作工作区,人类和AI代理在共享频道和线程中并肩工作。这让我们对团队进展有了极好的可见性。
In any given migration, we might merge a thousand pull requests orchestrated by Fable. That lets engineers focus on the hard design decisions instead of the mechanical work.
在任何给定的迁移中,我们可能会合并由Fable编排的数千个拉取请求。这让工程师能够专注于艰难的设计决策,而不是机械性工作。
When do you use Claude Fable models over other options?
何时使用Claude Fable模型而非其他选项?
A lot of models have started to close the gap since, and Opus is very good too, but the moment Fable came out, it was a big step change in how large a problem you could take on at once. Teams at Block gravitated to that and started figuring out what it means to move up another level of abstraction, another level of scale.
此后许多模型开始缩小差距,Opus也非常出色,但Fable问世的那一刻,它在一次性可处理的问题规模上带来了巨大的步骤式变化。Block的团队被这一点吸引,并开始探索这意味着要迈向另一个抽象层级、另一个规模层级。
Now, a lot of our conversation is about model efficiency. That's where model orchestration comes in: Fable’s frontier intelligence is most valuable when you're tackling a big problem with it, and then we look to smaller models to fill in a lot of the details on code changes. It's literally the first time I can remember since we started using LLMs for code where the answer wasn't just "use the most frontier model 100% of the time."
现在,我们的许多讨论都围绕模型效率展开。这正是模型编排的用武之地:当你用它解决一个大问题时,Fable的前沿智能最具价值,然后我们转向较小的模型来填补代码变更中的大量细节。从我开始使用LLM进行编码以来,我记得这是第一次,答案不再是“100%的时间都使用最顶尖的模型”。
Model orchestration is a big part of how we build things today, and it means we need new tools. Some tools are very single-conversation focused, and the interface doesn't keep up with you having 45 agents working with you all the time. That's another place Buzz comes in. We have multi-agent workflows in Buzz, and we really think the future is multiple people talking to many agents, with the organization picking the efficient models for routine tasks and frontier models for bigger problems.
模型编排是我们今天构建事物的核心部分,这意味着我们需要新的工具。有些工具非常专注于单次对话,其界面无法跟上你始终有45个代理协同工作的节奏。这正是Buzz的用武之地。我们在Buzz中实现了多代理工作流,我们坚信未来将是多人同时与多个代理交互,由组织为常规任务选择高效模型,为重大难题选择前沿模型。
What's the hardest problem you've thrown at Fable?
你抛给Fable的最难问题是什么?
The first is large-scale migrations: multiple-thousand-PR migrations where Fable orchestrated the whole system that did the work.
第一个是大规模迁移:涉及数千个PR的迁移,其中Fable协调了整个执行系统。
The second is taking a large codebase, something in the neighborhood of a million lines of code, and making sure it's not growing tech debt every day. We are shipping more PRs than ever before. People are shipping a lot more features and a lot more changes, so our systems accumulate tech debt faster than ever, and we've been missing the corresponding thing that speeds up our ability to maintain them. That's finally happening. We have agents that do daily or weekly passes across a whole codebase asking, "How's it going in here? What do we need to clean up and consolidate?"
第二个是处理一个庞大的代码库,大约百万行代码,并确保它不会每天积累技术债务。我们交付的PR数量前所未有。人们正在交付更多的功能和更多的变更,因此我们的系统比以往任何时候都更快地积累技术债务,而我们一直缺少能加速维护能力的相应手段。现在终于实现了。我们有代理会对整个代码库进行每日或每周扫描,询问:“这里情况如何?我们需要清理和整合什么?”
With broad access, how do you drive efficient use of frontier models?
在广泛开放访问的情况下,你如何推动对前沿模型的高效使用?
We give anyone in a technical role full access to the most frontier models, because a big part of our strategy is to always be working at the edge of what's possible.
我们赋予所有技术角色完全访问最前沿模型的权限,因为我们的战略很大一部分是始终在可能性的边缘工作。
Using Fable to fix a typo in a README is a very bad use of resources. So we needed better systems for suggesting which model to use for given tasks. To accomplish this, we’ve been building an auto-selector that helps employees choose which model to use, when. Our multi-agent systems powered by a mix of larger and smaller frontier models help too.
用Fable来修复README中的一个拼写错误是对资源的极大浪费。因此,我们需要更好的系统来建议针对给定任务使用哪个模型。为此,我们正在构建一个自动选择器,帮助员工决定何时使用哪个模型。由较大和较小规模的前沿模型混合驱动的多代理系统也提供了助力。
A big part of our goal as a company is to operate efficiently by default, and that's the skill we're building now. We've got a lot of great models to choose from. If everyone gets good at picking the right model for the right task, our cost effectiveness goes a lot further without slowing us down.
我们公司目标的一大组成部分是默认高效运营,这也是我们目前正在培养的技能。我们有大量优秀的模型可供选择。如果每个人都能擅长为正确的任务选择合适的模型,我们的成本效益将大幅提升,而不会拖慢进度。
Do you advise specific optimization strategies, like effort levels?
你会建议特定的优化策略吗,比如努力程度?
Even as someone who works with LLMs all day, I almost feel like a model at xhigh effort is a different model than the same model at medium. I don't think of effort levels as a spectrum you walk along. Fable on low might just be better than another model on xhigh. So I think of it as a bigger grid we need to optimize against. Every single use case we benchmark, we check not just every model but every effort level of every model.
即使是一个整天与大型语言模型(LLM)打交道的人,我也几乎觉得高努力程度下的模型与中等努力程度下的同一模型是不同的。我不认为努力程度是一个你可以沿其行走的光谱。低努力程度下的 Fable 可能比高努力程度下的另一个模型更好。因此,我认为这是一个我们需要进行优化的更大的网格。对于我们要基准测试的每一个用例,我们不仅检查每个模型,还检查每个模型的每个努力程度。
As someone working centrally on how we do AI, I want recommendations that are really clear, such as: "Use this model on high as the default for this kind of task." We have to make the tools do that automatically as much as possible, and then let experts explore when they want to.
作为在 AI 工作方式上处于核心位置的人,我希望得到非常明确的建议,例如:“将这种任务的高努力程度模型作为默认使用。”我们必须尽可能让工具自动执行这些操作,然后在专家想要探索时让他们去探索。
How are you thinking about incorporating safeguards with today's frontier models?
你们是如何考虑将安全措施融入当今的前沿模型的?
Some things are so critical that you need guarantees, and we're not ready to let LLMs loose on our codebase. We always leave merges to main and deploys to production up to people, along with related changes like feature flags. Agents can make code changes, but those changes have to pass our security checks, and then two humans have to approve the deploy. That dual-approval layer makes it impossible for an LLM to push those kinds of changes on its own.
有些事情至关重要,你需要保证,而我们还没有准备好让 LLM 在我们的代码库中自由运行。我们始终将合并到主分支和部署到生产环境留给人员决定,包括相关的更改,如功能标志。智能体可以进行代码更改,但这些更改必须通过我们的安全检查,然后需要两名人类批准部署。这种双重批准层使得 LLM 无法自行推送这类更改。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力