A Kanban-inspired workflow system for coordinating multiple Claude agents over long-term, multi-phase projects. Uses state transitions, visual workflows, and enforced WIP limits to prevent context loss between agent sessions.
This template addresses the context amnesia problem - where AI agents lose context between sessions, forget past decisions, and break each other's work. It applies Kanban principles to AI agent coordination: visualize work, limit WIP, manage flow, and make process explicit.
Key Features:
- Kanban Board States: Tasks flow through defined states (
UNCLAIMED→IN_PROGRESS→IN_REVIEW→COMPLETED) - WIP Limits: Only one task in progress per agent to maintain focus
- Visual Workflow: Clear state tracking in
ACTIVE.md(your kanban board) - Pull System: Agents pull tasks from the backlog when ready, not pushed randomly
- Continuous Flow: Documented handovers enable seamless agent-to-agent transitions
- Process Enforcement: Git hooks ensure discipline without manual overhead
graph TD
User(User)
Coordinator(Coordinator Claude)
Worker1(Worker Agent)
Worker2(Worker Agent)
Progress(PROJECT_PROGRESS.md<br/>Big Picture)
Active(ACTIVE.md<br/>Current Sprint)
User <--> Coordinator
Coordinator --> Worker1
Coordinator --> Worker2
Coordinator <--> Progress
Coordinator <--> Active
Worker1 <--> Active
Worker2 <--> Active
classDef userStyle fill:#E8EAF6,stroke:#5C6BC0,stroke-width:2px,color:#000
classDef coordStyle fill:#C5E1A5,stroke:#7CB342,stroke-width:2px,color:#000
classDef workerStyle fill:#E0E0E0,stroke:#757575,stroke-width:2px,color:#000
classDef fileStyle fill:#FFF9C4,stroke:#FBC02D,stroke-width:2px,color:#000
class User userStyle
class Coordinator coordStyle
class Worker1,Worker2 workerStyle
class Progress,Active fileStyle
Two-Role Pattern:
- Coordinator - Talks to user, reviews/updates
ACTIVE.md, maintainsPROJECT_PROGRESS.md, spawns agents - Workers - Implement tasks, update
ACTIVE.md, report completion to Coordinator
Core Files:
.claude/state/ACTIVE.md- Current sprint state (~200 lines, loaded every session)PROJECT_PROGRESS.md- Big picture tracking (phases, metrics, progress)CLAUDE.md- Complete workflow guide
# Install pre-commit framework
pip install pre-commit
# Install hooks
./.claude/workflow/hooks --installCreate your project files:
VISION.md- Your architecture and design principlesROADMAP.md- Your phase-by-phase implementation planPROJECT_PROGRESS.md- Track progress (Coordinator maintains)ACTIVE.md- Update with first task and project rules
Customize commit validation:
Edit .claude/hooks/git/commit-msg to add/remove tags.
Add custom hooks:
Edit .pre-commit-config.yaml to add linting, formatting, etc.
- Update
ACTIVE.mdwith your first task - Coordinator reads
.claude/agents/worker.md→ customizes → spawns worker - Worker implements, updates
ACTIVE.md, commits - Spawn review agents if needed
- Continue!
sequenceDiagram
participant User
participant Coordinator
participant Worker
participant ACTIVE.md
User->>Coordinator: Request feature
Coordinator->>ACTIVE.md: Check context
Coordinator->>Worker: Spawn with task
Worker->>ACTIVE.md: Read state
Worker->>Worker: Implement
Worker->>ACTIVE.md: Update handover
Worker->>Coordinator: Report done
Coordinator->>User: Feature complete
Session Flow:
- Start - Hook displays
ACTIVE.mdautomatically - Work - Follow PROJECT RULES, commit frequently, document decisions
- End - Update
ACTIVE.mdhandover, commit, push
stateDiagram-v2
[*] --> UNCLAIMED
UNCLAIMED --> IN_PROGRESS: Coordinator spawns worker
IN_PROGRESS --> IN_REVIEW: Worker completes
IN_REVIEW --> COMPLETED: All reviews approved
IN_REVIEW --> ADDRESSING_FEEDBACK: Changes needed
ADDRESSING_FEEDBACK --> IN_REVIEW: Fixes complete
COMPLETED --> [*]
Tasks flow through your Kanban board (ACTIVE.md) with clear state transitions. The Coordinator moves tasks between states using the .claude/workflow/transition command, enforcing proper workflow progression.
Board Columns:
UNCLAIMED- Backlog of tasks ready to startIN_PROGRESS- Active work (WIP limit: 1 per agent)IN_REVIEW- Awaiting review from multiple agents in parallelADDRESSING_FEEDBACK- Fixes being implementedCOMPLETED- Done, moved to "RECENTLY COMPLETED" section
Available Reviewers:
- Staff Engineer - Architecture, design patterns
- TDD Expert - Test quality, coverage
- QA Engineer - End-to-end functionality, edge cases
- Security Reviewer - Vulnerabilities, data protection
- Performance Reviewer - Efficiency, scalability
Traditional Kanban manages human work. Claude Kanban adapts these principles for AI agents:
| Kanban Principle | Claude Kanban Implementation |
|---|---|
| Visualize Work | ACTIVE.md acts as your board with clear sections |
| Limit WIP | One task per agent, enforced by state machine |
| Manage Flow | State transitions track progress (UNCLAIMED → COMPLETED) |
| Make Process Explicit | CLAUDE.md documents workflow, hooks enforce it |
| Continuous Improvement | Archive completed work, compress to maintain focus |
Traditional Multi-Agent Problem:
graph LR
A[Agent A] -.context lost.-> B[Agent B]
B -.forgot decisions.-> C[Agent C]
C -.breaks code.-> A
This Template's Solution:
graph TD
A[Agent A] -->|updates| ACTIVE[ACTIVE.md]
ACTIVE -->|loads| B[Agent B]
B -->|updates| ACTIVE
ACTIVE -->|loads| C[Agent C]
Hook[Session Hook] -.enforces.-> ACTIVE
- ✅ Hook forces context load (
ACTIVE.md) every session - ✅ Handover checklist enforces documentation
- ✅ State machine validates transitions
- ✅ Context stays constant (~200 lines) via progressive compression
.
├── README.md # This file
├── CLAUDE.md # Main workflow guide
├── PROJECT_PROGRESS.md # Big picture tracking (stub template)
├── VISION.md # Architecture & design principles (stub template)
├── LICENSE # MIT License
├── .pre-commit-config.yaml # Hook configuration
├── .claude/
│ ├── state/
│ │ └── ACTIVE.md # Current sprint state (your Kanban board)
│ ├── agents/ # Agent personas (6 reviewers + worker)
│ ├── hooks/ # Git and session hooks
│ ├── workflow/ # State transition & hook management
│ └── settings.json # Claude Code hook config
└── .git/
└── hooks/ # Managed by pre-commit
- CLAUDE.md - Complete workflow guide
- .claude/agents/ - Agent persona definitions
This template is suitable for:
- Long-term software projects (3-12+ months)
- Multi-phase implementations
- Projects requiring code reviews
- Teams wanting deterministic agent coordination
- Projects where context preservation is critical
MIT License - see LICENSE file