spec-kitty

Multi-Agent Parallel Development

Divio type: Tutorial

Learn how to coordinate multiple AI agents working on different work packages simultaneously.

Time: ~1 hour Prerequisites: Completed Your First Feature

Why Parallel Development?

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.

Understanding Work Package Dependencies

Common dependency patterns:

Dependencies are declared in each WP frontmatter.

Hands-On: Two Agents, Two WPs

Setup

Generate work packages for your feature.

In your agent:

/spec-kitty.tasks

Confirm two independent packages are lane: "planned".

Terminal 1: Agent A on WP01

spec-kitty agent workflow implement WP01
cd .worktrees/###-feature-WP01
# Agent A works here

Terminal 2: Agent B on WP02

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.

Handling Dependencies with –base

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

Git Worktrees, Briefly

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.

Tips for Coordinating Agents

Troubleshooting

What’s Next?

You’ve completed the core tutorials. Explore how-to guides for specific tasks or explanations for deeper understanding.

Reference Documentation

Learn More