Pattern Labs

21 Agentic Design Patterns

Each pattern has up to 4 challenge types across 3 difficulty tiers. Build architectures, debug broken pipelines, write prompts, and optimize costs.

#01

Prompt Chaining

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

4 labs
#02

Routing

Dynamically directing a user request to the most appropriate specialized agent, model, or processing...

4 labs
#03

Parallelization

Executing multiple independent agentic tasks simultaneously — such as voting on a decision, generati...

4 labs
#04

Reflection

Enables an agent to critique its own output (or the output of another agent) to identify errors, hal...

4 labs
#05

Tool Use

Extends the capabilities of an LLM by allowing it to interact with the external world (APIs, databas...

4 labs
#06

Planning

The capability of an agent to break down a high-level, ambiguous user goal into a sequence of execut...

4 labs
#07

Multi-Agent Collaboration

Structuring a system as a team of specialized agents (e.g., a Researcher, a Writer, a Reviewer, a Co...

4 labs
#08

Memory Management

Mechanisms for agents to store, index, and retrieve information over time, spanning short-term (conv...

2 labs
#09

Learning & Adaptation

The ability of an agent to improve its performance over time based on feedback, user interactions, o...

2 labs
#10

State Management (MCP)

A standardized protocol (Model Context Protocol) for connecting AI models to data sources and tools,...

2 labs
#11

Goal Setting & Monitoring

Mechanisms for agents to define high-level objectives, break them into trackable sub-goals, and cont...

2 labs
#12

Exception Handling & Recovery

Strategies for agents to detect failures (e.g., API errors, hallucinations, logic loops) and self-co...

2 labs
#13

Human-in-the-Loop

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

2 labs
#14

Knowledge Retrieval (RAG)

Retrieval-Augmented Generation (RAG) equips agents with the ability to query external knowledge base...

2 labs
#15

Inter-Agent Communication (A2A)

Protocols and formats for autonomous agents to exchange messages, tasks, and state information to co...

2 labs
#16

Resource-Aware Optimization

Agents aware of their token consumption, API costs, and computational limits, optimizing their strat...

2 labs
#17

Reasoning Techniques

Advanced cognitive architectures like Chain-of-Thought (CoT), Tree-of-Thought (ToT), and ReAct (Reas...

2 labs
#18

Guardrails & Safety

Architectural safeguards (input/output filters) to prevent agents from executing harmful actions, le...

2 labs
#19

Evaluation & Monitoring

Frameworks for measuring agent performance (accuracy, faithfulness, tool usage) and monitoring behav...

2 labs
#20

Prioritization

The ability of an agent to rank disparate tasks or goals based on urgency, importance, and constrain...

2 labs
#21

Exploration & Discovery

Agents proactively seeking new information, testing hypotheses, or exploring an environment to expan...

2 labs