Agentic AI design patterns
Reusable answers to recurring problems, in two tracks: designing agentic systems, and AI-native software delivery. Each pattern uses the same card: problem, diagram, when to use, trade-offs, a worked example and related patterns. Every pattern is tagged with the degrees of freedom it changes.
Agentic systems
Patterns for designing agents and multi-agent systems.
Core loop
How a single agent thinks, acts and checks itself.
Tool Use
The model calls external functions or APIs through structured schemas, grounding it in real data and actions.
Tool/action No. 02ReAct
Reason, act, observe, repeat. The default loop in most agent frameworks.
DecisionTool/action No. 03Plan-and-Execute
Write the plan first, then execute step by step and replan on failure.
Decision No. 04Reflection
The agent critiques and revises its own output before returning it.
Verification No. 05Prompt Chaining
A fixed sequence of LLM calls with checks between steps. Predictable and debuggable.
Decision No. 06Routing
Classify the request and send it to the right prompt, model or agent.
Decision No. 07Parallelization
Run independent subtasks at once, or run one task several times and vote.
Coordination No. 49Deep Research Loop
Iteratively plan, search, read and assess until new sources stop adding information, then write a cited synthesis.
DecisionContextMulti-agent
How several agents divide and coordinate work.
Orchestrator–Workers
A lead agent decomposes the task at runtime, delegates, and merges results.
Coordination No. 09Evaluator–Optimizer
One agent generates, another grades against a rubric, and they loop until it passes.
VerificationCoordination No. 10Hierarchical Supervisor
Managers over leads over specialists, mirroring an org chart.
Coordination No. 11Handoff
Agents pass control and context peer-to-peer with no central boss.
Coordination No. 12Debate / Multi-Critic
Agents argue from different viewpoints and a judge picks the answer.
VerificationCoordination No. 13Blackboard
Agents read and write a shared workspace and contribute when they can.
CoordinationContext No. 50Cross-Model Critique
A model from one family drafts, a model from another family critiques, and the draft gets one refinement pass.
Verification No. 51Model Council
Several models answer independently in parallel, and a judge maps where they agree and diverge instead of collapsing them into one answer.
VerificationCoordinationContext & memory
What the agent knows, remembers and forgets.
Agentic RAG
The agent decides when and what to retrieve, rewrites queries and checks relevance.
Context No. 15Tiered Memory
Working, episodic and semantic memory stored and recalled separately.
Context No. 16Context Compaction
Summarize or prune history so long tasks fit the context window.
Context No. 17Sub-agent Context Isolation
A sub-agent explores in a clean context and returns only a summary.
ContextCoordinationSafety & control
Where the agent's autonomy stops.
Human-in-the-Loop
Pause for human approval before risky or irreversible actions.
VerificationDecision No. 19Guardrails
Input and output filters, policy checks and schema validation around the agent.
Verification No. 20Bounded Autonomy
Limits enforced by policy, not prompts: tool allowlists, spend caps, scope.
Tool/actionDecision No. 21Sandboxed Execution
Code and actions run in isolation with checkpoints and rollback.
Tool/action No. 67Shadow-Mode Autonomy
Run an agent beside the current process, compare results, and let it act alone only once it matches reliably.
DecisionVerificationRuntime & interop
The platform the agent runs on and talks through.
Agent Harness
A reusable runtime for loop, tools, memory, permissions and progress, instead of one-off scripts.
Tool/actionContextDecision No. 23Code-as-Action
The agent writes code that chains many tool calls, instead of one JSON call per step.
Tool/action No. 24Skills / Progressive Disclosure
Packaged instructions load only when relevant, keeping base context small.
Context No. 25Protocol Interop (MCP / A2A)
Standard servers for tools and agent-to-agent messaging across vendors.
Tool/actionCoordination No. 26Budget-aware Planning
Each stage gets a token, time or dollar budget and degrades gracefully.
Decision No. 27Ambient Agents
Always-on agents watch event streams and act or alert without a prompt.
DecisionContext No. 28Generative UI
The agent renders or changes interface elements, not just chat text.
Tool/action No. 29Delegated Agent Identity
Agents get their own scoped, auditable credentials to act for a user.
Tool/action No. 52Steerable Long-Running Task
Long tasks run in the background with visible progress, checkpoints, and controls to pause, resume, cancel or redirect mid-flight.
DecisionCoordinationEvaluation & learning
How the agent is graded and gets better.
Fast & slow
Pairing System 1 (fast, intuitive) and System 2 (deliberate) models.
Talker–Reasoner
A System 1 model keeps the conversation live while a System 2 model works in the background.
Coordination No. 33Fast/Slow Escalation
System 1 by default; escalate to System 2 when signals say the task is hard.
DecisionVerification No. 34Draft–Verify
System 1 drafts quickly; System 2 checks or corrects the draft.
Verification No. 35Respond-then-Refine
An instant first answer from System 1, followed by a refined System 2 version.
Decision No. 36Adaptive Thinking Budget
One model switches between no thinking and deep thinking based on difficulty.
Decision No. 37Metacognitive Monitor
A lightweight watcher spots surprises and switches the agent into System 2 mode.
Verification No. 38Habit Formation
Repeated System 2 solutions get compiled into fast System 1 skills or rules.
Context No. 39Reflex Layer
Instant System 1 responses for routine or safety-critical checks: triage, guardrails, stop/continue.
DecisionVerificationAI-native software delivery
Patterns for delivering software with AI coding agents, from planning to production and the operating model around it.
Plan & Design
Deciding what to build and how, before an agent writes code.
Spec-Driven Development
A short spec is the source of truth; the agent builds from it, not from chat history.
ContextDecision No. 44Plan-then-Code
The agent proposes a plan; a human approves it before any files change.
DecisionVerification No. 46Thin-Slice MVPs
Each session ships one small, working vertical slice (MVP1 → MVP2 → MVP3).
Decision No. 66Invariant-Anchored Goals
Give a long-running coding agent an outcome to reach and a short list of fixed invariants, instead of a task list, and keep both in front of it every round.
DecisionContext No. 69Spike-and-Compare Prototypes
Have agents build two or three rough versions of a design choice, then decide with evidence instead of debate.
DecisionCoordination No. 75Requirement Interrogator
An agent reads a requirement and lists the missing scenarios and decisions to take to the business before coding.
DecisionContext No. 76Change Impact Estimator
For each requested change, an agent estimates value, cost, schedule and risk, so the business decides with numbers.
DecisionContext No. 77Prototype-to-Clarify
Turn a rough requirement into a working prototype fast, and use it to get stakeholders' decisions.
DecisionCoordinationBuild
How coding agents produce working, tested code.
Agent-Ready Repo
One-command setup, scripted checks and clear docs, so an agent can run and verify its own work.
Tool/actionVerification No. 45Test-First Agent Loop
Tests define "done"; the agent iterates until they pass.
Verification No. 48Parallel Agents in Worktrees
Several agents work on isolated branches at once, then merge through review.
Coordination No. 73Reference Skeleton
Anchor coding agents to a small working reference app that shows how the team builds things.
ContextVerify
Checking agent changes at the pace agents produce them.
PR as Review Gate
Agents work on branches, and every change lands through a reviewed pull request.
Verification No. 53AI First-Pass Review
An AI reviewer checks every change before a person does, so human review time goes to the parts that need judgment.
Verification No. 54Small-Change Budget
Cap how large each agent change can be, so every change stays reviewable and easy to roll back.
DecisionVerification No. 55Review Capacity Limits
Cap open agent changes at what reviewers can handle, so review wait stays short instead of growing into a queue.
Coordination No. 60PR Steward Loop
After a pull request is opened, an agent watches it and handles the follow-up work (failing checks, conflicts, review comments) while escalating anything that needs the author's judgment.
VerificationDecision No. 63Protected Rule Files
Agents can't commit changes to the files that govern them (review rules, CI, ownership, agent instructions); those changes need extra human approval.
Tool/action No. 64Chaos Hardening Loop
A supervised, long-running agent drives heavy load and deliberate failures against a staging copy of the system, reads the telemetry, fixes what breaks and reruns, against invariants written down in advance.
VerificationCoordination No. 68Shadow-Traffic Comparison
Mirror real requests to old and new code, compare outputs, and cut over only when they match.
Verification No. 70Independent Verifier
Check agent work in a fresh session that never saw how the code was written, so no agent grades itself.
VerificationContextObserve
Learning from production and measuring what AI changed.
Production Feedback Loop
Incidents, errors and telemetry flow back to coding agents as well-formed tasks, so production teaches the next change.
ContextVerification No. 57Delivery Dividend Metrics
Baseline a few delivery measures before adopting coding agents and track them after, so you know what the agents actually changed.
Verification No. 65Agent-Legible Systems
Build the running system so that its signals can be traced to a specific cause, letting an agent diagnose and confirm fixes on its own.
ContextVerification No. 71Ambient QA Agent
An always-on agent checks the running system against rules people wrote and opens a PR when one breaks.
DecisionVerificationKnowledge layer
What agents and people need to know, and who decides it.
Project Memory File
A CLAUDE.md or AGENTS.md file holds conventions, commands and decisions that build up over time.
Context No. 43Artifact Ownership
Each artifact is marked developer-owned, AI-drafted or joint, so everyone knows who decides what.
DecisionCoordination No. 58Shared Knowledge Layer
An organization-wide store of decisions, conventions and lessons that every coding agent and engineer reads, with sources, ownership and access rules.
Context No. 62Feedback-to-Rule Promotion
When the same review feedback appears on more than one PR, turn it into a written rule in the file the relevant agent reads, with a person approving it.
Context No. 72Decision Records for Agents
Keep short decision records in the repo so agents know why the code is built the way it is.
ContextOperating model
Leadership decisions about where AI-freed capacity goes.
Explicit Dividend Allocation
Decide on purpose how to spend the capacity coding agents free up, between cutting cost and building new capability, instead of letting it disappear.
Decision No. 61Observe-Then-Enforce Approvals
Write approval rules as code, tiered by risk, and run them in observe mode against real PRs before letting them block or approve anything.
DecisionVerification No. 74Work-Type Routing
Classify each piece of work by type and risk, then run it through the workflow agreed for that type.
DecisionNo patterns match these filters. Clear a filter or try a different word.