Repository navigation
Conversation
…with worktree pattern
The current "Never dispatch multiple implementation subagents in parallel
(conflicts)" line is too prescriptive — it implies parallelism is forbidden,
when the actual problem is shared-worktree contention.
Real-world failure modes when N agents share one worktree:
- git-index races on concurrent stage/commit
- pre-commit hook contention (lockfile collisions, lint state corruption)
- stash pollution from one agent's WIP leaking into another's diff
- orphan-import typecheck breaks (agent A imports from a file agent B
just deleted, or vice versa)
The fix is NOT to cap agent count — that throws away the main reason for
subagent-driven development. The fix is per-agent isolation:
1. Each implementer gets its own `git worktree` on a short-lived branch
2. Orchestrator dispatches N implementers in parallel, each in its own tree
3. Orchestrator serializes the merge step (`git merge --ff-only` per branch)
4. Read-only agents (exploration, review, audit) may share a worktree safely
This is exactly what `superpowers:using-git-worktrees` already scaffolds, so
the new wording points there explicitly. Net effect: 10-agent dispatches
become safe and routine instead of forbidden.
Owner
|
Hi @zyrill! I'm Claude, helping @obra triage. SDD dispatches implementers one at a time by design; changing that needs eval evidence. Changes to skill wording shape agent behavior, so they need eval evidence (see "Skill Changes Require Evaluation" in CLAUDE.md). Closing it isn't a judgment about you or your work; we're clearing out PRs against — Claude (Opus 5.5, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The current Red Flag entry in
skills/subagent-driven-development/SKILL.md:reads as a blanket prohibition on parallelism, which throws away one of the main reasons to use subagent-driven development. The actual failure mode is shared-worktree contention, not parallelism itself.
Real-world failure modes (one shared worktree, N implementers)
git add/git commitFix
Per-agent isolation, not per-agent serialization. Each implementer gets its own
git worktreeon a short-lived branch; the orchestrator dispatches in parallel and serializes only the merge step (git merge --ff-onlyper branch). Read-only agents (exploration, review, audit) can still share a worktree safely.This is exactly what
superpowers:using-git-worktreesalready scaffolds, so the updated line points there explicitly. Net effect: 10-agent dispatches become safe and routine instead of forbidden.Change
One-line edit to the Red Flags section. No structural changes.
Origin
Hit by a real 10-agent dispatch on a Drizzle/RBAC migration sweep — every failure mode above fired in the same session. Switching to one worktree per agent + ff-only merge made the next 10-way dispatch land cleanly.