Orchestrate subagents at scale with dynamic workflows Claude Code has launched dynamic workflows, a new feature that allows users to orchestrate subagents at scale through scripted automation. The tool, available in research preview on paid plans and major cloud platforms, enables tasks like codebase-wide bug sweeps and 500-file migrations by having Claude write and execute orchestration scripts while keeping the user's session responsive. Documentation Index Fetch the complete documentation index at: https://code.claude.com/docs/llms.txt Use this file to discover all available pages before exploring further. Dynamic workflows are in research preview. They require Claude Code v2.1.154 or later and are available on all paid plans, with Anthropic API access, and on Amazon Bedrock, Google Cloud Vertex AI, and Microsoft Foundry. On Pro, turn them on from the Dynamic workflows row in /config . subagents /docs/en/sub-agents at scale. Claude writes the script for the task you describe, and a runtime executes it in the background while your session stays responsive. Reach for a workflow when a task needs more agents than one conversation can coordinate, or when you want the orchestration codified as a script you can read and rerun. Examples include a codebase-wide bug sweep, a 500-file migration, a research question that needs sources cross-checked against each other, and a hard plan worth drafting from several independent angles before you commit to one. This page covers how to: - Decide when to use a workflow when-to-use-a-workflow instead of subagents or skills Run a bundled workflow run-a-bundled-workflow with /deep-research Have Claude write a workflow have-claude-write-a-workflow for your task and save it- Understand how a workflow runs how-a-workflow-runs and manage runs manage-runs When to use a workflow Subagents /docs/en/sub-agents , skills /docs/en/skills , and workflows can all run a multi-step task. The difference is who holds the plan: | Subagents | Skills | Workflows | | |---|---|---|---| | What it is | A worker Claude spawns | Instructions Claude follows | A script the runtime executes | | Who decides what runs next | Claude, turn by turn | Claude, following the prompt | The script | | Where intermediate results live | Claude’s context window | Claude’s context window | Script variables | | What’s repeatable | The worker definition | The instructions | The orchestration itself | | Scale | A few delegated tasks per turn | Same as subagents | Dozens to hundreds of agents per run | | Interruption | Restarts the turn | Restarts the turn | Resumable in the same session | Run a bundled workflow The quickest way to see a workflow in action is to run /deep-research , the built-in workflow bundled-workflows Claude Code includes for investigating a question across many sources. You’ll see agents work through a set of phases in the background while your session stays free, and get one report at the end instead of a turn-by-turn transcript. Run the workflow Run /deep-research with a question you want investigated. It fans out web searches across several angles, fetches and cross-checks the sources it finds, and synthesizes a cited report.Allow workflows Claude Code asks whether to allow the workflow. Select Yes to continue. The exact prompt depends on your permission mode. See Approve the plan before it runs approve-the-plan-before-it-runs for the per-mode options.Watch progress The run starts in the background. Run The view shows each phase with its agent count, token total, and elapsed time. Drill into any phase to see its agents and what each one found. See /workflows , use the arrow keys to select the run, and press Enter to open its progress view: Watch the run watch-the-run for the full set of controls.You can also watch from the task panel below the input box: a one-line progress summary appears there while the run is going. Press the down arrow to focus it, then Enter to expand. have Claude write one have-claude-write-a-workflow , and once a run does what you wanted you can save it save-the-workflow-for-reuse as a command of your own. Bundled workflows Claude Code includes /deep-research as a built-in workflow: | Command | What it does | |---|---| /deep-research