Core Coordination Mechanisms
Status-Based Work Discovery
Theready command is the foundation of multi-agent coordination. It automatically filters out work that’s already claimed or blocked.
- Issues with
status: in_progressare automatically excluded fromready() - Issues blocked by open dependencies are automatically excluded
- Agents only see work that’s truly available to claim
Dependency-Based Ordering
Useblocks and depends-on relationships to enforce execution order across agents.
1
Define dependencies
2
Agents work in order
- When a blocker is closed, blocked issues automatically become ready
- No manual coordination needed - the dependency graph handles it
Parallel Independent Work
Multiple agents can work simultaneously on unrelated issues without coordination.- Keep issues focused and independent
- Avoid creating issues that touch the same files
- Use tags to indicate which subsystem/module the issue affects
- Break down large features into smaller, parallel-friendly tasks
Sequential Dependencies
When work must happen in order, use dependencies to coordinate handoffs between agents.Example: Feature with Dependencies
Workflow:1
Agent A completes foundation
2
Agents B and C work in parallel
3
Agent D waits for both
Discovery Coordination
When an agent discovers new work during implementation, they create issues for other agents to pick up.1
Agent discovers missing work
2
Agent creates blocker issue
{ "id": "i-redis" }3
Agent links relationships
4
Agent updates status
5
Another agent picks up blocker
- Use
discovered-fromto track which issue led to discovery - Set high priority (P0-P1) on critical blockers
- Include context in description: “Discovered while working on [[i-xyz]]”
- The discovering agent can work on the blocker themselves or leave it for others
Communication via Feedback
Agents leave notes for downstream agents using the feedback system.Feedback to Issues
When an agent needs to communicate with another agent about an issue:- Handoff notes between sequential work
- Important context for downstream implementation
- Warnings about edge cases discovered
- Recommendations for implementation approach
Feedback to Specs
When implementing, agents provide feedback on specs to improve clarity:Preventing Conflicts
File-Level Organization
Break work to minimize file conflicts:Good: Separate files
Good: Separate files
Bad: Same file
Bad: Same file
Scope-Based Breakdown
Organize issues by scope/module/subsystem:CI/CD Integration
Pre-Commit Checks
Agents verify work before closing issues:Atomic Issue Completion
Each issue should represent a complete, mergeable unit:Complete issue criteria:
- All tests passing
- Code follows style guidelines
- No type errors
- Documentation updated
- Related issues updated
Multi-Agent CI Workflow
Best Practices
Check ready() frequently
Check ready() frequently
Status changes as other agents work. Check
ready() to see newly unblocked work:Update status immediately
Update status immediately
Update status as soon as you claim or complete work:Good:Bad:
Create focused, claimable issues
Create focused, claimable issues
Break work into discrete units that one agent can complete:Too large:Better:
Use priority to guide work selection
Use priority to guide work selection
Agents should prefer high-priority work:Set priorities to guide agent behavior:
- P0: Critical blockers, production issues
- P1: Important features, high-value work
- P2: Standard features, improvements
- P3: Nice-to-haves, low-priority tasks
Real-World Scenario
Project: Building OAuth 2.0 authentication system with 3 agents1
Planning agent breaks down spec
2
Agents claim initial work
3
Agent B completes foundation
4
Parallel work begins
5
Agent C discovers blocker
6
Agent B picks up blocker
7
Completion
- Dependencies enforced execution order automatically
- Agents discovered work via
ready()without explicit coordination - Blocker creation and linking prevented wasted work
- Parallel work maximized throughput
- No conflicts - proper dependency structure and focused issues

