parallel-execution
Skill1.4k starsChanged 11 months agoMITView on GitHub
Patterns for parallel subagent execution using the Agent tool (formerly Task). Use when coordinating multiple independent tasks, spawning dynamic subagents, or implementing features that can be parallelized.
4 other projects use a version of this.
Trending
More talk lately.thin dataabout the whole repository
Most recently taken up by
- andreymudri/fleetmatestheir own version, first seen Oct 5, 2026
- kimasplund/integrated-reasoningtheir own version, first seen Aug 18, 2026
- beeltec/skillstheir own version, first seen Jul 28, 2026
- NoobyGains/godmodetheir own version, first seen Mar 9, 2026
Who's talking about CloudAI-X/claude-workflow-v2
- @tom-doerr.bsky.social“https://github.com/CloudAI-X/claude-workflow-v2”Bluesky · Feb 21, 2026 · 1 likes
- LeszekKantorek/skills-library“Import: some development skills”GitHub · Oct 5, 2026
- sudosubin/agents.nix“codex-plugins.github.cloudai-x.claude-workflow-v2: init at 2.0.7”GitHub · Oct 4, 2026
- sudosubin/agents.nix“claude-code-plugins.github.cloudai-x.claude-workflow-v2: init at 2.0.7”GitHub · Oct 4, 2026
- sudosubin/agents.nix“claude-code-marketplaces.github.cloudai-x.claude-workflow-v2: init at 2.0.7”GitHub · Oct 4, 2026
The biggest 5 of 11 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 11
Talked about on GitHub and Bluesky (11 times).
On GitHub · 10
- Oct 5, 2026Import: some development skills — LeszekKantorek/skills-library0 reactions · 1 comment
- Oct 4, 2026codex-plugins.github.cloudai-x.claude-workflow-v2: init at 2.0.7 — sudosubin/agents.nix0 reactions
- Oct 4, 2026claude-code-plugins.github.cloudai-x.claude-workflow-v2: init at 2.0.7 — sudosubin/agents.nix0 reactions
- Oct 4, 2026claude-code-marketplaces.github.cloudai-x.claude-workflow-v2: init at 2.0.7 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.cloudai-x.claude-workflow-v2: 0-unstable-2026-06-02 → 2.0.7 — sudosubin/agents.nix0 reactions
5 more on GitHub
- Sep 26, 2026[Candidate] cloudai-x/claude-workflow-v2/skills/convex-backend - convex-backend — ProSkillsMD/proskills0 reactions · 2 comments
- Sep 26, 2026[Candidate] cloudai-x/claude-workflow-v2/skills/analyzing-projects - analyzing-projects — ProSkillsMD/proskills0 reactions · 1 comment
- Sep 26, 2026agent-skills.github.cloudai-x.claude-workflow-v2: init at 0-unstable-2026-06-02 — sudosubin/agents.nix0 reactions
- Apr 6, 2026Audit candidate: CloudAI-X/claude-workflow-v2 — xiaolai/nlpm0 reactions · 3 comments
- Jan 10, 2026New plugins: 41 skills from skills (low risk) — aiskillstore/marketplace0 reactions
On Bluesky · 1
- Feb 21, 2026https://github.com/CloudAI-X/claude-workflow-v2 — @tom-doerr.bsky.social1 likes and repost
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- NoobyGains/godmode★ 107same name
- andreymudri/fleetmates★ 2same name
- beeltec/skills★ 2same name
- kimasplund/integrated-reasoning★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository16 other files it gives its agents.
- skills/convex-backend/AGENTS.mdAGENTS.md
- skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- analyzing-projectsSkill
- convex-backendSkill
- database-designSkill
- designing-apisSkill
- designing-architectureSkill
- designing-testsSkill
- devops-infrastructureSkill
- error-handlingSkill
- managing-gitSkill
- optimizing-performanceSkill
- security-patternsSkill
- vercel-react-best-practicesSkill
- web-design-guidelinesSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 7 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Critical Rule: ALL Agent calls MUST be in a SINGLE assistant message for true parallelism.
- Distinctive: line 23
Before spawning, verify tasks are independent:
- Distinctive: line 25
No task depends on another's output
- Distinctive: line 91
When you have N tasks to implement, spawn N subagents:
- Very specific: line 140
When using parallel execution, task tracking (TaskCreate/TaskUpdate, or TodoWrite on older versions) differs:
- Very specific: line 142
Sequential execution: Only ONE task in_progress at a time
- Distinctive: line 224
Verify ALL Agent calls are in a SINGLE message
- Distinctive: line 234
Ensure tasks don't modify same files
- Distinctive: line 235
Add conflict resolution in synthesis step
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
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]
Files to work with:
[SPECIFIC FILES OR PATTERNS]
Output format:
[EXPECTED OUTPUT STRUCTURE]
Focus areas:
- [PRIORITY 1]
- [PRIORITY 2]Step 3: Launch All Tasks in ONE Message
CRITICAL: Make ALL Agent calls in the SAME assistant message:
I'm launching N parallel subagents:
[Agent 1]
description: "Subagent A - [brief purpose]"
prompt: "[detailed instructions for subagent A]"
[Agent 2]
description: "Subagent B - [brief purpose]"
prompt: "[detailed instructions for subagent B]"
[Agent 3]
description: "Subagent C - [brief purpose]"
prompt: "[detailed instructions for subagent C]"On Claude Code versions that still run subagents in the foreground by default, add run_in_background: true to each call.
Step 4: Collect Results
Each subagent returns its final result to the parent conversation automatically when it finishes. Wait until every subagent has reported before synthesizing; do not poll, and do not start dependent work early. (The separate TaskOutput call is deprecated.)
Step 5: Synthesize Results
Combine all subagent outputs into unified result:
- Merge related findings
- Resolve conflicts between recommendations
- Prioritize by severity/importance
- Create actionable summary
Dynamic Subagent Patterns
Pattern 1: Task-Based Parallelization
When you have N tasks to implement, spawn N subagents:
Plan:
1. Implement auth module
2. Create API endpoints
3. Add database schema
4. Write unit tests
5. Update documentation
Wave 1 - spawn 3 subagents (independent of each other):
- Subagent 1: Implements auth module
- Subagent 2: Creates API endpoints
- Subagent 3: Adds database schema
Wave 2 - after wave 1 has finished (these depend on its output):
- Subagent 4: Writes unit tests
- Subagent 5: Updates documentationPattern 2: Directory-Based Parallelization
Analyze multiple directories simultaneously:
Directories: src/auth, src/api, src/db
Spawn 3 subagents:
- Subagent 1: Analyzes src/auth
- Subagent 2: Analyzes src/api
- Subagent 3: Analyzes src/dbPattern 3: Perspective-Based Parallelization
Review from multiple angles simultaneously:
Perspectives: Security, Performance, Testing, Architecture
Spawn 4 subagents:
- Subagent 1: Security review
- Subagent 2: Performance analysis
- Subagent 3: Test coverage review
- Subagent 4: Architecture assessmentTask List Integration
When using parallel execution, task tracking (TaskCreate/TaskUpdate, or TodoWrite on older versions) differs:
Sequential execution: Only ONE task in_progress at a time
Parallel execution: MULTIPLE tasks can be in_progress simultaneously
# Before launching parallel tasks
todos = [
{ content: "Task A", status: "in_progress" },
{ content: "Task B", status: "in_progress" },
{ content: "Task C", status: "in_progress" },
{ content: "Synthesize results", status: "pending" }
]
# As each subagent reports back, mark its task completed
todos = [
{ content: "Task A", status: "completed" },
{ content: "Task B", status: "completed" },
{ content: "Task C", status: "completed" },
{ content: "Synthesize results", status: "in_progress" }
]When to Use Parallel Execution
Good candidates:
- Multiple independent analyses (code review, security, tests)
- Multi-file processing where files are independent
- Exploratory tasks with different perspectives
- Verification tasks with different checks
- Feature implementation with independent components
Avoid parallelization when:
- Tasks have dependencies (Task B needs Task A's output)
- Sequential workflows are required (commit -> push -> PR)
- Tasks modify the same files (risk of conflicts)
- Order matters for correctness
Performance Benefits
| Approach | 5 Tasks @ 30s each | Total Time |
| Sequential | 30s + 30s + 30s + 30s + 30s | ~150s |
| Parallel | All 5 run simultaneously | ~30s |
Parallel execution is approximately Nx faster where N is the number of independent tasks.
Example: Feature Implementation
User request: "Implement user authentication with login, registration, and password reset"
Orchestrator creates plan:
- Implement login endpoint
- Implement registration endpoint
- Implement password reset endpoint
- Add authentication middleware
- Write integration tests
Parallel execution:
Wave 1 - launching 4 subagents in parallel:
[Agent 1] Login endpoint implementation
[Agent 2] Registration endpoint implementation
[Agent 3] Password reset endpoint implementation
[Agent 4] Auth middleware implementation
[Results arrive as each subagent finishes]
Wave 2 - depends on wave 1:
[Agent 5] Integration test writing
[Synthesize into cohesive implementation]Troubleshooting
Tasks running sequentially?
- Verify ALL Agent calls are in a SINGLE message
- On older Claude Code versions, check
run_in_background: trueis set for each
Results not available?
- Results are delivered when each subagent finishes; wait for all of them
- A subagent that was denied a permission may return without finishing its work; check its report
Conflicts in output?
- Ensure tasks don't modify same files
- Add conflict resolution in synthesis step
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

