| name | orchestrator |
| description | Intelligent multi-agent workflow orchestrator that coordinates specialized Codex skills for complex task execution. Implements official OpenAI Agents SDK patterns including guardrails, handoffs, and worker agents with MCP-centric architecture for seamless integration. |
| short_description | Intelligent multi-agent workflow orchestrator that coordinates specialized Codex skills for complex task execution. Implements official Open |
Orchestrator Agent Skill
Cursor Integration: This skill is auto-discovered by Cursor. It activates based on the task description matching the skill's capabilities.
Overview
Intelligent multi-agent workflow orchestrator that coordinates specialized Codex skills for complex task execution. Implements official OpenAI Agents SDK patterns including guardrails, handoffs, and worker agents with MCP-centric architecture for seamless integration.
Capabilities
- Task Decomposition: Complex tasks âEdependency-aware subtasks with intelligent planning
- Multi-Agent Coordination: Parallel execution with worker agent assignment and handoffs
- MCP Integration: Direct Codex skill invocation via Model Context Protocol
- Quality Assurance: Built-in guardrails for security, performance, and best practices
- Progress Tracking: Real-time workflow monitoring with detailed reporting
- Error Recovery: Intelligent retry mechanisms and alternative execution paths
Cursor Tools
This skill uses the following Cursor-native tools:
| Tool | Purpose |
|---|
Read | Read files from the codebase |
Grep | Search for patterns in code (regex) |
SemanticSearch | Find code by meaning, not exact text |
Write | Create new files |
StrReplace | Edit existing files with precise replacements |
Shell | Execute terminal commands |
WebSearch | Search the web for documentation/references |
WebFetch | Fetch content from URLs |
Task | Launch subagents for complex parallel work |
ReadLints | Check for linter errors after edits |
Usage Examples
Complex Feature Development
Code Refactoring Workflow
Security Audit and Remediation
Performance Optimization
Output Format
Workflow Execution Report
ð¯ Orchestrator Workflow Report
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââE
Task: Implement user authentication system
Started: 2026-01-04 14:30:00 UTC
Duration: 245.8 seconds
Status: âECOMPLETED
ð Workflow Statistics
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââE
Total Tasks: 8
Completed Tasks: 8 (100.0%)
Failed Tasks: 0 (0.0%)
Parallel Execution: 3 concurrent workers
MCP Calls: 12 successful
Handoffs: 3 inter-agent transitions
ð Task Execution Flow
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââE
1. ð supervisor_analysis (Supervisor) - 2.3s âE
âââ Analyzed requirements and created execution plan
2. ðEEarchitect_analysis (Architect) - 8.7s âE
âââ Designed system architecture and data models
3. ð security_review (QA Engineer) - 12.4s âE
âââ Security audit and vulnerability assessment
4. ð code_generation (Executor) - 45.2s âE
âââ Generated authentication API and models
5. 𧪠test_generation (Test Gen) - 23.1s âE
âââ Created comprehensive test suite
6. ð code_review (Code Reviewer) - 18.9s âE
âââ Code quality analysis and best practices check
7. ð performance_analysis (QA Engineer) - 15.6s âE
âââ Performance benchmarking and optimization
8. ð deployment_prep (Build Manager) - 9.2s âE
âââ Build configuration and deployment preparation
ð¡EEGuardrail Results
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââE
Security Guardrail: âEPASSED (0 violations)
Quality Guardrail: âEPASSED (2 warnings addressed)
Performance Guardrail: âEPASSED (all metrics within limits)
ð¤EAgent Handoffs
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââE
1. Supervisor âEArchitect: Requirements analysis complete
2. Architect âEExecutor: Design specifications ready
3. Executor âEQA Engineer: Implementation ready for review
ð Generated Artifacts
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââE
âââ ð src/auth/mod.rs (2.3KB) - Authentication module
âââ ð src/auth/models.rs (1.8KB) - User and session models
âââ ð src/auth/handlers.rs (4.2KB) - API endpoint handlers
âââ ð tests/auth_tests.rs (3.1KB) - Comprehensive test suite
âââ ð docs/api/auth.md (2.9KB) - API documentation
âââ ð artifacts/workflow_report.json (8.7KB) - Execution details
â EEResolved Issues
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââE
- Addressed SQL injection vulnerability in login handler
- Fixed race condition in session management
- Improved error handling for edge cases
âEQuality Metrics
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââE
Code Coverage: 92%
Cyclomatic Complexity: 4.2 (target: <10)
Security Score: A+ (Excellent)
Performance Grade: A (Very Good)
Maintainability: 87/100
ð¯ Next Recommended Actions
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââE
1. Deploy to staging environment for integration testing
2. Monitor performance metrics in production
3. Schedule regular security audits
4. Consider implementing rate limiting for auth endpoints
ð¡ Workflow Insights
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââE
- Most efficient path: Architect âEExecutor âEQA Engineer
- Bottleneck identified: Test generation (23.1s - consider parallelization)
- Skill utilization: QA Engineer (3 calls), Executor (2 calls), Architect (1 call)
- MCP performance: Average response time 2.1s, 100% success rate
ð Performance Trends
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââE
Task Completion Rate: 100% (8/8 successful)
Average Task Duration: 17.2s
Parallelization Efficiency: 78% (vs sequential: 138.4s saved)
Resource Utilization: CPU 65%, Memory 2.1GB peak
ð Workflow Quality Score: A+ (Excellent)
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââE
JSON Output (for CI/CD Integration)
{
"workflow_id": "auth-system-impl-2026-01-04",
"original_task": "Implement user authentication system",
"execution_summary": {
"total_tasks": 8,
"completed_tasks": 8,
"failed_tasks": 0,
"total_duration": 245.8,
"parallel_efficiency": 0.78,
"mcp_success_rate": 1.0
},
"task_results": [
{
"id": "supervisor_analysis",
"agent": "supervisor",
"duration": 2.3,
"success": true,
"mcp_used": false
},
{
"id": "architect_analysis",
"agent": "architect",
"duration": 8.7,
"success": true,
"mcp_used": true
}
],
"guardrail_results": {
"security": {"passed": true, "violations": 0},
"quality": {"passed": true, "violations": 0},
"performance": {"passed": true, "violations": 0}
},
"quality_metrics": {
"code_coverage": 0.92,
"complexity_score": 4.2,
"security_score": "A+",
"performance_grade": "A",
"maintainability_index": 87
},
"artifacts": [
"src/auth/mod.rs",
"src/auth/models.rs",
"tests/auth_tests.rs",
"docs/api/auth.md"
],
"insights": {
"optimal_path": "Architect âEExecutor âEQA Engineer",
"bottlenecks": ["test_generation"],
"recommendations": [
"Deploy to staging",
"Monitor performance",
"Implement rate limiting"
]
}
}
Orchestration Patterns
Sequential Execution Pattern
Task A âETask B âETask C
- Dependencies are strictly enforced
- Each task completes before the next begins
- Best for: Linear workflows, strict ordering requirements
Parallel Execution Pattern
ââ Task A ââE
Task X ââ¼â Task B ââ¼â Task D
ââ Task C ââE
- Independent tasks run concurrently
- Dependencies determine execution order
- Best for: Independent subtasks, performance optimization
Handoff Pattern (Agents SDK)
Agent A âEHandoff âEAgent B âEHandoff âEAgent C
- Context and state transfer between agents
- Specialized agent for each phase
- Best for: Complex multi-expert workflows
Guardrail Pattern
Task âEGuardrail Check âE[Pass: Continue | Fail: Block/Retry]
- Pre/post-execution validation
- Automatic issue detection and correction
- Best for: Quality assurance, compliance
Agent Roles and Capabilities
Supervisor Agent
- Primary Role: Workflow planning and coordination
- Capabilities:
- Task decomposition and dependency analysis
- Agent assignment and scheduling
- Progress monitoring and reporting
- Error handling and recovery
Worker Agents
- Architect: System design and architectural planning
- Executor: Code implementation and feature development
- Code Reviewer: Code quality analysis and best practices
- QA Engineer: Comprehensive testing and quality assurance
- Build Manager: Build orchestration and deployment
Specialized Agents (Optional)
- Security Auditor: Security vulnerability assessment
- Performance Analyst: Performance optimization and monitoring
- Test Generator: Automated test suite creation
- Documentation Specialist: Technical documentation generation
Configuration
Workflow Profiles
{
"orchestrator": {
"default_profile": "balanced",
"max_parallel_tasks": 3,
"mcp_timeout": 30,
"enable_handoffs": true,
"guardrails_enabled": true
},
"profiles": {
"fast": {
"max_parallel_tasks": 5,
"mcp_timeout": 15,
"skip_optional_checks": true
},
"thorough": {
"max_parallel_tasks": 2,
"mcp_timeout": 60,
"additional_quality_checks": true
},
"balanced": {
"max_parallel_tasks": 3,
"mcp_timeout": 30,
"standard_quality_checks": true
}
}
}
Agent Configuration
{
"agents": {
"supervisor": {
"enabled": true,
"priority": "high",
"capabilities": ["planning", "coordination", "monitoring"]
},
"architect": {
"enabled": true,
"priority": "high",
"skills": ["system_design", "architecture_planning"]
},
"executor": {
"enabled": true,
"priority": "high",
"skills": ["code_generation", "implementation"]
},
"qa_engineer": {
"enabled": true,
"priority": "critical",
"skills": ["quality_assurance", "testing", "security"]
}
}
}
MCP Integration Settings
{
"mcp": {
"server_url": "ws://localhost:3000",
"connection_timeout": 10,
"max_retries": 3,
"fallback_enabled": true,
"skill_discovery": true
}
}
Integration Points
Development Workflow Integration
the orchestrator skill "Implement e-commerce checkout system"
the orchestrator skill "Modernize legacy codebase to current standards"
the orchestrator skill "Fix all OWASP Top 10 vulnerabilities"
CI/CD Pipeline Integration
- name: Complex Feature Implementation
run: the orchestrator skill "Implement ${{ inputs.feature_spec }}"
- name: Code Quality Improvement
run: the orchestrator skill "Improve code quality across ${{ inputs.modules }}"
- name: Security Hardening
run: the orchestrator skill "Implement security best practices"
IDE Integration
{
"tasks": [
{
"label": "Orchestrate Complex Task",
"type": "shell",
"command": "codex",
"args": ["$orchestrator", "${input:taskDescription}"],
"group": "build"
}
]
}
Performance Optimization
Parallel Execution Tuning
max_parallel = min(len(ready_tasks), self.config.max_parallel_tasks)
if task_complexity > threshold:
max_parallel = max(1, max_parallel // 2)
MCP Performance Optimization
mcp_pool = MCPConnectionPool(max_connections=5)
batched_requests = group_requests_by_skill(requests)
Caching and Memoization
@cached(ttl=3600)
def get_code_analysis(file_path: Path) -> AnalysisResult:
return analyze_file(file_path)
Monitoring and Observability
Workflow Metrics
- Task completion rates and durations
- Agent utilization and performance
- MCP call success rates and latencies
- Guardrail violation patterns
- Handoff efficiency metrics
Real-time Dashboard
the orchestrator skill --monitor --port 8080
open http://localhost:8080/workflows
Alerting System
alert_rules:
- condition: "failure_rate > 0.1"
action: "slack_notification"
message: "High workflow failure rate detected"
- condition: "avg_duration > 300"
action: "email_alert"
message: "Workflow performance degradation"
Troubleshooting
Common Issues
MCP Connection Failures
codex mcp-server --status
codex mcp-server --port 3000 --reset
python -c "from mcp_bridge import create_mcp_bridge; print(create_mcp_bridge())"
Agent Handoff Failures
the orchestrator skill --list-agents
the architect skill "Test agent connectivity"