Offload Big Multi-Agent Jobs to a Background Workflow Run So the Orchestrator's Context Stays Flat

Keeps the orchestrator's context roughly flat regardless of job size by isolating each agent's context and passing results programmatically (parallelism cuts wall-clock; cap total spend with a session budget) Advanced 4 min read

When one agent works a big fan-out job - reviewing hundreds of contracts, auditing a repo, cross-checking many sources - in a single thread, every document and every finding piles into one context window that is re-billed on every turn, and long runs drift toward the long-context price cliff. Anthropic's Managed Agents now let the agent write a dynamic workflow: a program that runs many agents in phases in the background as one workflow run, each in a context-isolated thread, with context and results passed programmatically between them. The orchestrator's own thread stays small because it only monitors the run's phase events instead of holding every agent's transcript.

๐Ÿ”’ Pro tip ยท Advanced

Unlock this tip โ€” and 140 more

This is one of 141 advanced, fact-checked tactics reserved for Pro. Get the full 163-tip library, a searchable archive, and a new tip every morning. Free for 7 days, then $9/mo.

Prefer to browse? The 22 Beginner tips are free forever.