
Parallel Execution
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.
- skills.sh installs
- 215
- GitHub stars
- 1.4K
- last updated
- Jun 9, 2026
Install
$ npx -y skills add cloudai-x/claude-workflow-v2 --skill parallel-execution --agent claude-codeInstalls into .claude/skills of the current project.
Files
Parallel Execution Patterns
When to Load
- Trigger: Multi-agent tasks, concurrent operations, spawning subagents, parallelizing independent work
- Skip: Single-step tasks or sequential workflows with no parallelization opportunity
Core Concept
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.
Execution Protocol
Step 1: Identify Parallelizable Tasks
Before spawning, verify tasks are independent:
- No task depends on another's output
- Tasks target different files or concerns
- Can run simultaneously without conflicts
Step 2: Prepare Dynamic Subagent Prompts
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
Details
- Repository
- github.com/cloudai-x/claude-workflow-v2
- Categories
- AI & Agent Building, Automation & Workflows
- License
- MIT
- First seen
- Jun 11, 2026