Agentic Design Patterns

This is an original, engineering-focused learning path. It does not reproduce any book, repository chapter, or attachment. Instead, it organizes architecture selection, state, authorization, recovery, and evaluation into seven verifiable lessons and one offline project.

Content boundary

External articles, papers, and specifications are used only for fact checking and further reading. This project writes and organizes the lessons independently, links to sources, and does not copy third-party bodies or attachments into the site.

Scope alongside Agent Core

Agent Core teaches the state loop, context, planning, checkpoints, approval, and runtime control. This course asks how to combine those capabilities—and when not to add an Agent at all.

What you will learn

  • Choose the lowest-complexity solution among ordinary code, deterministic workflows, single Agents, and multi-Agent systems.
  • Design routing, parallelism, joins, reflection, and planning with explicit stopping conditions.
  • Separate the responsibilities of tools, memory, business state, and protocol capabilities.
  • Keep high-risk actions behind authorization and human approval.
  • Verify recovery with checkpoints, idempotent receipts, error classification, and environmental outcomes.
  • Evaluate systems with task success, cost, latency, safety-violation, and human-takeover rates.

Prerequisites

Learning sequence

OrderLessonWhat you can do afterward
1Pattern Selection and Minimal ArchitectureDecide whether an Agent is needed and draw the smallest state boundary
2Routing, Parallelism, and JoiningCompose common deterministic structures and handle partial failure and conflict
3Reflection, Planning, and Stopping ConditionsGive dynamic iteration feedback, a budget, and an exit
4Tools, Memory, and State BoundariesAssign external actions, long-lived information, and business state correctly
5Human Approval and Safety BoundariesKeep irreversible actions behind explicit authorization
6Failure Recovery, Evaluation, and ObservabilityProve reliability with traces, receipts, and environmental outcomes
7Project: Recoverable Task WorkflowRun and verify a key-free recoverable state machine

Boundary between patterns and protocols

ProblemStart withThe application still owns
In-process or owned-backend capabilityTool CallingPrincipal, object-level authorization, approval, idempotency, and receipt
Standardized tool, resource, and context connectionMCPMapping protocol capability to business policy and validating results
Collaboration between independent Agent applicationsA2ADelegation scope, remote-task access, approval, and outcome acceptance

Protocols provide interoperability; they do not grant business authority automatically. Multiple protocols can coexist, but they are worth adding only when a boundary genuinely crosses processes, products, or organizations.

Hands-on project

The course project lives in beginner-route/examples/:

  • resilient_workflow.py: a recoverable task workflow that uses only the Python standard library.
  • test_resilient_workflow.py: verifies strict checkpoints, parallel joins without shared writes, approval binding, classified retry, idempotent receipts, and recovery after a post-commit crash.

Mastery standard

  • I can explain why a task should use ordinary code, a workflow, one Agent, or multiple Agents.
  • I can write maximum steps, completion criteria, failure criteria, and human-takeover conditions.
  • I can distinguish a retryable fault, a business rejection, and an exception requiring human handling.
  • I can design an offline replay set with quality, cost, latency, and safety thresholds.
  • I can prove that approval binds the current action and repeated recovery does not repeat a side effect.
  • I can inspect both the trace and final environmental state rather than trusting an Agent’s text claim alone.

Further reading