Skip to content
Dynamic Workflows in Claude Code
On Trove · from Matan Marudi

Dynamic Workflows in Claude Code

A Complete Guide to Multi-Agent Harnesses

Complete reference for Claude Code's dynamic workflows feature.

You can read the contents and the first 2,000 characters.
Free accounts get the whole book.

  • By Matan Marudi
  • 40 chapters
  • Updated Nov 1, 2026
  • 73 readers

What’s inside

  • Scope & Currency
  • The Problem Workflows Solve
  • Dynamic vs Static Workflows
  • How Dynamic Workflows Execute
  • Pattern 1: Classify-and-Act
  • Pattern 2: Fan-Out-and-Synthesize

What is Dynamic Workflows in Claude Code?

Complete reference for Claude Code's dynamic workflows feature. Covers the JavaScript orchestration model, six workflow patterns (classify-and-act, fan-out-and-synthesize, adversarial verification, generate-and-filter, tournament, loop-until-done), all major use cases (migrations, research, verification, triage, evals, model routing), prompting strategies, token budgets, and saving/sharing workflows. Based on Anthropic's official blog post by Thariq Shihipar and Sid Bidasaria.

Read more

Research compilation — Anthropic blog + Claude Code documentation · markdown · Listed Jun 3, 2026

  • workflows

Contents

  1. 01Dynamic Workflows in Claude Code: A Complete Guide to Multi-Agent Harnessesp.1
  2. 02Scope & Currencyp.2
  3. 03The Problem Workflows Solvep.3
  4. 04Decision Matrixp.4
  5. 05Dynamic vs Static Workflowsp.5
  6. 06How Dynamic Workflows Executep.6
    1. Workflow Script Anatomyp.6
    2. Core Orchestration Functionsp.6
    3. Agent Options Referencep.6
    4. Agent rulesp.6
  7. 07Pattern 1: Classify-and-Actp.7
    1. Agent rulesp.7
  8. 08Pattern 2: Fan-Out-and-Synthesizep.8
    1. Agent rulesp.8
See all 40 parts
  1. 09Pattern 3: Adversarial Verificationp.9
    1. Agent rulesp.9
  2. 10Pattern 4: Generate-and-Filterp.10
    1. Agent rulesp.10
  3. 11Pattern 5: Tournamentp.11
    1. Agent rulesp.11
  4. 12Pattern 6: Loop Until Donep.12
    1. Agent rulesp.12
  5. 13Migrations and Refactorsp.13
  6. 14Deep Researchp.14
  7. 15Deep Verificationp.15
  8. 16Sorting at Scalep.16
  9. 17Memory and Rule Adherencep.17
  10. 18Root-Cause Investigationp.18
  11. 19Triaging at Scalep.19
  12. 20Exploration and Tastep.20
  13. 21Evalsp.21
  14. 22Model and Intelligence Routingp.22
    1. Agent rulesp.22
  15. 23Triggering Workflowsp.23
  16. 24Prompting Strategiesp.24
  17. 25Token Budgetsp.25
  18. 26Saving and Sharing Workflowsp.26
  19. 27Combining with /loop and /goalp.27
    1. Agent rulesp.27
  20. 28Pattern Selection Guidep.28
  21. 29Use Case Quick Referencep.29
  22. 30Failure Mode Referencep.30
  23. 31Example Prompt Galleryp.31
  24. 32What Is Loop Engineering?p.32
    1. The Paradigm Shiftp.32
    2. The Inner Loop vs The Outer Loopp.32
    3. Loop Engineering vs Prompt Engineering vs Workflow Orchestrationp.32
    4. The Ralph Technique — Where It Startedp.32
  25. 33The Five Building Blocks of a Loopp.33
    1. Building Block 1: Automations (The Heartbeat)p.33
    2. Building Block 2: Worktrees (Parallel Without Collisions)p.33
    3. Building Block 3: Skills (Project Memory)p.33
    4. Building Block 4: Plugins and Connectors (Loop Touches Real Tools)p.33
    5. Building Block 5: Sub-Agents (Maker-Checker Split)p.33
    6. The Sixth Element: Memoryp.33
  26. 34Stop Conditions: Writing the Contractp.34
    1. The Problem With Weak Stop Conditionsp.34
    2. The Stop-Condition Contractp.34
    3. Writing `/goal` Conditions That Workp.34
    4. Three Habits for Trustworthy Loopsp.34
    5. The Loop-Until-Dry Stop Patternp.34
    6. Agent rulesp.34
  27. 35Loop Library: Real-World Loop Patternsp.35
    1. Engineering Loopsp.35
    2. Multi-Agent Verification Loops (from Loop Library #19, #20, #27)p.35
  28. 36Loop Maturity Ladderp.36
  29. 37The Risks of Loop Engineeringp.37
    1. Risk 1: Verification Is Still On Youp.37
    2. Risk 2: Comprehension Debt Grows Fasterp.37
    3. Risk 3: Cognitive Surrenderp.37
    4. The Token Billp.37
  30. 38Advanced Composition Patternsp.38
    1. Exhaustive Multi-Finder Patternp.38
    2. Judge Panel Patternp.38
    3. Completeness Critic Patternp.38
  31. 39Workflow Resumption and Debuggingp.39
    1. Resuming Interrupted Workflowsp.39
    2. Iterating on a Saved Workflowp.39
    3. Debugging a Misbehaving Workflowp.39
  32. 40Durable Long-Running Jobs: Detached Processes and Log Monitorsp.40
    1. The Four-Layer Durability Patternp.40
    2. Delegation at Scale on Top of a Long Jobp.40
    3. Agent rulesp.40
    4. Closing Notesp.40
    5. Sizing Subagents Before You Spawn Them: Avoiding Context Overflowp.40
    6. Chaining Two Workflows Around a Human-Approval Gatep.40
    7. Pattern: The Human Approval Gatep.40
    8. Pattern: Pipeline Back-Transitionsp.40
    9. +11 more sections