Live

Claude Code adds multi-agent workflows that survive context compaction

Anthropic's CLI can now orchestrate dozens of subagents through deterministic scripts, with progress that persists across context window resets. Demo content.

TKTomislav Krajina
Published 6 Jul 2026, 20:20Updated 28 Jul 2026, 16:422 min read
Claude Code adds multi-agent workflows that survive context compaction

Claude Code has gained a workflow orchestration layer that lets the agent fan out work to dozens of subagents through deterministic JavaScript scripts, resuming cleanly even when the main conversation context is compacted.

How it works

A workflow script declares phases, spawns agents with structured output schemas, and pipelines results between stages:

javascript■ ■ ■
const findings = await pipeline(
  DIMENSIONS,
  d => agent(d.prompt, { schema: FINDINGS }),
  f => agent("Adversarially verify: " + f.title)
);

Why it matters

  • Large migrations and audits no longer die when context runs out
  • Verification stages catch plausible-but-wrong findings
  • Runs are journaled, so an edited script resumes from cache

The pattern mirrors a broader industry shift from single-context agents toward orchestrated fleets with deterministic control flow.

Source: Anthropic

Related stories

All →