Orchestrator-Workers

Engineering Managers, System Architects

Recipe Overview

Complex tasks with unpredictable subtasks require dynamic breakdown. An orchestrator-workers agent acts as a manager LLM that decomposes the input on the fly and assigns subtasks to other agents. Anthropic calls this ideal when you can't predict the subtasks needed. For example, in a large coding problem, the orchestrator may first decide to write a user interface module and then backend logic, each handled by specialized worker agents. This solves coordination by having a central planner that can adapt the workflow based on intermediate results, making it suitable for open-ended or exploratory tasks.

Why This Recipe Works

Dynamically breaks down complex problems and assigns work to specialized agents

Implementation Tips

Best For:

Engineering Managers, System Architects

Key Success Factor:

Dynamically breaks down complex problems and assigns work to specialized agents...

More AI Agent Recipes

Discover other proven implementation patterns

Developers, Data Scientists

Prompt Chaining

When faced with a complex multi-step task, breaking it into sequential prompts can simplify the problem for the model.

Read Recipe →
AI Engineers, Product Managers

Routing

Tasks often vary by type (e.

Read Recipe →
Software Engineers, Operations Teams

Parallelization

When different parts of a task can be done simultaneously, parallelization speeds up processing.

Read Recipe →
Quality Assurance, Content Creators

Evaluator-Optimizer

Ensuring answer quality can be hard in one pass.

Read Recipe →
Researchers, System Administrators

Autonomous Agent

Some tasks have no fixed steps and require continuous control.

Read Recipe →
Analysts, Researchers

Reflection Pattern

LLMs may make logical mistakes without self-review.

Read Recipe →