Glean 拾遗
Daily /2026-05-30 / Introducing dynamic workflows in Claude Code

Introducing dynamic workflows in Claude Code

Source claude.com Glean’d 2026-05-30 08:04 Read 7 min
AI summary

Claude Code now supports dynamic workflows, enabling parallel orchestration of tens to hundreds of subagents within a single session for large-scale engineering tasks. It handles end-to-end jobs like codebase-wide bug hunts, migrations across hundreds of files, and security audits. Workflows dynamically plan, fan out, cross-validate, and converge results. Example: Bun was ported from Zig to Rust in 11 days, producing ~750k lines with 99.8% test pass rate. Workflows show plans before execution, can resume after interruption, but consume significantly more tokens. Available in research preview for Max, Team, Enterprise users.

Original · 7 min
claude.com ↗
§ 1

§ 2

Today we're introducing dynamic workflows in Claude Code, helping Claude take on the most challenging tasks end-to-end. Work you'd normally plan in quarters now finishes in days. Claude dynamically writes orchestration scripts that run tens to hundreds of parallel subagents in a single session, checking its work before anything reaches you.

Some problems are too big for one pass by a single agent, especially in complex, legacy codebases: a bug hunt across an entire service, a migration that touches hundreds of files, a plan you want stress-tested from every angle before you commit to it. Dynamic workflows can handle all of these end-to-end.

今天,我们宣布在 Claude Code 中引入「动态工作流」,让 Claude 能够端到端地处理最具挑战性的任务。原来需要花费整个季度规划的工作,现在只用几天就能完成。Claude 会动态编写编排脚本,在单个会话中并行运行数十到数百个子代理,并在结果交给你之前自行校验。

有些问题对于单个代理的一遍处理来说过于庞大,尤其是在复杂的、遗留的代码库中:比如在整个服务中搜索 bug、涉及数百个文件的大规模迁移、或者在提交之前希望在各个角度进行压力测试的方案。动态工作流能够端到端地处理所有这些场景。

§ 3

§ 4

Dynamic workflows are available today in research preview in the Claude Code CLI, Desktop, and the VS code extension for Max, Team, and Enterprise (if admin enabled) plans, as well as on the Claude API, on Amazon Bedrock, Vertex AI, and Microsoft Foundry.

动态工作流即日起在 Claude Code CLI、桌面版以及 VS Code 插件中以研究预览形式提供,适用于 Max、Team 和 Enterprise(由管理员启用)计划,同时也通过 Claude API、Amazon Bedrock、Vertex AI 和 Microsoft Foundry 开放。

§ 5

Note: Dynamic workflows can consume substantially more tokens than a typical Claude Code session, so we recommend starting on a scoped task to get a feel for usage in your work.

请注意:动态工作流可能比普通的 Claude Code 会话消耗显著更多的 token,因此建议先从范围明确的任务开始,以了解实际用量。

§ 6

For the best experience, turn on auto mode when using dynamic workflows. From there, you have two ways to start a workflow:

Ask Claude to create a dynamic workflow directly (e.g., “Create a workflow”), or

Switch on a new Claude Code-specific setting called ultracode. This is accessible through the effort menu and it sets the effort level to xhigh, while letting Claude decide automatically when to use a workflow to handle your task.

为获得最佳体验,请在使用动态工作流时开启自动模式。然后,您可以通过以下两种方式启动工作流:

直接要求 Claude 创建动态工作流(例如,“创建一个工作流”),或者

打开一个名为 ultracode 的 Claude Code 专属新设置。该设置位于 effort 菜单中,会将努力级别设为 xhigh,同时让 Claude 自行决定何时使用工作流来处理您的任务。

§ 7

Dynamic workflows in action

Early access users and teams inside Anthropic have been using dynamic workflows for a wide range of use cases, including:

动态工作流实践

Anthropic 内部的抢先体验用户和团队已将动态工作流用于多种场景,包括:

§ 8

Codebase-wide bug hunts, profiler-guided optimization audits, and security audits: Claude searches a service or repo in parallel, then runs independent verification on every finding so the report surfaces real issues. The same shape works for hardening passes: auth checks, input validation, and unsafe patterns across an entire codebase.

全代码库范围的 bug 搜索、基于 profiler 的优化审计和安全审计:Claude 会并行搜索服务或仓库,然后对每项发现运行独立验证,确保报告只呈现真实问题。这种模式同样适用于加固扫描:在整个代码库中进行身份验证检查、输入验证和不安全模式的排查。

§ 9

Large migrations and modernization efforts: Claude can handle framework swaps, API deprecations, language ports that span thousands of files end-to-end.

大规模迁移和现代化改造:Claude 可以端到端处理涉及数千个文件的框架替换、API 弃用和语言移植。

§ 10

Critical work you need checked twice: When the cost of a wrong answer is high, a workflow gives Claude independent attempts at the problem and adversarial agents working to break the result before you see it.

需要双重验证的关键工作:当错误答案的代价很高时,工作流会让 Claude 对问题进行独立尝试,并让对抗性代理在你看到结果之前尝试破坏它。

§ 11

Logo

Logo

“Dynamic workflows have been especially valuable for discovery and review tasks across large codebases. We’ve seen strong results using it to identify dead code and surface cleanup opportunities that traditional static analysis missed, helping our engineers move faster on maintenance and refactoring work.”

Alessio Vallero, Senior Engineering Manager

Logo

Logo

