Which AI agent architecture pattern holds up in production? For most apps, the answer is the least autonomous one that still passes your evals. That usually means a fixed chain, a router or a single agent with tools. Multi-agent designs pay off when the work splits into parts that can run side by side, and they cost far more tokens.
We sorted ten patterns that show up again and again in vendor docs. Then we matched each one to the framework features that support it and noted where it tends to break. Anthropic, OpenAI, LangChain, Microsoft, Google, CrewAI, AWS and Temporal all document some piece of this picture.
This guide stays at the system level. For the parts inside one agent, such as the model, tools and memory, read our AI agent architecture explainer first.
Ten AI Agent Architecture Patterns Compared
The ratings in this table are our own, relative to one plain model call. Treat them as a starting point and confirm them with your own traces.
| Pattern | Use it when | Latency | Cost | Main reliability risk |
|---|---|---|---|---|
| Prompt chaining | The task splits into fixed steps | Medium | Low | An early step passes bad output down the chain |
| Routing | Inputs fall into distinct types | Low | Low | Misclassified requests |
| Parallelization | Subtasks are independent, or you want votes | Low | Medium | Merging outputs that disagree |
| Orchestrator-workers | Subtasks depend on the input | Medium | High | A weak plan sends workers the wrong way |
| Evaluator-optimizer | You can score the output against criteria | High | Medium | Loops that never reach the bar |
| Single agent with tools | The number of steps is open-ended | Medium | Medium | Runaway loops and wrong tool calls |
| Supervisor multi-agent | Several specialists own separate tools | Medium | High | Supervisor picks the wrong specialist |
| Hierarchical teams | One supervisor has too much to track | High | High | Hard to trace which layer failed |
| Event-driven queue workers | Jobs arrive in bursts or run long | Async | Low to medium | Duplicate processing after retries |
| Human approval gates | An action is risky or costly to undo | Hours possible | Low | Repeated side effects when the run resumes |
The first five come from the workflow and agent patterns in the Anthropic engineering post on effective agents. The other five come from framework and cloud docs. In real systems, they nest. For example, a router can send one class of request to a supervisor team and another to a fixed chain.

Workflow Patterns With Fixed Code Paths
Anthropic draws a line between workflows and agents. In a workflow, models and tools follow code paths you defined. In an agent, the model directs its own process. Workflows are easier to test, because the route is known before the request arrives.
Prompt Chaining
Each model call works on the output of the one before it. You can add programmatic gates between steps, such as a check that an outline covers every required section before the draft gets written. The goal is to trade some speed for accuracy.
In production, put a schema check at every gate. A malformed step should fail fast and loud. Also log each step with the run ID, so you can replay the chain from the step that broke.
Routing
A classifier reads the input and sends it to a specialized prompt, model or agent. Anthropic notes that tuning one prompt for every kind of input tends to hurt some of them. Routing also lets you send basic questions to a small, cheap model and hard ones to a larger model.
The OpenAI Agents SDK suggests structured outputs for this job. One agent returns a category, and your code picks the next agent. Keep a fallback route for anything the classifier cannot place, and track misroutes as a metric.
Parallelization
Models work at the same time and code merges the results. Anthropic names two forms. Sectioning splits a task into independent parts, such as one model screening a query for policy issues while another answers it. Voting runs the same task several times, for instance several prompts reviewing code for security flaws.
In the OpenAI Agents SDK, plain asyncio.gather runs agents side by side. Microsoft Agent Framework has a concurrent orchestration for the same purpose. Set a timeout on each branch. Otherwise, one slow branch holds up the merged answer.
Evaluator-Optimizer
One model writes and another grades the work, then the writer revises. The pattern works when feedback measurably improves the output and a model can give that feedback. Literary translation is its example. The OpenAI Agents SDK shows the same idea as a while loop with an evaluator agent.
Cap the rounds. Google ADK makes the danger plain. Its LoopAgent does not decide on its own when to stop, and in Python its max_iterations defaults to None. A loop with no cap ends only when a sub-agent escalates.
Agent Patterns Where the Model Picks the Next Step
Once a model chooses the route, you gain flexibility and lose predictability. Anthropic warns that autonomous agents cost more and that their errors can compound. By its count, a typical agent burns roughly 4x the tokens of a chat exchange, and a multi-agent system roughly 15x.
Single Agent With Tools
One model calls tools in a loop until the job is done. The OpenAI Agents SDK loop ends when the model returns final output with no tool calls. If not, the runner executes the tools, appends the results and calls the model again.
In our view, this pattern deserves more work before you split it into several agents. Give tools sharp names and descriptions. Set max_turns, which raises MaxTurnsExceeded when crossed. Then test in a sandbox before the agent touches live systems.
Orchestrator-Workers
A central model breaks the task down at run time, hands parts to worker models and merges what they return. The difference from parallelization is that the subtasks are not known in advance. Coding tools that edit several files per request use this shape.

