Agent Orchestration Explained

/about

About this site

Agent Orchestration Explained treats multi-step and multi-agent systems as discrete-event systems. Its first four chapters take apart LangGraph's execution model (graphs and super-steps, state with reducers, checkpoints, interrupts and time travel) and durable execution (replay, non-determinism, idempotency keys); the next five model multi-agent patterns, fan-out under a rate limit, reliability, many workflows sharing one endpoint, and how to choose between the patterns from the simulation. Every chapter is built around an animation. It is the fourth of a family of agent sites, after Agent Harnesses Explained, Agent Protocols Explained and Agent Context Explained, next to the LLM-systems sites (the Transformer Decoder Explainer, LLM Inference Explained, Inference Trade-offs Explained and others, all in the header's switch).

Checked against real LangGraph

The engine's graph runtime is a model of LangGraph's, not a reimplementation of its code: graphs are data, and each node's behaviour is a short list of deterministic operations. In the engine's CI, every one of 39 sessions is built as a real StateGraph (plain node functions, operator.add and a max reducer, LangGraph's own interrupt, an in-memory checkpointer) and run in langgraph 1.2.14 (langgraph-checkpoint 4.2.0, pinned). After each of the 71 operations (invokes, crashes, resumes, Command(resume=…), update_state, time travel, Send fan-outs) the whole checkpoint history is compared with the engine's: every checkpoint's step, source, parent, state, next tasks, and each task's result, error and interrupt. They are equal. The data page lists the sessions.

One LangGraph detail turned out not to be deterministic: whether a checkpoint's next lists a join target whose other inputs have not arrived (it did in about nine runs in ten here). That task never runs from that checkpoint, so the comparison leaves it out on both sides; everything else is compared as recorded.

The engine, and how the animations are checked

The engine is Agent_Loop_Sim's orchestration module (engine 1.11.1): a Python reference with a TypeScript port, vendored here at commit 46b445c with every file's SHA-256 recorded. It runs in your browser in a few milliseconds, except the load sweep of chapter 8 and the chooser's tables of chapter 9 (thousands of simulated workflows), which the same engine computes when the site is built. Agreement between the two languages is exact, with no tolerance: every checkpoint, frame, caption, durable-execution run and seeded sweep.

What is illustrative

Accessibility

Every animation has keyboard controls (Space plays or pauses, the arrow keys step), a live caption read out by screen readers, and starts paused when the reader prefers reduced motion. Colours come from Okabe and Ito's colour-blind-safe palette, and nothing is told by colour alone: a failed node is also hatched and crossed, a paused one marked, a changed value tagged.

Source

The site's source is on GitHub (MIT). For the slides behind the chapters, see Introduction to LangGraph.

Built by Brendan Lynskey