Orchestrator-Workers
Engineering Managers, System ArchitectsRecipe 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 Resources
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
Prompt Chaining
When faced with a complex multi-step task, breaking it into sequential prompts can simplify the problem for the model.
Read Recipe →Parallelization
When different parts of a task can be done simultaneously, parallelization speeds up processing.
Read Recipe →Evaluator-Optimizer
Ensuring answer quality can be hard in one pass.
Read Recipe →Autonomous Agent
Some tasks have no fixed steps and require continuous control.
Read Recipe →Reflection Pattern
LLMs may make logical mistakes without self-review.
Read Recipe →