Dynamic Workflows: An Algebra for Agents

Claude Code's sandboxed orchestration primitive: Claude writes and runs a program that composes agents in sequence and parallel inside a Bun VM — Cherny frames it as a new way to scale test-time compute, and Jarred Sumner's first-party Bun Zig→Rust port is the published methodology behind it (535,496 lines ported in 11 days, ~50 workflows, 6,502 commits, peak 64 concurrent Claudes, ~$165k of tokens, 1M+ test assertions as the oracle) — with an outside audit showing the ~$165k bought cost-to-green, not cost-to-shipped, and a shipped product default (v2.1.219) that aims workflows at fewer than 15 agents