| name | orchestration-workflow |
| description | Guide for working with the multi-agent orchestration system in DEVS. Use this when asked to modify task orchestration, agent coordination, or workflow execution. |
Orchestration Workflow for DEVS
The DEVS orchestration system coordinates multiple AI agents to complete complex tasks autonomously.
Architecture Overview
User Request → WorkflowOrchestrator → TaskAnalyzer → Agent Execution → Validation
↓
Strategy Selection
(single-pass / multi-pass)
↓
Team Building → Coordinated Execution → Artifact Creation
Core Components
WorkflowOrchestrator (src/lib/orchestrator.ts)
Central coordination hub that:
- Prevents duplicate processing via prompt hashing
- Selects execution strategy based on complexity
- Manages agent recruitment and team building
- Handles error recovery and retries
TaskAnalyzer (src/lib/task-analyzer.ts)
LLM-powered analysis that:
- Breaks down complex prompts into requirements
- Assesses task complexity (simple/complex)
- Identifies required skills
- Generates subtasks with dependencies
RequirementValidator (src/lib/requirement-validator.ts)
Validates task deliverables against requirements:
- Functional requirements (feature implementation)
- Non-functional requirements (performance, usability)
- Constraints (technology, time, resources)
Execution Strategies
Single-Pass Strategy
For simple tasks that one agent can complete:
async function (): <> {
result = (task, agent, task.)
({
: task.,
: agent.,
: ,
: result,
})
validation = (task, [artifact])
(!validation.) {
(task, validation.)
}
}