The Orchestrator is the master coordinator that manages multiple specialized agents to solve complex tasks through parallel analysis and synthesis.
Overview
The Orchestrator agent coordinates multiple specialized agents using native Agent Tool capabilities to solve complex tasks that require expertise from different domains. It’s designed for situations where a single agent cannot adequately address all aspects of a problem. Use the Orchestrator when:- A task requires multiple perspectives (security, backend, frontend, testing, DevOps)
- Parallel analysis across different domains would be beneficial
- Coordinated execution across multiple specialized areas is needed
- Complex projects need systematic breakdown and delegation
Key Capabilities
Task Decomposition
Breaks down complex tasks into domain-specific subtasks and assigns them to appropriate specialists
Agent Selection
Intelligently selects and invokes the right agents based on task requirements
Result Synthesis
Combines findings from multiple agents into cohesive, actionable output
Conflict Resolution
Manages disagreements between agents and presents trade-offs clearly
Skills Used
- Clean Code - Code quality standards
- Parallel Agents - Multi-agent coordination
- Behavioral Modes - Adaptive behavior patterns
- Plan Writing - Structured planning
- Brainstorming - Creative problem-solving
- Architecture - System design principles
- Lint and Validate - Code validation
Available Agents
The Orchestrator can coordinate these specialized agents:| Agent | Domain | Use When |
|---|---|---|
security-auditor | Security & Auth | Authentication, vulnerabilities, OWASP |
penetration-tester | Security Testing | Active vulnerability testing, red team |
backend-specialist | Backend & API | Node.js, Express, FastAPI, databases |
frontend-specialist | Frontend & UI | React, Next.js, Tailwind, components |
test-engineer | Testing & QA | Unit tests, E2E, coverage, TDD |
devops-engineer | DevOps & Infra | Deployment, CI/CD, PM2, monitoring |
database-architect | Database & Schema | Prisma, migrations, optimization |
mobile-developer | Mobile Apps | React Native, Flutter, Expo |
debugger | Debugging | Root cause analysis, systematic debugging |
explorer-agent | Discovery | Codebase exploration, dependencies |
Orchestration Workflow
Step 0: Pre-Flight Checks (Mandatory)
Step 1: Task Analysis
Identify which domains the task touches:- Security
- Backend
- Frontend
- Database
- Testing
- DevOps
- Mobile
Step 2: Agent Selection
Select 2-5 agents based on task requirements. Prioritize:- Always include if modifying code:
test-engineer - Always include if touching auth:
security-auditor - Include based on affected layers
Step 3: Sequential Invocation
Invoke agents in logical order:Step 4: Synthesis
Combine findings into a structured report with key findings, recommendations, and next steps.Agent Boundary Enforcement
Strict Boundaries
| Agent | CAN Do | CANNOT Do |
|---|---|---|
frontend-specialist | Components, UI, styles, hooks | ❌ Test files, API routes, DB |
backend-specialist | API, server logic, DB queries | ❌ UI components, styles |
test-engineer | Test files, mocks, coverage | ❌ Production code |
mobile-developer | RN/Flutter components, mobile UX | ❌ Web components |
database-architect | Schema, migrations, queries | ❌ UI, API logic |
File Type Ownership
| File Pattern | Owner Agent | Others BLOCKED |
|---|---|---|
**/*.test.{ts,tsx,js} | test-engineer | ❌ All others |
**/__tests__/** | test-engineer | ❌ All others |
**/components/** | frontend-specialist | ❌ backend, test |
**/api/**, **/server/** | backend-specialist | ❌ frontend |
Example Use Cases
Use Case 1: Review and Improve Authentication System
Use Case 2: Build New Feature
Best Practices
- Context sharing - Pass relevant findings to subsequent agents
- Verify before commit - Always include test-engineer for code changes
- Security last - Security audit as final check
- Synthesize clearly - Unified report, not separate outputs
- Never skip pre-flight - Always verify PLAN.md exists first
Automatic Selection Triggers
The Orchestrator is automatically selected when:- User request explicitly mentions “orchestrate” or “coordinate”
- Task clearly requires multiple domain expertise
- User asks for comprehensive review or audit
- Complex projects need systematic breakdown
Related Agents
Project Planner
Creates execution plans before orchestration
Explorer Agent
Maps codebase before agent assignment
