Claude Code now auto-runs /compact while idle to dodge expensive cache misses

Neither-Eye-8906 · reddit · 2026-10-11

A Reddit user noticed that after leaving Claude Code idle for about an hour, it had automatically run /compact to avoid an expensive prompt-cache miss. The post suggests Claude Code now proactively compacts context during idle periods, trading a smaller rebuild cost for avoiding a full re-read of long context once the cache expires.

Related event: Claude Code now auto-compacts idle conversations to save cache credits(3 posts)→

Original post →

More from coding & agent

coding & agent channel →