The Deep Pattern Catalogue

61 composable patterns, each treated as a reusable primitive: context, forces, solution, applicability, anti-patterns, consequences, and the standards it helps satisfy.

Listen to this page

Ninety-One Patterns Powering Agentic AI

0:00
In Plain English

This page is the full encyclopedia for 61 AI agent patterns. Unlike the quicker Field Guide, every pattern here gets the complete picture: why it exists, what problems it solves, how to build it, when not to use it, and which laws or safety rules it helps you follow.

This level of detail matters most when you are actually building or checking an AI agent for real use, especially one that touches people's money, data, or safety — that is when guesswork is not good enough. Use the filters below to narrow all 61 patterns down by principle or tier, search by keyword, or just click any card to open its full page.

A dense wall of small labeled specimen drawers, one column lit warm orange, representing 61 catalogued patterns

61 patterns

AUT-DSN-01Tier I

Autonomy Tier Classification

Classify every agent by the reversibility and blast radius of the actions it may take, and bound its permissions accordingly.

Bounded Autonomyplan / design
AUT-ACT-01Tier I

Action Envelope Enforcement

Enforce, at runtime, the tier-declared boundary of what the agent is permitted to do — before the action reaches the target system.

Bounded Autonomyact / deploy
GOA-DSN-01Tier I

Declared Purpose & Out-of-Scope Register

Every agent has a written, versioned statement of its intended purpose, the user populations it serves, and the actions it must never take.

Goal Alignment & Scopingplan / design
GOA-RFL-01Tier II

Goal Drift Detection

Detect at runtime when the agent is pursuing a goal that has silently diverged from its declared purpose.

Goal Alignment & Scopingreflect / iterate
GOV-DSN-01Tier I

Policy-as-Code for Agents

Express organisational policy as executable, versioned, tested code that the runtime enforces — not prose in a governance PDF.

Governance-by-Designplan / design
GOV-END-01Tier I

Decision Record & Audit Ledger

For every material agent decision, emit an immutable, structured record sufficient to reconstruct the reasoning after the fact.

Governance-by-Designend / operate
PRA-PER-01Tier I

Structured Perception Interface

Transform raw environmental input into structured representations before the reasoning layer sees them.

Perceive–Reason–Act Cycleperceive / build
PRA-ACT-01Tier I

Act–Observe Closure

Every action produces a structured observation that closes the loop back to the agent's reasoning — not a fire-and-forget invocation.

Perceive–Reason–Act Cycleact / build
PRA-OBS-01Tier II

Observation Normalisation

Normalise observations from heterogeneous tools into a uniform shape the agent can reason over without tool-specific logic.

Perceive–Reason–Act Cycleobserve / operate
REA-PLN-01Tier I

ReAct (Reason–Act Interleaving)

Externalise the agent's reasoning by alternating visible thought steps with tool actions, so each decision leaves an inspectable trace.

Reasoning & World Modelplan / build
REA-PLN-02Tier II

Plan-and-Execute (ReWOO)

Generate a complete plan up front, then execute steps, rather than deciding the next action after each observation.

Reasoning & World Modelplan / build
REA-RFL-01Tier I

Reflection (Self-Critique)

After producing an output, the agent explicitly critiques its own work against defined criteria and revises before returning.

Reasoning & World Modelreflect / build
MEM-PER-01Tier I

Short-Term Working Memory

Hold the current task's context — the active turn, recent observations, scratch reasoning — in a bounded window that is cheap to read and replace.

Memory Stratificationperceive / build
MEM-RFL-01Tier I

Long-Term Episodic & Semantic Memory

Persist what the agent learned from past tasks in stratified stores: episodic (what happened), semantic (what is true), procedural (how to do things).

Memory Stratificationreflect / operate
MEM-ACT-01Tier II

Memory Poisoning Defence

Prevent adversarial or low-quality inputs from corrupting long-term memory where they later influence reasoning.

Memory Stratificationact / operate
TOO-DEC-01Tier I

Typed Tool Catalog

Every tool the agent can call has a strict, versioned schema for inputs and outputs. No free-form calls.

Tool Use as Typed Contractdecide / build
TOO-DEC-02Tier II

Tool-Catalog Indexing (Retrieval over Tools)

When the tool catalog is large, retrieve a small, relevant subset before presenting to the agent — do not dump the full catalog into every prompt.

Tool Use as Typed Contractdecide / build
TOO-ACT-01Tier I

Sandboxed Tool Execution

Execute tool calls inside an isolation boundary so that misbehaviour, side effects, and errors are contained.

Tool Use as Typed Contractact / deploy
TOO-ACT-02Tier I

Tool Whitelisting & Credential Scoping

An agent may only invoke explicitly whitelisted tools, and each tool holds only the credentials it needs for its declared scope.

