The Stack
How to Combine Context Editing, Compaction, Memory, and Subagents in One Claude Agent SDK Loop
Anthropic ships four levers for keeping a long-running agent inside its window. The comparison pieces tell you which is which — this one wires all four together in one loop, in code.