Agent pattern catalog
02 Agents and Harnesses/What Is an Agent · 02 Agents and Harnesses/Agent Harness · ReAct · plannerexecutor · criticreviewer · humaninloop · skill loading · checkpoint/...
- Status
- evergreen
- Updated
- Topics
- ai-engineering · patterns · reference
Agent pattern catalog
| Pattern | Shape | Use when | Primary failure mode |
|---|---|---|---|
| Single call | model → answer | Fixed transformation | Unsupported confidence |
| Prompt chain | A → B → C | Known stages | Brittle handoff / latency |
| Router | classify → specialist | Clear task classes | Misrouting |
| Parallel fan-out | A → [B,C,D] | Independent work | Cost and merge conflict |
| Map-reduce | map items → combine | Many similar records | Weak aggregation |
| ReAct | reason ↔ act | Tool-driven uncertainty | Drift or repeated action |
| Planner-executor | plan → execute | Long, decomposable work | Stale plan |
| Evaluator-optimizer | draft ↔ critic | Checkable quality | Infinite loop / correlated judge |
| Supervisor-workers | manager → specialists | Real specialization | Coordination overhead |
| Handoff | agent → agent | Conversation ownership changes | Lost context / authority confusion |
| Blackboard | agents ↔ shared state | Many collaborators | Stale/conflicting state |
| Debate or voting | candidates → judge/vote | Independent views add value | False consensus |
| Human gate | agent → approval → action | Consequential execution | Friction or rubber-stamping |
| Skill/tool search | task → retrieve capability | Large catalog | Discovery mistaken for permission |
| Agentic RAG | search ↔ evaluate ↔ search | Retrieval uncertainty | Endless search / weak evidence |
For each selected pattern, document: the problem, topology, input/output contract, when not to use it, permissions, costs, stop condition, expected failures, and evaluation cases. See Workflow patterns and Mode and topology selector.
Cross-reference: Workflow patterns are detailed in Workflow patterns — this catalog is the reference index (no duplication of pattern details).
Agent patterns#
What is an agent? · Agent harness · ReAct · planner-executor · critic-reviewer · human-in-loop · skill loading · checkpoint/resume.
Workflow patterns#
Workflow patterns · sequence · router · branch · parallel fan-out/fan-in · map-reduce · evaluator-optimizer · event-driven · durable workflow.
Multi-agent patterns#
Multi-agent systems · supervisor-workers · specialist handoff · hierarchy · swarm · blackboard · debate · jury · quorum.
Knowledge patterns#
Retrieval-augmented generation (RAG) · semantic retrieval · BM25 · hybrid retrieval · reranking · query decomposition · agentic RAG · knowledge graph.
Safety patterns#
Security, jailbreaks, and prompt injection · least privilege · approval gate · sandbox · provenance/taint labels · credential broker · kill switch · audit trail.
Provenance and further reading#
| Pattern | Canonical reference |
|---|---|
| Single call · prompt chain · router · parallel fan-out · evaluator-optimizer · supervisor-workers | Anthropic, "Building effective agents" (Dec 2024) — https://www.anthropic.com/engineering/building-effective-agents |
| ReAct | Yao et al., 2022 — https://arxiv.org/abs/2210.03629 |
| Planner-executor | Weng, "LLM Powered Autonomous Agents" (2023) — https://lilianweng.github.io/posts/2023-06-23-agent/ — planning and reflection lineage |
| Debate or voting | Song et al., "More Agents Is All You Need" (2024) — https://arxiv.org/abs/2402.05120 |
| Human gate · handoff | OpenAI, "A practical guide to building agents" (2025) — https://cdn.openai.com/business-guides-and-resources/a-practical-guide-to-building-agents.pdf — guardrails and handoffs |
| Agentic RAG | Lewis et al. (2020) — https://arxiv.org/abs/2005.11401; Anthropic, "Introducing Contextual Retrieval" (2024) — https://www.anthropic.com/engineering/contextual-retrieval |
| Skill/tool search | Anthropic, "Effective context engineering for AI agents" (2025) — https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents — minimal viable tool sets |
All links verified 2026-08-27.