Online-first field guide

Agentic Systems Patterns

A practical book for designing, evaluating, and operating agentic systems: goals, loops, tools, skills, memory, protocols, multi-agent topologies, and production runtimes.

102 chapters
15 sections
Static searchable site

Reader contract

Every chapter should change an engineering decision.

The book is built for software engineers who need boundaries, contracts, evals, traces, checklists, labs, and production gates they can use at work.

Read the contract
  • Decision you can defend
  • Boundary you can draw
  • Failure mode you can test
  • Artifact your team can reuse

Courtesy formats

Read on GitHub Pages first.

The online reader is the primary edition. PDF and EPUB are provided as convenience copies for offline reading and annotation.

Use the book

Start from the engineering decision

Use the book as a progression from orientation to implementation evidence. Start with the reader path, choose a pattern, build a small slice, verify the runtime, then use the release chapters to publish or operate the result.

sequenceDiagram participant Reader participant Paths as Reader paths participant Patterns participant Labs participant Gates as Production gates Reader->>Paths: Choose role and goal Paths->>Patterns: Select architecture Patterns->>Labs: Run focused slice Labs->>Gates: Verify traces, evals, rollback Gates-->>Reader: Publish or operate with evidence
Entry point

Choose an architecture

Compare model calls, chains, workflows, agent loops, and multi-agent systems before adding autonomy.

Open guide
Entry point

Read visually

Use the diagram route to understand boundaries, ownership, runtime control, coordination, and production safeguards.

Open guide
Entry point

Run a focused lab

Use small TypeScript and Python examples to inspect tools, state, retrieval, evals, protocols, and framework slices.

Open guide
Entry point

Review for production

Check state, policy, tools, memory, traces, evals, approvals, rollback, and release evidence before shipping.

Open guide

High-value chapters

Reading paths

Browse the book

6 chapters

Start Here

Orientation chapters that define the book, the reader paths, and the basic agent model.

Open section
10 chapters

Pattern Selection and Composition

Decision guides for choosing, scoring, composing, routing, budgeting, and hardening patterns before implementation.

Open section
5 chapters

Agent Runtime Foundations

Runtime primitives every agentic system depends on: single agents, loops, state, tools, and structured outputs.

Open section
8 chapters

Engineering Practice and Frameworks

Engineering workflow, harnesses, runtime primitives, framework choices, setup notes, and worksheets.

Open section
4 chapters

Evaluation, Security, and Trust

Evaluation, threat modeling, sandboxing, policy trust, and UX controls for systems that affect users.

Open section
6 chapters

Control Loops

Planning, reflection, evaluator-optimizer, and self-healing control patterns.

Open section
7 chapters

Context, Memory, and Knowledge

Context assembly, working sets, durable memory, semantic recall, RAG, and knowledge-bound behavior.

Open section
6 chapters

Tools, Skills, and Protocols

Tool contracts, skills, MCP, A2A, approval gates, and secure communication.

Open section
6 chapters

Multi-Agent Systems

Topology choices, delegation, supervisors, parallelism, and consensus.

Open section
9 chapters

Systems Architecture

Reference architectures for agentic services, RAG, coding, personal agents, and domains.

Open section
9 chapters

Production Runtime

Runtime controls, observability, policy, budgets, durable workflows, and events.

Open section
18 chapters

Hands-On Labs

Practical implementation paths and vertical slices.

Open section
4 chapters

Capstone Projects

Complete product-shaped examples that combine patterns, evals, traces, ADRs, runbooks, and rollout controls.

Open section
1 chapter

Historical Patterns

Historical patterns retained for context.

Open section
3 chapters

Publishing Appendix

Release, publishing, and maintenance notes.

Open section