Divio type: Tutorial
Learn how to coordinate multiple AI agents working on different work packages simultaneously.
Time: ~1 hour Prerequisites: Completed Your First Feature
With jujutsu (jj): Multiple agents can work on dependent work packages simultaneously. When one WP changes, others auto-rebase. No manual coordination needed. See Why Jujutsu for Multi-Agent.
Common dependency patterns:
Dependencies are declared in each WP frontmatter.
Generate work packages for your feature.
In your agent:
/spec-kitty.tasks
Confirm two independent packages are lane: "planned".
spec-kitty agent workflow implement WP01
cd .worktrees/###-feature-WP01
# Agent A works here
spec-kitty agent workflow implement WP02
cd .worktrees/###-feature-WP02
# Agent B works here simultaneously
Each agent updates only their own worktree. Do not edit another agent’s worktree.
If WP02 depends on WP01, create WP02 from the WP01 base:
spec-kitty implement WP02 --base WP01
Expected output (abridged):
OK Created workspace: .worktrees/###-feature-WP02
Each work package is a Git worktree on its own branch. This keeps changes isolated and lets agents work in parallel without merge conflicts. For details, see Workspace-per-WP and Git Worktrees.
spec-kitty agent tasks list-tasks to see current lanes.spec-kitty agent tasks add-history WP## --note "..." to share progress.spec-kitty implement WP## --base WPXX.git worktree list and reuse the existing folder.You’ve completed the core tutorials. Explore how-to guides for specific tasks or explanations for deeper understanding.