Claude Code context compaction slows long runs
The author investigates how context compaction affects long-running coding agents by testing runs without compaction, with compaction at 64k tokens, and with compaction at 128k tokens. The author finds that compaction does not make the agent dumber, but it does make it slower. The piece discusses what compaction fixes and breaks, where the extra time goes, and potential improvements for harnesses and summary prompts. Open article →