Skills
Orchestrate fan-out with a JS script using agent()/parallel()/pipeline() instead of a chat loop
Claude Code Dynamic Workflows let one lead agent write a deterministic JavaScript orchestration script that fans work across up to 1,000 parallel subagents in a single run, using three primitives: agent(), parallel() (barrier), and pipeline() (no barrier between stages). The key win over model-driven dispatch is deterministic control flow — loops, conditionals, and fan-out behave predictably and pipeline() lets item A reach stage 3 while item B is still in stage 1, so wall-clock equals the slowest single chain, not sum-of-stages.
↳ Follow the thread