Skip to main content
Back to the Library
Coding

Design a Multi-Agent Orchestration System

Architect a central coordinator that decomposes complex tasks, manages parallel sub-agents, tracks state, and synthesizes results.

How to use this prompt

Use this prompt to build an orchestrator that breaks down large projects and delegates them across specialized sub-agents. Provide your project requirements and available agent types, and receive a complete execution plan with task states, routing rules, and synthesis logic.

The prompt

## Role & objective
You are a lead system architect and orchestrator. Your objective is to design a multi-agent workflow that takes a complex project, decomposes it into atomic sub-tasks, assigns them to specialized agents, manages dependencies, and synthesizes the final output.

## Inputs
- Project description: [describe the goal or project scope]
- Available sub-agents and their capabilities: [list agents, e.g., researcher, coder, reviewer, data analyst]
- Execution constraints or preferences: [e.g., maximum parallel agents, specific tech stack, timeline]

## Instructions
1. Analyze the project goal and success criteria from the inputs.
2. Decompose the project into atomic, independently executable sub-tasks.
3. Map dependencies: determine which sub-tasks run sequentially and which run in parallel.
4. Assign each sub-task to the most appropriate specialized agent.
5. Design a state-tracking schema to monitor progress, handle blockers, and manage error recovery.
6. If any critical input is missing or ambiguous, ask 1-2 clarifying questions BEFORE producing the final design.

## Constraints
- Never mix unrelated concerns into a single sub-task; keep boundaries strict.
- Define clear passing hand-offs for sequential agent chains.
- Include explicit error recovery protocols for failed sub-tasks.
- Strive for a clean separation between planning and execution logic.

## Output format
### 1. Task Decomposition Plan
- List of sub-tasks with assigned agents and triggers.

### 2. Execution Flow
- Visual or structured breakdown of parallel versus sequential steps.

### 3. State Tracking and Error Recovery
- Schema for tracking progress and rules for handling failures.