Install
openclaw skills install swarm-sprintParallel multi-agent coding sprints using git worktree isolation. Use when running 2+ coding tasks on a repository that touch different parts of the codebase...
openclaw skills install swarm-sprintParallel multi-agent coding sprints using git worktree isolation.
Trigger phrases: "Run a swarm sprint", "Parallel sprint on [repo]", "Use swarm for these tasks"
Before spawning any agents, run the conflict analyzer:
node <skill-dir>/scripts/swarm.js --repo <repo_path> --tasks tasks.json --plan-only
Read the output:
✓ No conflicts → all tasks run in parallel⚠ HIGH conflict → affected tasks auto-serialized into separate groupsLOW conflict → runs parallel, watch the mergeNever skip this step. Two agents modifying the same file = merge conflict = wasted work.
[
{
"id": "short-unique-id",
"description": "Exactly what to build — be specific",
"role": "coder",
"successCriteria": ["Specific outcome", "TypeScript compiles clean"]
}
]
node <skill-dir>/scripts/swarm.js --repo <repo_path> --tasks tasks.json --plan-only
node <skill-dir>/scripts/swarm.js --repo <repo_path> --tasks tasks.json
Creates isolated git worktree + branch per task. Writes swarm-packages.json.
Read swarm-packages.json. For each package, spawn a subagent with:
worktreePathinstructions fieldgit add -A && git commit before reporting backgit diff main..swarm/<branch-name>
git merge swarm/<branch-name>
Merge one at a time. Verify TypeScript clean after each.
node <skill-dir>/scripts/swarm.js --repo <repo_path> --cleanup swarm-packages.json
Deletes all worktrees and branches. Always run this.
| Role | Behavior |
|---|---|
coder | Implements task. No unrelated refactoring. Runs tsc when done. |
reviewer | Reviews diff skeptically. Flags bugs, type errors, missing error handling. |
tester | Writes tests following existing patterns. |
schema.prisma, migration SQLmemory/swarm-log.mdnode <skill-dir>/scripts/swarm.js --repo <repo_path> --tasks tasks.json --dry-run