Claude Code · dynamic workflows

Seven workflow patterns, seven guided reads

A dynamic workflow is a plain-JavaScript orchestration script Claude Code writes for a task: the script holds the plan — loops, branching, intermediate state — while its agent() calls spawn the subagents that do the actual work. Below are the six named orchestration patterns plus the composed /deep-research harness. Each one steps through its script phase by phase, with a clickable topology diagram, an agent ledger, and per-step runtime details. Dotted tokens in the code link both ways to the glossary on the right.

7 patterns7 clickable diagrams50 guided steps33 glossary termsstep with

ticket classifierhaiku bug feature question debuggeropus sketchersession model answererhaiku results[] paths[] auditor auditor auditor auditor auditor synthesizeropus report one auditor per path · session model barrier draft extractorlists claims checker skeptic checker skeptic checker skeptic filtersurvivors one checker → skeptic pair per claim · skeptic on opus ideas ideas ideas ideas brainstormer ×12 · haiku new Setdedupe scorer scorer scorer one per name filterscore ≥ 8 top 3 designer A designer B designer C designer D each in its own worktree judgeopus judgeopus judgeopus winner pairwise comparison, halving each round start run tests failing? no done yes fixer fixer fixer one per failing test · worktree · parallel loop safety cap: 20 passes question angleshaiku ×1 searchhaiku ×5 fetch×12 verify pairsopus ×60 vote gate2+ sources synthesizeopus ×1 report
click a node to jump to its code
Step 1 / 1

agent ledger — one tick per subagent this run will spawn0 / ≈0
spawned this stepspawned earliernot yet
classify-and-act.jshighlighted lines = current step