Agentic Design Patterns: Eight That Keep Showing Up in Production
Common AI agent architecture patterns include tool use with narrow permissions, retrieval on demand, plan and execute, routing to specialists, a generator with an evaluator loop, parallel workers, a human approval gate, and structured long-term memory. Most production agents combine three or four of these, chosen to keep each model call small and each failure easy to locate.
After building enough agents, the same shapes repeat. Naming them makes design conversations faster and makes it easier to see which one a struggling system is missing.
1. Tool use with narrow permissions
The agent acts only through typed tools, and code checks every call. Give each agent the smallest tool set that lets it finish its job.
2. Retrieval on demand
Instead of pre-loading documents, the agent searches an index and fetches what it needs when it needs it. See agentic context engineering.
3. Plan and execute
The agent first writes a short plan as a list of steps, then executes them one by one, revising if a step fails. The plan is stored outside the context so it survives summarisation.
4. Router to specialists
A cheap classifier picks one specialist agent per request. Each specialist stays small. See LLM routing.
5. Generator with evaluator loop
Output is checked by code, then by a rubric review if needed. Failures go back to the generator with the specific error, with a retry cap. This catches most problems before they leave the system.
6. Parallel workers
Independent subtasks run as separate agents with fresh contexts. Results come back as short summaries. Fast, but token-hungry, so reserve it for work that benefits.
7. Human approval gate
Irreversible actions wait for a person. The agent's work is preserved as a draft. Gates can be removed per action once logs show the step is reliable.
8. Structured memory
Facts are written and read through tools as small typed records, with overwrite and forget. Loaded as a short summary at session start. See agent memory architecture.
Choosing patterns
| Problem | Pattern that usually fixes it |
|---|---|
| Context keeps overflowing | Retrieval on demand, structured memory |
| Too expensive | Router to specialists, smaller models per step |
| Inconsistent quality | Generator with evaluator loop |
| Loses track on long tasks | Plan and execute |
| Too slow on bulk work | Parallel workers |
| Risky actions | Narrow tools, human approval gate |
For how patterns combine into whole systems, see agentic AI architecture and multi-agent orchestration.
Agentic design patterns and where they come from
Several catalogues of agentic design patterns now exist, from engineering blogs to full books on the subject. The names vary: reflection, tool use, planning, multi-agent collaboration, routing, memory, human in the loop. The eight above are the ones I see working in production systems, named by what they do rather than by any one source.
A worked example: combining four patterns
A document processing agent:
- Router picks the document type: invoice, contract or form.
- Tool use with narrow permissions: read the document, look up the supplier, nothing else.
- Generator with evaluator loop: extract to schema, code checks totals and required fields, one retry with the error.
- Human gate for anything that failed twice or exceeds an amount threshold.
No planner, no parallel workers, no long-term memory, because the job does not need them. Choosing patterns is as much about leaving them out as putting them in.
Anti-patterns to avoid
- The debate club: agents arguing in loops until they agree.
- The manager that forwards: an agent whose only job is passing messages.
- The everything agent: one agent with every tool and every instruction.
- The transcript relay: each agent receives the full history of all previous agents.
Where I use them
Each system on my systems page uses three or four of these patterns. For how agent parts fit together, see AI agent architecture.
Agentic design patterns cheat sheet
| Pattern | One-line rule |
|---|---|
| Tool use | Typed tools, narrow permissions, code checks every call. |
| Retrieval on demand | Search an index, fetch only what this step needs. |
| Plan and execute | Write the plan down outside the context, then follow it. |
| Routing | A cheap decision sends work to a small specialist. |
| Reflection or evaluation loop | Check, give specific feedback, retry with a cap. |
| Parallel workers | Independent subtasks, fresh contexts, short results. |
| Human in the loop | A person approves the irreversible step. |
| Memory | Small structured facts, loaded as a summary. |
Keep this table next to your design and ask, for each pattern, whether your system needs it and why. A pattern without a reason is cost without a benefit.
Frequently asked questions
What are AI agent architecture patterns?
They are reusable designs for building agents, such as tool use, retrieval on demand, plan and execute, routing to specialists, evaluator loops, parallel workers, human approval gates and structured memory.
Which agent pattern should I start with?
Start with tool use with narrow permissions and a generator with evaluator loop. Add retrieval on demand when knowledge is large, routing when costs are high, and parallel workers only when speed on bulk work matters.
Can agent patterns be combined?
Yes. Most production agents combine three or four patterns, for example a router in front of specialists that each use retrieval on demand and an evaluator loop.
What are agentic design patterns?
Agentic design patterns are reusable ways to structure AI agents and their workflows, such as tool use, reflection or evaluation loops, planning, routing, parallel workers, memory and human approval gates.
What is the reflection pattern in agentic AI?
Reflection is when an agent's output is reviewed, by code checks, another model or the agent itself against a rubric, and the agent revises it based on specific feedback, with a cap on how many rounds it runs.
How many agentic design patterns should one system use?
As many as its problems require, usually three or four. Each pattern adds cost and complexity, so include it only for a specific reason such as large knowledge, risky actions or parallel work.
Want an AI system designed this way?
I design and build AI systems where each agent has one job, sees only what it needs, and hands clean context to the next. Five are running in production right now. See what I have shipped, or book a call and bring the process you want automated.