/orchestration-strategy:orchestration-strategyfrom orchestration-strategy
Use when facing multiple implementation tasks that could benefit from parallelization or when deciding between solo, parallel agent, sequential subagent, or agent team approaches
Ships in orchestration-strategy. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Select the most cost-efficient orchestration approach for a multi-task workload, then hand off to the appropriate execution skill with explicit constraints.
Core principle: Use the cheapest strategy that satisfies the task's coordination needs. Don't reach for Agent Teams when parallel agents suffice. Don't parallelize when sequential is safer.
Announce at start: "I'm using the orchestration-strategy skill to evaluate the best approach for this work."
| Strategy | Mechanism | Cost | Speed | When |
|---|---|---|---|---|
| Solo | Do it yourself | 1x | Slowest | < 3 tasks, no complexity |
| Parallel agents | Multiple Agent tool calls | ~Nx | Fastest | Independent tasks |
| Sequential subagents | One Agent at a time with review | ~Nx | Moderate | Dependencies, file overlap |
| Agent Teams | TeamCreate + persistent teammates | 3-7x | Fastest coordinated | Inter-agent communication needed |
Parallel and sequential have similar token cost (~Nx). They differ in wall-clock time (parallel is faster) vs integration risk (sequential is safer).
digraph when {
"Multiple tasks to execute?" [shape=diamond];
"Use this skill" [shape=box];
"Just do the work" [shape=box];
"Multiple tasks to execute?" -> "Use this skill" [label="3+ tasks\nor complex"];
"Multiple tasks to execute?" -> "Just do the work" [label="1-2 simple tasks"];
}
Before deciding, you MUST read:
If the plan doesn't specify which files each task modifies, read the codebase to infer this.
| Dimension | Question |
|---|---|
| Task count | How many tasks? (< 3 with no overlap → solo) |
| Independence | Can tasks run without shared state? |
| File overlap | Do tasks modify the same files? |
| Merge complexity | If overlap exists — trivial or semantic? (see below) |
| Communication needs | Do workers need to discuss, debate, or negotiate mid-work? |
| Review requirements | Need quality gates between tasks? |
| Cost efficiency | What's the cheapest strategy that works? |
This determines whether worktree isolation can enable parallelism despite file overlap. Look at concrete signals:
When uncertain, prefer sequential. The cost of conflict resolution exceeds the cost of slightly slower execution.
digraph decision {
"Tasks < 3,\nno overlap?" [shape=diamond];
"Solo" [shape=box];
"All independent,\nno file overlap?" [shape=diamond];
"Parallel agents\n(shared worktree)" [shape=box];
"Independent,\nfile overlap?" [shape=diamond];
"Merge conflicts\ntrivial?" [shape=diamond];
"Parallel agents\n+ worktree isolation" [shape=box];
"Sequential\nsubagents" [shape=box];
"Dependency chains\nor need review?" [shape=diamond];
"Need inter-agent\ncommunication?" [shape=diamond];
"Teams enabled?" [shape=diamond];
"Agent Teams" [shape=box];
"Evaluate fallback" [shape=box];
"Tasks < 3,\nno overlap?" -> "Solo" [label="yes"];
"Tasks < 3,\nno overlap?" -> "All independent,\nno file overlap?" [label="no"];
"All independent,\nno file overlap?" -> "Parallel agents\n(shared worktree)" [label="yes"];
"All independent,\nno file overlap?" -> "Independent,\nfile overlap?" [label="no"];
"Independent,\nfile overlap?" -> "Merge conflicts\ntrivial?" [label="yes"];
"Independent,\nfile overlap?" -> "Dependency chains\nor need review?" [label="no overlap,\nbut dependencies"];
"Merge conflicts\ntrivial?" -> "Parallel agents\n+ worktree isolation" [label="trivial"];
"Merge conflicts\ntrivial?" -> "Sequential\nsubagents" [label="semantic"];
"Dependency chains\nor need review?" -> "Sequential\nsubagents" [label="yes"];
"Dependency chains\nor need review?" -> "Need inter-agent\ncommunication?" [label="no"];
"Need inter-agent\ncommunication?" -> "Teams enabled?" [label="yes"];
"Need inter-agent\ncommunication?" -> "Sequential\nsubagents" [label="no"];
"Teams enabled?" -> "Agent Teams" [label="yes\n(TeamCreate available)"];
"Teams enabled?" -> "Evaluate fallback" [label="no"];
}
Detecting Agent Teams: Check if the TeamCreate tool is available. If it's not in the tool list, teams are not enabled.
Fallback when teams unavailable: Evaluate whether parallel agents or sequential subagents is the better fallback. Explain the trade-off to the user: "Agent Teams would be ideal here for inter-agent communication, but the feature isn't enabled. Falling back to [chosen strategy] — the trade-off is [specific limitation]."
Worktrees don't just provide isolation — they expand the set of tasks eligible for parallelism. Without worktrees, file overlap forces sequential execution. With worktrees, file overlap only forces sequential execution when conflicts would be semantic (shared structs, same code blocks).
Key question: Is the time saved by parallelism worth the merge conflict resolution cost?
50% of tasks touch the same region of the same file → definitely sequential
After selecting a strategy, you MUST communicate these constraints to the downstream skill. This is a checklist — ensure every applicable item is explicitly stated in your instructions:
This is enforced by natural language instructions in context — there is no structured API. Be explicit.
Parallel agents, no overlap: "Use dispatching-parallel-agents. Tasks are fully independent with no shared files. Shared worktree is fine. Use Sonnet for agents."
Parallel agents, trivial overlap + worktrees:
"Use dispatching-parallel-agents. Each agent MUST use isolation: "worktree" on the Agent tool. Agents MUST squash all work into a single commit (git reset --soft $BASE && git commit) and report the commit hash. After all agents complete, cherry-pick commits in dependency order, verifying build + tests after each. See the cherry-pick integration protocol."
Sequential subagents: "Use subagent-driven-development. Sequential execution avoids file conflicts. No worktree isolation needed. Use Sonnet for agents."
Agent Teams: "Use agent-team-development. Default autonomy: self-organizing. Use detached HEAD worktree isolation per teammate. Sonnet for all teammates. See the cherry-pick integration protocol for integration."
This applies whenever worktree isolation is used (parallel agents or Agent Teams).
Location: .claude/worktrees/<task-id>/
Creation: git worktree add --detach .claude/worktrees/<task-id>
Why detached HEAD: No branches to clean up. Commit hash is the only artifact. git gc prunes unreachable commits after worktree removal.
Each agent in a worktree:
BASE=$(git rev-parse HEAD)git reset --soft $BASE
git commit -m "<task-id>: <description>"
Leader collects: { task_id → commit_hash }
Before integration, ask the user:
In topological dependency order (dependencies first, then smallest-diff-first for independents):
git cherry-pick <commit_hash>git add <files> && git cherry-pick --continueWhen NOT to auto-resolve — surface to the user:
After integration verified and agents shut down:
git worktree remove .claude/worktrees/<task-id>
No branch cleanup needed. Unreachable commits pruned by git gc.
A batch is all tasks at the same tier in the dependency graph — all tasks whose dependencies have been satisfied.
After integrating a batch, re-run the decision analysis on remaining tasks. Characteristics may have changed — a foundation task landing may unlock parallel work that wasn't viable before. This is an explicit step, not optional.
| Mistake | Why it's wrong |
|---|---|
| Defaulting to "solo" for all work | You lose the benefits of fresh-context subagents (no stale state, focused scope) |
| Parallelizing tasks with semantic file overlap | Merge conflicts cost more than the time saved |
| Using Agent Teams when parallel agents suffice | 3-7x cost for zero coordination benefit |
| Inventing ad-hoc file batching instead of using worktrees | The worktree + cherry-pick protocol exists — use it |
| Not considering cost as a decision factor | Token costs vary 1x to 7x depending on strategy |
| Forgetting to re-evaluate after a batch | The optimal strategy may change as tasks complete |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub cjthompson/claude-code-config --plugin orchestration-strategy