Developer track · Product manager track

The 21 agentic design patterns

Every pattern for building AI agents, from Antonio Gullí's framework, mapped to the software engineering concept you already know. Each lesson has the definition, the mapping, a before and after code example, production notes and a hands-on exercise.

Lessons
21
Open without account
7
Price
Free
No.PatternAccess
01Prompt Chaining · Pipe & Filter

The foundational design pattern where a complex task is decomposed into a linear sequence of smaller, discrete LLM calls.

Open
02Routing · Load Balancer / API Gateway

Dynamically directing a user request to the most appropriate specialized agent, model, or processing path based on the semantic intent and.

Open
03Parallelization · Scatter-Gather / MapReduce

Executing multiple independent agentic tasks simultaneously — such as voting on a decision, generating multiple creative drafts, or verifying facts.

Open
04Reflection · Unit Testing / TDD Loop

Enables an agent to critique its own output (or the output of another agent) to identify errors, hallucinations, or areas for improvement, and then.

Open
05Tool Use · Adapter / Proxy Pattern

Extends the capabilities of an LLM by allowing it to interact with the external world (APIs, databases, calculators, software environments) to.

Open
06Planning · Workflow Orchestration / Saga

The capability of an agent to break down a high-level, ambiguous user goal into a sequence of executable steps (a plan), and then execute them while.

Open
07Multi-Agent Collaboration · Microservices Architecture

Structuring a system as a team of specialized agents (e.g., a Researcher, a Writer, a Reviewer, a Coder) that collaborate, hand off tasks, and.

Open
08Memory Management · Database / Caching / Session State

Mechanisms for agents to store, index, and retrieve information over time, spanning short-term (conversation context) and long-term (knowledge.

Free account
09Learning & Adaptation · CI/CD / A-B Testing

The ability of an agent to improve its performance over time based on feedback, user interactions, or new data, without full model retraining.

Free account
10State Management (MCP) · IDL / REST Standards / USB-C

A standardized protocol (Model Context Protocol) for connecting AI models to data sources and tools, ensuring consistent context and state exchange.

Free account
11Goal Setting & Monitoring · Health Checks / APM

Mechanisms for agents to define high-level objectives, break them into trackable sub-goals, and continuously monitor progress towards completion.

Free account
12Exception Handling & Recovery · Try-Catch / Circuit Breaker

Strategies for agents to detect failures (e.g., API errors, hallucinations, logic loops) and self-correct or retry using alternative strategies.

Free account
13Human-in-the-Loop · Manual Approval Gates

Integrating human oversight at critical decision points to validate agent actions, provide feedback, or disambiguate requests.

Free account
14Knowledge Retrieval (RAG) · Database Query / Search Index

Retrieval-Augmented Generation (RAG) equips agents with the ability to query external knowledge bases (Vector DBs, Search Indices) to ground their.

Free account
15Inter-Agent Communication (A2A) · Message Queues / API Contracts

Protocols and formats for autonomous agents to exchange messages, tasks, and state information to collaborate on a shared goal.

Free account
16Resource-Aware Optimization · Auto-scaling / Load Shedding

Agents aware of their token consumption, API costs, and computational limits, optimizing their strategies accordingly (e.g., using a cheaper model.

Free account
17Reasoning Techniques · Algorithms / Design Patterns

Advanced cognitive architectures like Chain-of-Thought (CoT), Tree-of-Thought (ToT), and ReAct (Reason+Act) that structure the model's internal.

Free account
18Guardrails & Safety · Input Validation / Firewalls / IAM

Architectural safeguards (input/output filters) to prevent agents from executing harmful actions, leaking PII, or deviating from policy.

Free account
19Evaluation & Monitoring · Integration Testing / Observability

Frameworks for measuring agent performance (accuracy, faithfulness, tool usage) and monitoring behavior in production (traces, logs).

Free account
20Prioritization · Priority Queue / Job Scheduling

The ability of an agent to rank disparate tasks or goals based on urgency, importance, and constraints, effectively managing its own backlog.

Free account
21Exploration & Discovery · Chaos Engineering / Fuzz Testing

Agents proactively seeking new information, testing hypotheses, or exploring an environment to expand their knowledge or capabilities, rather than.

Free account