Guide

Agentic AI Design Patterns

Agentic AI design patterns for systems already in production — what to ship, what to observe, what to budget, what to gate. Augmented LLM, agentic RAG, supervisor + orchestrator-workers, decision log, step budget, sandbox isolation, approval queue.

Agentic AI design patterns are the building blocks of AI systems that act — systems where the LLM is not the product but the engine of a decision loop. These are the patterns you reach for when you stop asking "what should the model output?" and start asking "what should the agent do next, with which tool, under whose authority, on what budget?".

The selection below is biased toward production: the augmented-LLM primitive (model + retrieval + tools + memory), the loops that wrap it (ReAct, plan-and-execute), the orchestration shapes that scale it (supervisor, orchestrator-workers), the retrieval shape that grounds it (agentic RAG), and the governance shapes that keep it accountable (decision log, step budget, sandbox isolation). Together they answer "what does an agentic AI system actually look like once you ship it?".

Each pattern is decomposed GoF-style: intent, context, problem, forces, therefore, solution, consequences (benefits + liabilities), constrains (the hard prohibition that holds the pattern together under a powerful generator), and related[] — typed edges to other patterns. See the related guides below for adjacent framings — architecture, agentic design patterns more broadly, multi-agent coordination, RAG, and safety.

Field-tested patterns to start with

  • Augmented LLMBuild the foundational agent block as an LLM augmented with retrieval, tools, and memory that the model actively chooses to use, rather than a bare-model call.
  • ReActInterleave a single thought, a single tool call, and a single observation per step so the agent reasons over fresh evidence.
  • Tool UseLet the LLM produce typed calls against an external toolkit instead of producing free-form text the surrounding system has to parse.
  • Plan-and-ExecutePlan all the steps once with a strong model, then execute each step with a cheaper model under the plan.
  • Agentic RAGReplace static retrieve-then-generate with autonomous agents that plan, choose sources, retrieve iteratively, reflect, and re-query.
  • SupervisorPlace a coordinating agent above a set of specialised agents and route work to them.
  • Orchestrator-WorkersAn orchestrator dynamically breaks a task into subtasks at runtime and delegates each to a worker LLM, then synthesises results.
  • Decision LogPersist the agent's reasoning trace alongside its actions so post-hoc review can explain why.
  • Step BudgetCap the number of tool calls or loop iterations the agent is allowed within a single request.
  • Sandbox IsolationRun agent-emitted code or actions in a contained environment with restricted filesystem, network, and process privileges.
  • Approval QueueQueue agent-proposed actions for asynchronous human review while the agent continues other work.
  • ReflectionHave the model review its own output and produce a revised version in one or more passes.

Recommended reading

Or open the full contents for all 421 patterns in 14 books.

Related guides

  • LLM Agent Design PatternsA GoF-formal catalog of LLM agent design patterns: ReAct, tool use, plan-and-execute, reflection, step budget, and more. Each pattern decom…
  • Agentic Design PatternsA GoF-formal catalog of agentic design patterns — named, reusable shapes for building autonomous AI agents: agent loops, tool use, planning…
  • AI Agent Design PatternsHow to build an AI agent: the named shapes you reach for during design and implementation — reasoning (ReAct, plan-and-execute, reflection)…
  • Agent Design PatternsAgent design patterns treat the agent loop as a software-engineering primitive: an observe→reason→act cycle wrapped in tools, memory, super…
  • Agentic PatternsA complete pattern language for agentic systems, organised in Alexander-style books across reasoning, planning, tool use, retrieval, verifi…
  • Agentic AI ArchitectureHow to structure agentic AI: the architectural patterns that hold an LLM-powered system together. Supervisor, orchestrator-workers, augment…
  • RAG Agent PatternsPatterns for building retrieval-augmented generation agents: naive RAG, agentic RAG, hybrid search, cross-encoder reranking, contextual ret…
  • Multi-Agent PatternsPatterns for coordinating multiple LLM agents: supervisor, orchestrator-workers, handoff, debate, hierarchical agents, swarm, role assignme…
  • AI Agent Safety PatternsSafety patterns for LLM agents: step budget, kill switch, constitutional charter, approval queue, sandbox isolation, input/output guardrail…

About this catalog

The Agent Patterns Catalog is an open, GoF-formal reference of 421 design patterns for building LLM agents. Each pattern is decomposed in the manner of Christopher Alexander (1977) and the Gang of Four (1994). Source of truth at github.com/agentpatternscatalog/patterns — CC BY 4.0.

Open the contents