Deep-Dives / Architectures & Patterns

Architectures & Patterns

Reusable agent architectures — ReAct, plan-and-execute, supervisor-worker, router, reflection — and when each fits.

  1. The Agent Design-Pattern Landscape
    Why architecture is a reliability lever, and the five axes that compare every pattern.
  2. ReAct — Interleaving Reasoning and Acting
    The workhorse tool loop: control flow, why interleaving wins, and the failure modes at scale.
  3. Plan-and-Execute — Decompose, Then Run
    Planner/executor split, replanning strategies, and when the up-front plan becomes a liability.
  4. Reflection — Verify, Critique, Revise
    Self-refine vs Reflexion, why the external signal is everything, and when self-critique hurts.
  5. Search Strategies — Branching Over Trajectories
    Best-of-N, self-consistency, tree/graph-of-thought: the cost regime and the scorer dependency.
  6. Routing & Dispatch — Selection, Fan-out, Parallelism
    Classifier vs tool-call routing, parallel fan-out, and the failure modes of the routing layer.
  7. Tool-Use Loops & Error Recovery
    The failure taxonomy, layered recovery, error-messages-as-prompts, and side-effect durability.
  8. Single-Agent vs. Multi-Agent Orchestration
    Real reasons to split, supervisor/worker vs hand-off, the coordination tax, and a decision framework.
  9. Durable Execution: LangGraph + Temporal
    Checkpointer-between-nodes vs Temporal-within-node — replay semantics, why LangGraph loops don't survive at 10k items, and the 'reasoning graph + durable runtime' pattern.
  10. Context Caching Economics
    Cross-vendor cache pricing (Anthropic 1.25x write / 0.1x read; Gemini 90% off; OpenAI automatic 75-90%), TTL trade-offs, and how caching plus batch stacks to ~95% off list.
  11. Browser Agent Failure Modes
    The six failure modes WebArena does not catch — DOM drift, screenshot ambiguity, login state, modal interruptions, rate-limit cliffs, irreversibility.
  12. Claude Managed Agents: Architecture
    Durable session as append-only event log, stateless harness, wake(sessionId) recovery — and what the pattern gives up.
  13. On-Device Agent Architecture
    Local inference buys zero marginal cost, no network in the inner loop and offline operation — and not privacy, because the tools still egress. Split the loop five ways, escalate on a static list of action properties, and treat the device edge as a performance boundary that only looks like a security one.