Multi-Agent Workflow
Decapod is designed from the ground up to support concurrent multi-agent operations, providing the coordination and isolation necessary to prevent collisions.
The Coordination Model
Decapod uses a Lock-then-Isolate model for multi-agent work:
- Global Lock: Agents use
decapod todo claim(see CLI Reference) to acquire an exclusive lock on a task. This prevents two agents from working on the same logical unit of work. - Filesystem Isolation: Each agent is assigned a unique git worktree. Even if multiple agents are working on the same repository, they never see each other's uncommitted files (see Workspace Isolation).
- Container Isolation: For maximum safety,
container_workspaces = true(see Config Specification) ensures that each agent has its own process space and system dependencies.
Shared Context
While execution is isolated, context is shared. Agents use decapod data memory (Aptitude) to share learned preferences and project-specific knowledge across sessions. This allows Agent B to benefit from a code convention learned by Agent A five minutes earlier (see Agent-First Architecture).
Best Practices
- Frequent Heartbeats: Agents should run
decapod todo heartbeat(see CLI Reference) to signal they are still active. - Explicit Handoffs: Use
decapod todo handoffto transfer a task (and its current uncommitted state) between agents. - Centralized Validation: Always run
decapod validatebefore publishing to ensure your changes haven't introduced regressions against the latest state of the root repository (see Proof & Validation).