
When you need Claude to do multiple things at once, this shows you how to spawn subagents that actually run in parallel instead of one after another. The key trick is putting all your Task tool calls in a single message with run_in_background set to true. Works great for stuff like analyzing different directories simultaneously, implementing independent features, or running multiple types of reviews at once. The guide includes the TodoWrite integration pattern where multiple tasks can be in_progress at the same time, plus it's honest about when not to parallelize, like when tasks depend on each other or touch the same files. Cuts execution time from N times 30 seconds to just 30 seconds for N independent tasks.
$ npx -y skills add cloudai-x/claude-workflow-v2 --skill parallel-execution --agent claude-codeInstalls into .claude/skills of the current project.
Parallel execution spawns multiple subagents simultaneously using the Agent tool (named Task before Claude Code 2.1.63; Task still works as an alias). Subagents run in the background by default, so N tasks run concurrently, dramatically reducing total execution time.
Critical Rule: ALL Agent calls MUST be in a SINGLE assistant message for true parallelism. If the calls are in separate messages, they launch one after another.
Before spawning, verify tasks are independent:
Each subagent receives a custom prompt defining its role:
You are a [ROLE] specialist for this specific task.
Task: [CLEAR DESCRIPTION]
Context:
[RELEVANT CONTEXT ABOUT THE CODEBASE/PROJECT]
Sponsors