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



