1h ago

Jarred Sumner, Bun creator, rewrote Bun in Rust in six days using Anthropic's new Claude Code dynamic workflows

The feature automates complex migrations using parallel subagents.

0
Original post

Also new in Claude Code: dynamic workflows (research preview). For the hardest tasks, Claude makes a plan, runs hundreds of parallel subagents, and verifies its work before reporting back. Think a migration touching hundreds of files. Read more: http://claude.com/blog/introducing-dynamic-workflows-in-claude-code

9:57 AM · May 28, 2026 View on X

Dynamic workflows and adversarial code review was part of what made it possible to rewrite Bun in Rust in 6 days.

ClaudeDevsClaudeDevs@ClaudeDevs

New in Claude Code (research preview): dynamic workflows. Claude writes an orchestration script on the fly, then spins up a large fleet of coordinated subagents in parallel to take on your most complex tasks. Use the word "workflow" in a prompt to get started.

5:05 PM · May 28, 2026 · 231.4K Views
5:28 PM · May 28, 2026 · 37.7K Views

(still writing blog post, this isn’t that)

Jarred SumnerJarred Sumner@jarredsumner

Dynamic workflows and adversarial code review was part of what made it possible to rewrite Bun in Rust in 6 days.

5:28 PM · May 28, 2026 · 37.7K Views
5:28 PM · May 28, 2026 · 2.7K Views

Example prompt:

Write a workflow where for each finding in ./REPORT.md.

Step 1: Fix the bug. Do not use any git or build commands to avoid stepping on another Claude running in the same branch. Step 2: Use 2 adversarial review agents to refute the bugfix. Uncover every flaw. Do not use any git or build commands to avoid stepping on another Claude running in the same branch.

After all are complete:

Step 3: Apply all the bugfixes, run the build and get the relevant tests to pass. Once passing, commit and make a PR.

Start by splitting up the ./REPORT.md into individual files with bugs and pass these files to the workflow.

Jarred SumnerJarred Sumner@jarredsumner

A pattern that works well For each unit of work: 1) Do the work. Don’t use git / cargo, slow commands are banned 2) Adversarial review 3) Apply changes Examples: - Rewrite every .zig file to .rs following patterns in ./PORTING and ./LIFETIMES.tsv - Get the crates to compile

5:28 PM · May 28, 2026 · 1.2K Views
5:28 PM · May 28, 2026 · 1.1K Views

A pattern that works well

For each unit of work: 1) Do the work. Don’t use git / cargo, slow commands are banned 2) Adversarial review 3) Apply changes

Examples: - Rewrite every .zig file to .rs following patterns in ./PORTING and ./LIFETIMES.tsv - Get the crates to compile

Jarred SumnerJarred Sumner@jarredsumner

Dynamic workflows, in my personal opinion, is the state of the art today for reliably using agents to complete medium - large projects. For extra large projects, I especially like using workflows with /loop.

5:28 PM · May 28, 2026 · 2.3K Views
5:28 PM · May 28, 2026 · 1.2K Views

Each individual step within a workflow gets the same prompt with arguments, and then within those steps a different context window (or a fork). Workflows split up work more deterministically than subagents. It’s closer to a bespoke build system for a project than chat.

Jarred SumnerJarred Sumner@jarredsumner

Example prompt: Write a workflow where for each finding in ./REPORT.md. Step 1: Fix the bug. Do not use any git or build commands to avoid stepping on another Claude running in the same branch. Step 2: Use 2 adversarial review agents to refute the bugfix. Uncover every flaw. Do not use any git or build commands to avoid stepping on another Claude running in the same branch. After all are complete: Step 3: Apply all the bugfixes, run the build and get the relevant tests to pass. Once passing, commit and make a PR. Start by splitting up the ./REPORT.md into individual files with bugs and pass these files to the workflow.

5:28 PM · May 28, 2026 · 1.1K Views
5:28 PM · May 28, 2026 · 997 Views

When you split up the work this way, Claude focuses on just the task it needs to and empirically this makes it more effective.

I’ve seen individual workflows run for 10 hours continuously. I imagine this will be very common.

Jarred SumnerJarred Sumner@jarredsumner

Each individual step within a workflow gets the same prompt with arguments, and then within those steps a different context window (or a fork). Workflows split up work more deterministically than subagents. It’s closer to a bespoke build system for a project than chat.

5:28 PM · May 28, 2026 · 997 Views
5:28 PM · May 28, 2026 · 1.9K Views

Workflows can cost a lot of tokens. And that plus the split context windows are part of what makes them effective.

You can ask Claude to use a ballpark number of tokens to use more for harder tasks or to save tokens for easier tasks

Jarred SumnerJarred Sumner@jarredsumner

When you split up the work this way, Claude focuses on just the task it needs to and empirically this makes it more effective. I’ve seen individual workflows run for 10 hours continuously. I imagine this will be very common.

5:28 PM · May 28, 2026 · 1.9K Views
5:28 PM · May 28, 2026 · 1.8K Views
Jarred Sumner, Bun creator, rewrote Bun in Rust in six days using Anthropic's new Claude Code dynamic workflows · Digg