Overview
Orchestration is a powerful feature of the SynapseX VS Code Agent that enables you to run multiple sub-agents simultaneously. This allows for parallel processing of different parts of a larger feature or bug fix, significantly speeding up development workflows. By leveraging the SynapseX CLI, sub-agents operate in their own terminal instances, each handling specific tasks while the SynapseX VS Code Agent coordinates the overall process.How It Works
The Orchestration feature utilizes the SynapseX CLI to spawn multiple sub-agents, each running in a dedicated terminal. The SynapseX VS Code Agent:- Analyzes the overall task and breaks it down into sub-tasks. Users can also specify how they wish for the tasks to be separated.
- Provides each sub-agent with the necessary context, instructions, and resources.
- Monitors progress and consolidates results from all sub-agents.
- Ensures seamless integration of changes across the project.
Orchestration requires SynapseX CLI to be installed and configured on your system.
Refer to the SynapseX CLI Getting Started guide for detailed installation instructions.
Getting Started
To use Orchestration in your VS Code Agent:- Ensure you have the SynapseX VS Code extension installed and configured (see Getting Started)
- Verify that SynapseX CLI is set up on your system (see SynapseX CLI)
- When planning to use the orchestration feature, specify that you’d like to use multiple subagents to speed up the task:
- The agent will automatically break down the task and spawn sub-agents as needed.
- Each sub-agent will execute in its own terminal tab within VS Code.
Using /multi-agent Command
You can explicitly trigger orchestration with the /multi-agent command:
Benefits
| Benefit | Description |
|---|---|
| Parallel Processing | Work on multiple components simultaneously, cutting overall development time |
| Efficient Resource Use | Optimize time and effort on critical tasks by distributing workload |
| Testing Multiple Approaches | Experiment with different implementations without sequential bottlenecks |
| Scalability | Handle large-scale changes across multiple files, modules, or services |
| Cost-Effective | Save money by reducing time spent on manual coordination and testing |
Use Cases
Large Feature Implementation
When developing a comprehensive platform update involving frontend UI changes, backend API modifications, and database schema updates, Orchestration allows sub-agents to handle each component in parallel:- Sub-agent 1: Updates React components for the new checkout flow
- Sub-agent 2: Modifies FastAPI endpoints for payment processing
- Sub-agent 3: Updates database schemas and migration scripts
Bug Fix Optimization
For a complex authentication bug affecting multiple services, Orchestration enables testing multiple fix strategies simultaneously:- Sub-agent A: Implements a token refresh mechanism
- Sub-agent B: Updates session management logic
- Sub-agent C: Modifies error handling in API responses
Refactoring Large Codebases
When modernizing a legacy application with thousands of lines of code, Orchestration can parallelize refactoring tasks:- Sub-agent 1: Converts class-based components to functional components in React
- Sub-agent 2: Updates API calls to use modern async/await patterns
- Sub-agent 3: Implements new TypeScript interfaces and types
Quantum Circuit Development
SynapseX supports quantum-specific orchestration patterns:- Sub-agent 1: Implements quantum circuit using QCOS SDK
- Sub-agent 2: Writes classical post-processing and analysis
- Sub-agent 3: Sets up benchmarking and validation tests
Related Documentation
Key Features
All VS Code Agent capabilities
Best Practices
Maximize your workflow efficiency
SynapseX CLI
CLI required for orchestration
Orchestrators
Server-side agent orchestration