Choose an architecture
Compare model calls, chains, workflows, agent loops, and multi-agent systems before adding autonomy.
Open guideOnline-first field guide
A practical book for designing, evaluating, and operating agentic systems: goals, loops, tools, skills, memory, protocols, multi-agent topologies, and production runtimes.
Reader contract
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 contractCourtesy formats
The online reader is the primary edition. PDF and EPUB are provided as convenience copies for offline reading and annotation.
Use the book
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.
Compare model calls, chains, workflows, agent loops, and multi-agent systems before adding autonomy.
Open guideUse the diagram route to understand boundaries, ownership, runtime control, coordination, and production safeguards.
Open guideUse small TypeScript and Python examples to inspect tools, state, retrieval, evals, protocols, and framework slices.
Open guideCheck state, policy, tools, memory, traces, evals, approvals, rollback, and release evidence before shipping.
Open guideHigh-value chapters
Choosing the Right Pattern helps you select the least agentic architecture that can meet the workload with acceptable quality, cost, latency, and risk.
Read chapterThe 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.
Read chapterTool use gives an agent controlled access to external capability such as calculators, search, databases, files, code execution, APIs, or business systems.
Read chapterSemantic recall retrieves relevant material by meaning rather than exact keywords. RAG injects retrieved material into context before generation.
Read chapterTask delegation assigns bounded subtasks to specialized workers and combines their outputs.
Read chapterObservability records what happened. Evals decide whether behavior is good enough. Release gates decide whether a change is allowed to ship.
Read chapterReading paths
Orientation chapters that define the book, the reader paths, and the basic agent model.
Open sectionDecision guides for choosing, scoring, composing, routing, budgeting, and hardening patterns before implementation.
Open sectionRuntime primitives every agentic system depends on: single agents, loops, state, tools, and structured outputs.
Open sectionEngineering workflow, harnesses, runtime primitives, framework choices, setup notes, and worksheets.
Open sectionEvaluation, threat modeling, sandboxing, policy trust, and UX controls for systems that affect users.
Open sectionPlanning, reflection, evaluator-optimizer, and self-healing control patterns.
Open sectionContext assembly, working sets, durable memory, semantic recall, RAG, and knowledge-bound behavior.
Open sectionTool contracts, skills, MCP, A2A, approval gates, and secure communication.
Open sectionTopology choices, delegation, supervisors, parallelism, and consensus.
Open sectionReference architectures for agentic services, RAG, coding, personal agents, and domains.
Open sectionRuntime controls, observability, policy, budgets, durable workflows, and events.
Open sectionPractical implementation paths and vertical slices.
Open sectionComplete product-shaped examples that combine patterns, evals, traces, ADRs, runbooks, and rollout controls.
Open sectionHistorical patterns retained for context.
Open sectionRelease, publishing, and maintenance notes.
Open section