“动态工作流对大型代码库的探索和审查任务特别有价值。我们在使用它识别死代码和发现传统静态分析遗漏的清理机会方面取得了显著成果,帮助工程师更快地推进维护和重构工作。”

Alessio Vallero,高级工程经理

§ 12

Logo

Logo

“Dynamic workflows fill the gap between firing off a single subagent and building out a full agent team. Plan to implementation just flows, so we can trust longer runs without losing visibility.”

Ken Takao, Lead Systems Engineer

Logo

Logo

“动态工作流填补了启动单个子代理与组建完整代理团队之间的空白。从计划到实施一气呵成,让我们可以信赖更长时间的运行,而不会失去可见性。”

Ken Takao,首席系统工程师

§ 13

Rewriting Bun with dynamic workflows

An example of what dynamic workflows can unlock at scale is the recent rewrite of Bun. Jarred Sumner used dynamic workflows to port Bun from Zig to Rust with 99.8% of the existing test suite passing, roughly 750,000 lines of Rust, and eleven days from first commit to merge. One workflow mapped the right Rust lifetime for every struct field in the Zig codebase. The next wrote every .rs file as a behavior-identical port of its .zig counterpart, hundreds of agents working in parallel with two reviewers on each file. A fix loop then drove the build and test suite until both ran clean. After the port landed, an overnight workflow addressed unnecessary data copies and opened a PR for each for final review. While not yet in production, all of this was handled by dynamic workflows. Jarred will be writing about this more in the future.

使用动态工作流重写 Bun

近期 Bun 的重写便是动态工作流在规模化场景下所能实现的一个例子。Jarred Sumner 利用动态工作流将 Bun 从 Zig 移植到 Rust,现有测试套件通过率达 99.8%,Rust 代码量约 75 万行,从首次提交到合并仅用了十一天。一个工作流为 Zig 代码库中的每个结构体字段映射出正确的 Rust 生命周期;另一个工作流则编写了每个行为完全相同的 .rs 文件来替代对应的 .zig 文件,成百上千的代理并行工作,每个文件配备两个审核者。随后通过修复循环驱动构建和测试套件,直到两者均干净通过。移植完成后,一个隔夜工作流处理了不必要的数据拷贝,并为每处改进提交了 PR 以供最终审核。虽然尚未投入生产,但所有这些都由动态工作流完成。Jarred 未来将对此进行更多分享。

§ 14

How it works

When a workflow kicks off, Claude plans dynamically based on your prompt, breaks it into subtasks, and fans the work out across subagents running in parallel. Results are checked before they're folded in, and you come back to a single, coordinated answer. Agents address the problem from independent angles, other agents try to refute what they found, and the run keeps iterating until the answers converge—which is how a workflow reaches results a single pass can't.

Dynamic workflows are built for parallel and long-running work that can extend into hours and days, doing the most complex engineering work that previously would have taken weeks. Progress is saved as the run goes, so a job that's interrupted picks up where it left off instead of starting over. Because the coordination happens outside the conversation, the plan stays on track no matter how big the task gets.

工作原理

当工作流启动时,Claude 会根据你的提示动态规划,将任务分解为子任务,然后将工作分派给并行运行的子代理。结果在汇总前会经过检查,你最终得到的是一个协调一致的答案。代理们从独立的角度解决问题,其他代理则试图驳斥它们的发现,运行过程会不断迭代直到答案收敛——这就是工作流能够达到单次处理无法企及的结果的方式。

动态工作流专为可能持续数小时甚至数天的并行长时间运行任务而设计,用来完成以前需要数周才能完成的最复杂的工程工作。运行过程中会实时保存进度,因此即使任务中断也能从中断处继续,无需重新开始。由于协调发生在对话之外,无论任务多大,计划都不会偏离轨道。

§ 15

It’s important to note that dynamic workflows consume meaningfully more usage than a typical Claude Code session. The first time a workflow triggers, Claude Code shows what's about to run and asks you to confirm. Organization admins can also optionally disable workflows through managed settings.

需要强调的是,动态工作流消耗的用量明显高于普通 Claude Code 会话。首次触发工作流时,Claude Code 会显示即将运行的内容并请你确认。组织管理员也可以通过托管设置选择禁用工作流。

§ 16

Getting started

If you're on a Max or Team plan, or using Claude Code via the API, dynamic workflows are on by default. Ask Claude to create a workflow or turn on the Claude Code-specific setting ultracode to get started. If you’re on an Enterprise plan, dynamic workflows are off by default at launch. Your admin can easily change this in the Claude Code settings.

Read the documentation to learn more.

开始使用

如果你使用的是 Max 或 Team 计划,或者通过 API 使用 Claude Code,动态工作流默认开启。要求 Claude 创建工作流,或打开 Claude Code 专属的 ultracode 设置即可开始。如果你使用的是 Enterprise 计划,动态工作流在发布时默认关闭,管理员可以在 Claude Code 设置中轻松更改。

阅读文档了解更多。

§ 17

Transform how your organization operates with Claude

Get the developer newsletter

Product updates, how-tos, community spotlights, and more. Delivered monthly to your inbox.

Please provide your email address if you'd like to receive our monthly developer newsletter. You can unsubscribe at any time.

Thank you! You’re subscribed.

Sorry, there was a problem with your submission, please try again later.

利用 Claude 改变组织的运作方式

订阅开发者简报

产品更新、操作指南、社区亮点等。每月发送到您的邮箱。

如需接收月度开发者简报,请提供您的电子邮件地址。您可以随时退订。

谢谢!订阅成功。

抱歉,提交出现错误,请稍后重试。

Open source ↗