Pattern catalog

Encuentra el agentic pattern correcto

Explora los chapters generados como catálogo. Elige el pattern por decisión técnica y revisa tradeoffs, failure modes, evals y production guidance.

01 Agent Runtime Foundations
Pattern Beginner 12-25 min pattern review BuilderStudent

Single Agent

A single agent receives a goal or message, consults its context, and produces an answer or action. This is the smallest useful unit in the catalog.

02 Agent Runtime Foundations
Pattern Beginner 12-25 min pattern review BuilderStudent

Agent Loop

The agent loop turns a model call into an agent: observe state, decide the next action, act, evaluate the result, and stop when the goal is complete or a limit is reached.

03 Agent Runtime Foundations
Pattern Beginner 12-25 min pattern review BuilderStudent

Goals and State

Goals define success; state records progress. Together they make agent work resumable, inspectable, and easier to evaluate.

04 Agent Runtime Foundations
Pattern Beginner 12-25 min pattern review BuilderStudent

Tool Use

Tool use gives an agent controlled access to external capability such as calculators, search, databases, files, code execution, APIs, or business systems.

05 Agent Runtime Foundations
Pattern Beginner 12-25 min pattern review BuilderStudent

Structured Output

Structured output constrains model responses to typed data that software can validate and consume.

06 Control Loops
Pattern Intermediate 12-25 min pattern review BuilderArchitect

Planning and Execution

Planning separates deciding what to do from doing it. The planner creates steps; the executor runs them, reports progress, and handles errors.

07 Control Loops
Pattern Intermediate 12-25 min pattern review BuilderArchitect

ReAct

ReAct alternates reasoning and acting. The agent reasons about current state, takes an action, observes the result, and repeats.

08 Control Loops
Pattern Intermediate 12-25 min pattern review BuilderArchitect

Reflection

Reflection asks an agent or evaluator to inspect prior output and identify concrete improvements.

09 Control Loops
Pattern Intermediate 12-25 min pattern review BuilderArchitect

Evaluator-Optimizer

Evaluator-Optimizer pairs a generator with an evaluator. The generator proposes; the evaluator scores; the optimizer revises or stops.

10 Control Loops
Pattern Intermediate 12-25 min pattern review BuilderArchitect

Self-Improvement

Self-improvement uses feedback from prior runs to improve future runs through reviewed changes to prompts, tools, retrieval, policies, tests, or skills.

11 Control Loops
Pattern Intermediate 12-25 min pattern review BuilderArchitect

Self-Healing Workflows

Self-healing workflows detect failed steps and recover through retry, fallback, re-planning, or escalation.

12 Context, Memory, and Knowledge
Pattern Intermediate 12-25 min pattern review BuilderArchitect

Context Engineering

Context engineering controls what the model sees: instructions, state, retrieval results, tool documentation, memory, examples, and prior messages.

13 Context, Memory, and Knowledge
Pattern Intermediate 12-25 min pattern review BuilderArchitect

Memory-Augmented Agent

Memory gives an agent continuity, but it also creates a durable trust boundary.

14 Context, Memory, and Knowledge
Pattern Intermediate 12-25 min pattern review BuilderArchitect

Long-Term Episodic Memory

Long-term episodic memory stores events: what happened, when, who was involved, and why it mattered.

15 Context, Memory, and Knowledge
Pattern Intermediate 12-25 min pattern review BuilderArchitect

Semantic Recall and RAG

Semantic recall retrieves relevant material by meaning rather than exact keywords. RAG injects retrieved material into context before generation.

16 Context, Memory, and Knowledge
Pattern Intermediate 12-25 min pattern review BuilderArchitect

Working Memory

Working memory is compact, typed task state the agent can update and consult during a run.

17 Context, Memory, and Knowledge
Pattern Intermediate 12-25 min pattern review BuilderArchitect

Knowledge-Bound Agents

Knowledge-bound agents ground answers and actions in approved sources, policies, and citation rules.

18 Tools, Skills, and Protocols
Pattern Intermediate 12-25 min pattern review BuilderSecurity

Skills

Skills package procedural knowledge as discoverable, versioned folders of instructions, references, scripts, templates, assets, and tests.

19 Tools, Skills, and Protocols
Pattern Intermediate 12-25 min pattern review BuilderSecurity

MCP-first Tool Use

MCP-first tool use separates tool capability from agent logic through manifests, validation, invocation, and structured results.

20 Tools, Skills, and Protocols
Pattern Intermediate 12-25 min pattern review BuilderSecurity

A2A Agent Interoperability

A2A makes agents discoverable and callable across process, team, runtime, and vendor boundaries.

21 Tools, Skills, and Protocols
Pattern Intermediate 12-25 min pattern review BuilderSecurity

Secure Agent Communication

Secure communication protects messages between agents with authentication, integrity, confidentiality, and policy checks.

22 Tools, Skills, and Protocols
Pattern Intermediate 12-25 min pattern review BuilderSecurity

Human Approval Gates

Human approval gates pause execution before sensitive, expensive, destructive, or externally visible actions.

23 Multi-Agent Systems
Pattern Advanced 12-25 min pattern review ArchitectBuilder

Task Delegation

Task delegation assigns bounded subtasks to specialized workers and combines their outputs.

24 Multi-Agent Systems
Pattern Advanced 12-25 min pattern review ArchitectBuilder

Supervisor / Worker

Supervisor/Worker centralizes goal ownership, task state, routing, and quality gates while workers perform bounded specialist work.

25 Multi-Agent Systems
Pattern Advanced 12-25 min pattern review ArchitectBuilder

Debate and Consensus

Debate and consensus use multiple independent proposals, critiques, votes, or rankings before producing a final answer.

26 Multi-Agent Systems
Pattern Advanced 12-25 min pattern review ArchitectBuilder

Parallel Agents

Parallel agents run independent work concurrently, then merge results through a fan-out/fan-in control point.

27 Multi-Agent Systems
Pattern Advanced 12-25 min pattern review ArchitectBuilder

CrewAI Flows and Crews

CrewAI Flows own state and execution order. Crews group specialized agents that collaborate on delegated work inside the flow.

28 Production Runtime
Pattern Advanced 20-35 min design review OperatorReviewer

Durable Workflows

Durable workflows make agentic systems resumable and auditable by owning retries, checkpoints, approvals, compensation, and long-running state.

29 Production Runtime
Pattern Advanced 20-35 min design review OperatorReviewer

Observability and Evals

Observability records what happened. Evals decide whether behavior is good enough. Release gates decide whether a change is allowed to ship.

30 Production Runtime
Pattern Advanced 20-35 min design review OperatorReviewerSecurity

Policy Enforcement

Policy enforcement constrains what the agent may say or do through permissions, data-access rules, business rules, safety rules, and escalation.

31 Production Runtime
Pattern Advanced 20-35 min design review OperatorReviewer

Event-Triggered Agents

Event-triggered agents run in response to webhooks, queues, schedules, or domain events.

32 Production Runtime
Pattern Advanced 20-35 min design review OperatorReviewer

Mastra Runtime

Mastra is a TypeScript runtime pattern for applications that need agents, workflows, tools, memory, evals, and observability in one framework.