Skip to content
Start ReadingGitHub

Agent architectures

Teach stable orchestration patterns before component and framework detail.

Before you begin

Agent foundations.

By the end

The reader can choose and diagram single-agent loops, routers, pipelines, parallel workers, evaluator-optimizer loops, plan-execute systems, supervisors, handoffs, and event-driven graphs.

  1. 01 Architecture selection criteria Establishes a systematic decision framework and trade-off matrix for selecting among deterministic workflows, single-agent loops, and multi-agent coordination patterns based on latency, cost, determinism, and failure containment.
  2. 02 Single-agent and reactive loops Explores the internal mechanics, state progression, and failure modes of single-agent ReAct loops, detailing how models interleave reasoning with dynamic tool actions and how host runtimes enforce termination guardrails.
  3. 03 Sequential, routing, and parallel workflows Deep dive into deterministic workflow orchestration topologies including linear prompt chaining, conditional routing, parallel sectioning, and consensus voting, emphasizing error isolation and validation gates.
  4. 04 Plan and execute Explores the plan-and-execute architectural pattern, detailing how separating strategic task planning from tactical action execution and dynamic replanning improves reliability on complex long-horizon tasks. Deep dive
  5. 05 Evaluator-optimizer and reflection Explores the evaluator-optimizer and reflection patterns, detailing how decoupled generator and evaluator models iteratively critique, score, and refine outputs against deterministic tests and semantic rubrics. Deep dive
  6. 06 State machines and event-driven graphs Explores state machines and event-driven graphs for AI agents, detailing typed state schemas, cyclic nodes, conditional edge routing, durable checkpointing, and asynchronous human-in-the-loop interruption. Deep dive
  7. 07 Supervisors, handoffs, and agent-as-tool Explores multi-agent coordination architectures, comparing centralized supervisors (manager-worker), decentralized peer handoffs (swarm), and encapsulated subagents (agent-as-a-tool). Deep dive
  8. 08 Architecture trade-offs Compares orchestration patterns across determinism, latency, token expenditure, observability, failure propagation, and termination guarantees to guide minimal architecture selection.