Anthropic built its research feature this way. In Anthropic’s tests, a Claude Opus 4 lead with Claude Sonnet 4 subagents scored 90.2 percent higher than one Claude Opus 4 agent. The test was its internal research eval. It also lists the limits. The lead waits for each batch of subagents, so one slow worker can block the whole system. We explain the orchestrator role in depth in what an AI agent orchestrator is.
Supervisor Multi-Agent
A supervisor agent picks which specialist acts next, and each specialist reports back. LangGraph documents this pattern and a variant where specialists are exposed to the supervisor as tools. Amazon Bedrock lets one supervisor work with up to 10 collaborator agents.
Bedrock also shows a latency trade-off worth copying. In supervisor mode, the supervisor collects answers and replies itself. In routing mode, it passes the request to one collaborator, which replies directly. Routing also reduces latency. Our LangGraph page and the multi-agent category list tools that support supervisors.
Hierarchical Teams
Supervisors manage other supervisors. LangGraph suggests this when a single supervisor starts making poor choices because it tracks too many agents. CrewAI offers a hierarchical process where a manager agent assigns tasks by role and checks outcomes. Our CrewAI profile covers it in more detail.
Each extra layer adds model calls and another place to fail. So tag every span with its layer and team name. Without that, a bad answer at the top is very hard to trace to the worker that caused it.
Read also: AI Agent Security Risks in Enterprise Applications
Infrastructure Patterns That Keep Agents Running
The last two patterns are about how work reaches the agent and how it waits. You can combine them with any pattern so far.
Event-Driven Queue Workers
Requests land on a queue and agent workers pull them off. This absorbs bursts and lets jobs run longer than a web request allows. Amazon SQS moves a message to a dead-letter queue after it has been received maxReceiveCount times without being deleted. AWS advises setting that count high enough for real retries. It also advises a longer retention period on the dead-letter queue than on the source queue.
For multi-step jobs, a durable engine goes further. Temporal records every workflow event in a history and replays it to rebuild state after a crash. Calls to the outside world run as activities, which retry with backoff. Our guide to AI agent state machines covers how to model those steps.
Human Approval Gates
The run pauses before a risky action and waits for a person. In LangGraph, the interrupt function saves graph state and waits for a resume command on the same thread ID. Microsoft Agent Framework orchestrations can pause on tools that need approval.
One detail trips teams up. When a LangGraph node resumes, it restarts from the top of that node, so code before the interrupt runs again. The docs advise making those earlier side effects idempotent, or moving them after the interrupt. Our human-in-the-loop orchestration guide walks through approval design.
Production Rules Every Agent Pattern Needs
Whatever pattern you pick, the same five controls decide if it survives real traffic.
- Persist state outside the process. AgentCore Runtime keeps session state only while a session lives, up to 8 hours or 15 idle minutes, and then wipes the microVM. The LangGraph in-memory checkpointer loses its data on restart. Use a durable store for anything a resume needs.
- Make side effects idempotent. Queues retry, approval gates replay nodes and workers crash mid-step. Give each action a unique ID and check it before you send an email or move money.
- Set timeouts at every level. Put limits on each tool call, each branch, each agent turn and the full run. A run that hits a limit should end in a known failure state.
- Trace every step. The OpenAI Agents SDK traces runs by default, with spans for model calls, tools, handoffs and guardrails. It can also export to tools such as Langfuse and Datadog LLM Observability.
- Cap cost per run. Turn limits are not enough on their own. Track tokens per run ID and stop the run at a budget. More budget tactics sit in our guide to control AI agent costs.
Releases need care too. Anthropic shifts traffic from old to new versions gradually while both run. So agents in the middle of a task are not cut off. Eval gates and canary steps are covered in our CI/CD pipeline for AI agents walkthrough, and AI agent guardrails covers input and output checks.
Pick an Agent Architecture Pattern in Five Questions
Answer these in order and stop at the first yes.
- Can one model call with good context do the job? Then ship that and skip patterns.
- Can you write the steps down ahead of time? Use prompt chaining, routing or parallel branches. Add an evaluator loop if you can score the output.
- Is the step count open-ended but the toolset small? Use a single agent with tools and a turn cap.
- Does the work split into independent parts that change per request? Use orchestrator-workers, and budget for many more tokens.
- Do separate teams own separate tools and rules? Use a supervisor, and go hierarchical only when one supervisor struggles.
After that, wrap the result in the infrastructure patterns you need. Long or bursty jobs go on a queue, and risky actions get an approval gate. For hosting options, browse our agent infrastructure category.
Questions on Running Agent Patterns in Production
What Is the Most Common AI Agent Architecture Pattern?
A single agent that calls tools in a loop. It is the base loop of the OpenAI Agents SDK, and multi-agent designs are built from several of these loops.
Are Multi-Agent Systems More Reliable Than One Agent?
Not by default. They can score higher on broad research tasks, yet they add handoffs, more state and more failure points. They work poorly where agents need one shared context, as in most coding work.
How Do I Keep Agent Workflows From Running Twice After a Crash?
Save state after every step and tie each side effect to a unique ID. Then a retry or resume finds the action already done and skips it. Durable engines such as Temporal and checkpointers in LangGraph handle the state part.
Should Workflows and Agents Live in the Same System?
Often, yes. A fixed workflow can call an agent for one fuzzy step, and an agent can call a fixed workflow as a tool. The OpenAI Agents SDK lets you mix model-led and code-led orchestration in one app.
Related AI Agents
Read also: Supervisor vs Swarm Architecture for AI Agents
Explore Agent Categories
Related Articles
GuidesAI Agent Security Risks in Enterprise Applications
GuidesSupervisor vs Swarm Architecture for AI Agents
GuidesHow AI Agents Work: Architecture, Components and Execution Flow
GuidesAI Agent Middleware: Architecture and Use Cases
GuidesAI Agent Architecture: The 6 Layers Inside Every Agent
GuidesSynthesia AI Video Usage Among Corporate Training Teams




