Agent Collaboration
Multi-agent task delegation with handoff protocols for complex development tasks
Agent Collaboration enables multiple Bootspring agents to work together on complex tasks, with structured delegation and handoff protocols.
Overview#
Instead of using a single agent, collaboration sessions allow:
- Primary agents to lead complex tasks
- Supporting agents to assist with specialized subtasks
- Handoffs to transfer context between agents
- Aggregated results from all participants
How It Works#
A collaboration session has a primary agent leading the main task, with supporting agents handling specialized subtasks. When all subtasks complete, results are aggregated into final results.
Starting a Collaboration Session#
Via CLI#
Delegating Tasks#
Use the CLI to delegate subtasks to specific agents:
Agent Handoffs#
Agent handoffs transfer context from one agent to another mid-task. For example, after a security review is complete, the security-expert hands off to the backend-expert with security requirements and approved patterns, allowing the backend-expert to continue implementation.
Collaboration Patterns#
Use pre-defined patterns for common scenarios:
Available Patterns#
| Pattern | Primary Agent | Supporting Agents |
|---|---|---|
code-review | code-review-expert | security, performance |
feature-development | architecture-expert | frontend, backend, testing |
security-audit | security-expert | code-review, devops |
performance-optimization | performance-expert | database, frontend |
api-design | api-expert | security, database |
database-migration | database-expert | backend, devops |
CLI Commands#
Best Practices#
- Choose the right primary - The primary agent should have the broadest expertise for the task
- Delegate appropriately - Assign subtasks to agents with matching specialties
- Use handoffs for context - Don't repeat information, transfer it
- Start with patterns - Use pre-defined patterns when they fit
- Finalize for results - Always finalize to get aggregated insights