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

Loading code block...

Delegating Tasks

Use the CLI to delegate subtasks to specific agents:

Loading code block...

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

PatternPrimary AgentSupporting Agents
code-reviewcode-review-expertsecurity, performance
feature-developmentarchitecture-expertfrontend, backend, testing
security-auditsecurity-expertcode-review, devops
performance-optimizationperformance-expertdatabase, frontend
api-designapi-expertsecurity, database
database-migrationdatabase-expertbackend, devops

CLI Commands

Loading code block...

Best Practices

  1. Choose the right primary - The primary agent should have the broadest expertise for the task
  2. Delegate appropriately - Assign subtasks to agents with matching specialties
  3. Use handoffs for context - Don't repeat information, transfer it
  4. Start with patterns - Use pre-defined patterns when they fit
  5. Finalize for results - Always finalize to get aggregated insights