sw-team
Skill164 starsChanged 13 months agoMITView on GitHub
Run one SpecWeave increment with several agents in parallel - any tool or account, a worktree each, claims through the ledger, one close. Use for "team", "parallel agents", 3+ disjoint lanes.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- sw-autoSkill
- sw-brainstormSkill
- sw-doneSkill
- sw-doSkill
- sw-handoffSkill
- sw-incrementSkill
- sw-jevSkill
- sw-projectSkill
- sw-reviewSkill
- sw-syncSkill
The file
Files
sw-team: several agents, one increment
Agents can be Claude Code, Codex, Cursor, Grok, another account or a person. They
coordinate only through committed files: spec.md (tasks), ledger.jsonl (claims and
evidence) and handoffs. No message bus is needed; your tool's subagents or agent teams
are an accelerator, never a requirement.
You are the lead
You split, start, watch, merge and close. You do not implement. Fan out only with three or more disjoint lanes or 15+ tasks; otherwise use sw-do.
1. Split
Filesis the ownership unit. Two tasks that touch one file cannot run in parallel: merge them, or put**Dependencies**: T-01under the later one. Shared contracts (types, schema, migrations) go in an early task the others depend on.- Group tasks into lanes with disjoint
Files: 2 to 5 lanes, one agent each. specweave task list 0042shows every task open. Commit spec.md.
2. Start each agent
One worktree and branch per agent:
git worktree add ../0042-api -b inc/0042-api. Then give that agent (a subagent, a
terminal in the worktree, another tool or account) this brief:
You are agent "api" on increment 0042 in ../0042-api (branch inc/0042-api).
Your tasks: T-01, T-02. Run the sw-do loop (`specweave task next 0042`, claim, ...)
on your tasks only. Edit only their Files. Commit as "0042: ...". `task done --run`
needs exit 0. When done or blocked: `specweave task release --all-mine`,
`specweave note "api: <done | blocked: why>" 0042`, commit and push your branch.Set SPECWEAVE_AGENT=api in that agent's environment so its claims are distinct.
In Claude Code, specweave team opens agent-team panes for the same setup.
3. Watch cheaply
Poll specweave task list 0042 instead of chatting. blocked rows are your queue:
unblock (supply the secret, split the task, decide) and tell only that agent. A claim
older than 2 hours with no progress is stale; a replacement agent claims it with
specweave task claim T-NN --force. Agents' notes show in specweave pickup --no-apply.
Lane agents do not use specweave handoff: it moves the one shared handoff pointer.
4. Merge and close
- Merge the lane branches in dependency order.
ledger.jsonlconflicts resolve by keeping every line from both sides. specweave verify 0042on the merged tree; red becomes a fix task for one agent.- sw-review on the merged diff, then
specweave complete 0042. Only the lead closes. git worktree remove ../0042-apifor each lane.
Manual path (no CLI)
Same split and brief; each agent appends its own claim, done and release lines to
ledger.jsonl as in sw-do's manual path, plus a note line as in sw-handoff's.
Anti-patterns
- An agent editing outside its tasks'
Files. Add a task instead. - One increment per agent: you lose the single ledger and the single verify.
- The lead implementing "just this small piece", or closing while a claim is live.
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.