Tool Use as Typed Contractact / deploy
PLN-PLN-01Tier I

Hierarchical Task Decomposition

Break a complex goal into a hierarchy of sub-tasks that individually fit within the agent's reliable reasoning horizon.

Planning & Decompositionplan / build
PLN-PLN-02Tier II

Tree-of-Thoughts / Multi-Path Exploration

For problems with branching decisions, explore multiple reasoning paths and evaluate — do not commit to the first viable path.

Planning & Decompositionplan / build
PLN-DEC-01Tier II

Task Prioritisation & Budget Control

Explicitly score, order, and budget sub-tasks so the agent spends resources where they produce the most value.

Planning & Decompositiondecide / operate
RAG-PER-01Tier I

Retrieval-Augmented Generation

Ground the agent's reasoning in retrieved, cited sources rather than parametric memory — especially for domain-specific or time-sensitive facts.

Knowledge Grounding (RAG)perceive / build
RAG-ACT-01Tier II

Citation-Grounded Output

Every factual claim in the agent's output is tied to a retrieved source, and ungrounded claims are flagged or removed.

Knowledge Grounding (RAG)act / operate
RAG-ACT-02Tier III

Agentic RAG

Treat retrieval itself as an agent loop — the agent decides what to retrieve, critiques results, and re-queries — rather than a single upfront fetch.

Knowledge Grounding (RAG)act / operate
A2A-DEC-01Tier II

Standardised Inter-Agent Protocol

Use open, interoperable protocols (Agent-to-Agent / A2A, Model Context Protocol / MCP) for communication between agents and between agents and tools — not bespoke glue.

Inter-Agent Communicationdecide / build
A2A-ACT-01Tier II

Agent-as-Tool (Sub-Agent Invocation)

Expose specialised agents to other agents as tools — with the same typed-contract discipline as any other tool.

Inter-Agent Communicationact / build
ORC-PLN-01Tier I

Prompt Chaining (Sequential Workflow)

Decompose a task into a fixed sequence of LLM calls, each operating on the previous output, with programmatic gates between steps.

Orchestration Topologyplan / design
ORC-DEC-01Tier I

Routing (Classification-Dispatch)

Classify the input first, then dispatch to a specialist prompt or agent — rather than asking one generalist to handle every case.

Orchestration Topologydecide / design
ORC-ACT-01Tier I

Parallelisation (Sectioning & Voting)

Run multiple LLM calls concurrently — either on independent sub-tasks (sectioning) or the same task multiple times (voting) — then aggregate.

Orchestration Topologyact / deploy
ORC-PLN-02Tier I

Orchestrator–Workers

A central orchestrator agent plans and delegates to specialised worker agents (or tools), then composes their outputs.

Orchestration Topologyplan / design
ORC-RFL-01Tier I

Evaluator–Optimiser Loop

Separate the generator from the evaluator: one agent produces, another critiques against criteria, and the loop iterates until quality is met.

Orchestration Topologyreflect / build
ORC-PLN-03Tier II

Hierarchical (Supervisor) Topology

Organise multi-agent systems as hierarchies — supervisors delegate to sub-supervisors or specialists — mirroring effective human organisational structures.

Orchestration Topologyplan / design
ORC-ACT-02Tier III

Swarm / Decentralised Topology

Let autonomous peer agents communicate directly, negotiate roles dynamically, and solve problems through emergent coordination — when the problem structure favours it.

Orchestration Topologyact / design
HIL-DEC-01Tier I

Approval Gate for Irreversible Actions

Require explicit human approval before the agent executes actions that are irreversible, high-value, or externally visible.

Human-in-the-Loop Checkpointsdecide / design
HIL-RFL-01Tier II

Automation Bias Countermeasures

Design the HITL surface to resist automation bias — the human tendency to over-trust an automated system that has performed well historically.

Human-in-the-Loop Checkpointsreflect / operate
HIL-END-01Tier II

Escalation & Handoff to Human

When the agent detects it is out of scope, uncertain, or blocked, it hands off to a human with a structured briefing — not a dead-end apology.

Human-in-the-Loop Checkpointsend / operate
OBS-ACT-01Tier I

Span-Level Tracing of Agent Execution

Capture every reasoning step, tool call, and decision as a span in a distributed trace — not just the final output.

Observability & Traceabilityact / operate
OBS-OBS-01Tier II

Live Telemetry & Anomaly Detection

Detect abnormal agent behaviour at runtime — not in post-hoc audits — and surface alerts to the right operator.

Observability & Traceabilityobserve / operate
OBS-END-01Tier II

Lineage & Explainability Artefacts

For every output consumed downstream, produce a lineage artefact: what was retrieved, what tools ran, which model version, what policies evaluated.

