Give Each Sub-Agent Its Own Compaction Window, Not the Orchestrator's

Stops a read-heavy sub-agent from re-billing its own dead context every turn; biggest win on long leaf workers that dig through logs or files, and it's lossy so distill-only workers benefit most Advanced 3 min read

Every Claude Code sub-agent used to inherit the main conversation's auto-compaction window, so a bulky-read leaf worker hoarded its trail (or 400'd on a small-window model) until the whole session hit the threshold. Set a per-sub-agent autoCompactWindow so each worker recycles its own context at the point that fits its job.

๐Ÿ”’ Pro tip ยท Advanced

Unlock this tip โ€” and 141 more

This is one of 142 advanced, fact-checked tactics reserved for Pro. Get the full 164-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.