Claude Code's Dynamic Workflows let you dispatch hundreds of parallel agents to migrate code, audit security, review PRs, and fix type errors automatically in minutes.

By Meng Li

Published: 2026-08-06

URL: https://pythonlibraries.substack.com/p/i-had-claude-deploy-100-agents-to


Last week we did a code migration: 500 components needed to be switched from styled-components to Tailwind.

In the past, a job like this would have taken me a whole week. Not because I was lazy—it just felt endless. Open each file, change the syntax, run tests, fix errors, move to the next one.

But this time was different. I typed one line in Claude Code, then went to make a cup of coffee. When I came back, it had written a JS script on its own, spun up dozens of Agents working in parallel—each Agent handling one file without interfering with the others—and automatically verified the results at the end.

500 files, done in 20 minutes.

This feature is called Dynamic Workflows. Today let’s talk about how to use it.

How is it different from Subagents?

You might say: Wait, can’t Subagents also work in parallel?

True. But the difference lies in who does the scheduling.

With Subagents, Claude itself spawns them one by one inside the conversation, and every result gets stuffed back into the context window. Handling 5 tasks is fine; handling 50 blows up the context.

Dynamic Workflows work differently—Claude writes a JavaScript script to act as the commander. That script runs in the background, and Claude’s context window only receives the final results. All intermediate state stays in the script’s variables.