Observability & Traceabilityend / operate
GRD-PER-01Tier I

Prompt Injection Defence (Layered)

Defend against prompt injection — direct and indirect — with layered controls at input, context-assembly, and output boundaries.

Guardrails & Safety Layersperceive / deploy
GRD-ACT-01Tier I

Output Filtering & PII Redaction

Before an agent's output leaves the trust boundary, scan and redact for sensitive data, policy violations, and disallowed content.

Guardrails & Safety Layersact / deploy
GRD-ACT-02Tier I

Topic Confinement

Restrict the agent's conversational and functional scope to its declared domain — a banking agent refuses to write code; a code assistant refuses to give medical advice.

Guardrails & Safety Layersact / deploy
GRD-END-01Tier II

Kill-Switch & Emergency Stop

Provide a reliable, immediate mechanism to halt an agent or fleet of agents — without graceful shutdown dependencies.

Guardrails & Safety Layersend / deploy
EVA-DSN-01Tier I

Offline Evaluation Suite (Golden Set)

Maintain a versioned suite of tests — prompts, expected behaviours, edge cases, adversarial inputs — that the agent must pass before any deployment.

Evaluation & Continuous Monitoringplan / evaluate
EVA-EVL-01Tier I

Red-Teaming & Adversarial Evaluation

Actively attack the agent before deployment — injection, jailbreak, manipulation, data exfiltration — and remediate what is found.

Evaluation & Continuous Monitoringreflect / evaluate
EVA-ITR-01Tier II

Human Spot-Check Sampling

In addition to automated evaluation, sample a small fraction of live agent outputs for human review on a rolling basis.

Evaluation & Continuous Monitoringreflect / iterate
EXC-ACT-01Tier I

Bounded Iteration & Budget Caps

Every agent loop has explicit limits — max iterations, max tokens, max wall-time, max spend — beyond which it stops and escalates.

Exception Handling & Graceful Degradationact / build
EXC-OBS-01Tier I

Retry with Backoff & Circuit Breaking

Handle transient tool failures with bounded retries and backoff; break the circuit when a tool is persistently unhealthy.

Exception Handling & Graceful Degradationobserve / build
EXC-END-01Tier II

Graceful Degradation Path

When the primary pathway fails, the agent falls back to a reduced-capability alternative rather than returning nothing.

Exception Handling & Graceful Degradationend / operate
IDY-DSN-01Tier I

Unique Agent Identity

Every agent has a unique, verifiable identity distinct from its developer, its user, and its supervising agents — used for authentication, authorisation, and audit.

Identity & Least-Privilegedecide / design
IDY-ACT-01Tier I

Least-Privilege Scoping

Each agent holds only the permissions required for its declared tasks — nothing more.

Identity & Least-Privilegeact / deploy
IDY-RFL-01Tier II

Agent Sprawl & Shadow-Agent Detection

Maintain a canonical inventory of all deployed agents and detect shadow, orphaned, or duplicate agents in the portfolio.

Identity & Least-Privilegereflect / operate
IDY-END-01Tier II

Safe Decommissioning

Retire agents in a controlled way that preserves audit trail, revokes permissions, and handles downstream dependencies.

Identity & Least-Privilegeend / decommission
HIL-PER-01Tier II

User-Intent Clarification

When a user's request is ambiguous or underspecified, the agent asks a focused clarifying question before acting — rather than guessing.

Human-in-the-Loop Checkpointsperceive / operate
OBS-PLN-01Tier II

Reasoning-Chain Inspection

Make the agent's reasoning trace inspectable by humans — reviewers, auditors, and end users — not just by machines.

Observability & Traceabilityplan / evaluate
GRD-DSN-01Tier I

Threat Modelling at Design Time

Before the agent is built, enumerate the attacker, attack surface, and likely attack paths — and design defences accordingly.

Guardrails & Safety Layersplan / design
MEM-OBS-01Tier II

Retrieval Ranking & Relevance Control

Rank retrieved memories and context by relevance and freshness before presenting to the reasoner — not just top-K by cosine similarity.

Memory Stratificationobserve / operate
TOO-OBS-01Tier II

Tool-Output Validation

Validate tool outputs against schema and semantic expectations before the agent acts on them — tools can return malformed, stale, or adversarial data.

Tool Use as Typed Contractobserve / build
EVA-OPR-01Tier III

Online A/B & Shadow Evaluation

Compare agent variants in production using A/B, shadow, or canary deployments with statistical rigour — not anecdotes or vibe-checks.

Evaluation & Continuous Monitoringobserve / operate
IDY-OBS-01Tier III

Delegation-Chain Tracking

When an agent invokes another agent, maintain an auditable chain-of-delegation that preserves the original principal and intermediate authority.

Identity & Least-Privilegeobserve / operate