Spec Kitty was designed for multi-agent development orchestration—it keeps parallel assistants synchronized while protecting the quality of shared artifacts. This guide outlines patterns that help teams run many AI agents in parallel without incurring merge chaos.
/spec-kitty.specify, /spec-kitty.plan, /spec-kitty.tasks) happens in the main repository. Worktrees are created on-demand for each work package during implementation..worktrees/001-feature-WP01/), enabling true parallel development.planned → doing → for_review → done via frontmatter fields, ensuring the dashboard and history stay in sync.Recommended: Use jujutsu (jj) for multi-agent development. jj provides automatic rebasing when dependencies change and non-blocking conflicts—see Jujutsu for Multi-Agent Development.
# In main repository
/spec-kitty.specify "Add user authentication system"
This creates:
kitty-specs/001-user-authentication-system/spec.md (committed to main)Share the feature slug (e.g., 001-user-authentication-system) with all participating agents.
A planning agent executes in the main repository:
/spec-kitty.plan
/spec-kitty.research # Optional
Output artifacts live under kitty-specs/<feature>/:
plan.md - Implementation planresearch.md - Research findings (optional)data-model.md - Database schema (software-dev mission)All artifacts are committed to main, visible to all agents.
/spec-kitty.tasks
Creates:
tasks.md - Work package breakdown with dependenciestasks/WP01-setup.md, tasks/WP02-api.md, etc. - Individual WP promptsEach WP file has frontmatter tracking status:
---
work_package_id: "WP01"
title: "Database Schema"
lane: "planned"
dependencies: []
---
Each agent creates their own worktree for their assigned WP:
# Agent A implements WP01 (foundation)
spec-kitty implement WP01
# Creates .worktrees/001-user-authentication-system-WP01/
# Agent B implements WP02 (depends on WP01)
spec-kitty implement WP02 --base WP01
# Creates .worktrees/001-user-authentication-system-WP02/
# Agent C implements WP03 (independent)
spec-kitty implement WP03
# Creates .worktrees/001-user-authentication-system-WP03/
Key points:
--base flagWhen finished, agents move their WP to review:
spec-kitty agent tasks move-task WP01 --to for_review
Reviewers examine work packages in for_review lane:
/spec-kitty.review WP01
Once all packages are in done lane, merge from any WP worktree:
cd .worktrees/001-user-authentication-system-WP01/
spec-kitty merge
The merge command:
| Challenge | Coordination Technique |
|---|---|
| Work overlap | Each WP has its own worktree—no overlap possible |
| Dependency ordering | Use --base WP## to branch from dependencies |
| Review backlog | Assign a dedicated “review agent” for for_review lane |
| Status visibility | Use /spec-kitty.status or dashboard to see all lanes |
Fan-out pattern (maximum parallelism):
WP01 (foundation)
/ | \
WP02 WP03 WP04 ← All can run in parallel after WP01
# After WP01 completes:
spec-kitty implement WP02 --base WP01 & # Agent A
spec-kitty implement WP03 --base WP01 & # Agent B
spec-kitty implement WP04 --base WP01 & # Agent C
Diamond pattern (converging dependencies):
WP01
/ \
WP02 WP03
\ /
WP04 ← Depends on both WP02 and WP03
# WP04 needs both WP02 and WP03
spec-kitty implement WP04 --base WP03
cd .worktrees/001-feature-WP04/
git merge 001-feature-WP02 # Manual merge of second dependency
kitty-specs/<feature>/tasks/ for WPs in planned lane and auto-assign to idle agents.lane: doing or lane: for_review in frontmatter.| Issue | Root Cause | Resolution |
|---|---|---|
| Merge conflicts between WPs | WPs editing shared files | Split shared files into dedicated WP or gate via review |
| Dependency not available | Forgot --base flag |
Re-implement with spec-kitty implement WP## --base WP## |
| WP stuck in wrong lane | Manual frontmatter edit | Use spec-kitty agent tasks move-task WP## --to <lane> |
| Agent can’t find WP | Wrong directory | Ensure agent is in correct worktree for their WP |
Check current state across all WPs:
# From main repository or any worktree
spec-kitty agent tasks status
Output shows kanban board:
Feature: 001-user-authentication-system
═══════════════════════════════════════════════════════════════
PLANNED │ DOING │ FOR_REVIEW │ DONE
─────────────┼─────────────┼─────────────┼─────────────
WP04 │ WP02 (A) │ WP03 │ WP01
│ │ │
─────────────┴─────────────┴─────────────┴─────────────
Progress: ████████░░░░░░░░ 25% (1/4 done)