Agent Workflow Patterns
Five workflow patterns + the autonomous agent — the building blocks of effective LLM systems, with a citation behind every claim. Start with the concept, then dive into each pattern.
Predictable: the path lives in your codeAutonomous: the LLM picks the next step
- Core patterns
- 6
- Workflow patterns
- 5
- Authoritative labs
- 3
- Cited references
- 11
Six patterns, from fixed to free
Each row is a wiring diagram in the same notation: red capsules are LLM calls, squares are your code or tools, diamonds are gates, dashed wires are decided at run time.
- 1Prompt ChainingDecompose a task into a fixed sequence of steps; each LLM call processes the previous output, with optional checks between.
- 2RoutingClassify the input first, then send it to a specialized follow-up — a different prompt, tool chain, or model.
- 3ParallelizationRun multiple LLM calls at once and aggregate the results. Two variants: sectioning and voting.
- 4Orchestrator–WorkersA central LLM dynamically breaks down the task, delegates to worker LLMs, and synthesizes their results.
- 5Evaluator–OptimizerOne LLM generates a response while another evaluates and gives feedback, in a loop — iterative refinement.
- 6Autonomous AgentsNo fixed path. The LLM plans and acts in a loop, using tools and environmental feedback to direct itself toward a goal.
The real dividing line: who controls the flow
The dividing line is who controls the flow. In a workflow, the control flow is fixed in code you wrote; the LLM fills in the steps. In an agent, the LLM itself decides what to do next and keeps control over how the task gets done.
Workflows are systems where LLMs and tools are orchestrated through predefined code paths. Agents are systems where LLMs dynamically direct their own processes and tool usage. — AnthropicRead the core concept
Keep going
- Compare the Six PatternsSide by side on control flow, cost/latency, best fit and a representative example. Filter by kind, sort any column.
- PracticeMake it stick: look up the jargon, flip the cards, then test yourself. Everything lives in this session only.
- Sources & ReferencesEvery claim on this site traces back to a primary or authoritative source. Filter by origin, open any link.