Claude Code now summarizes long conversations you leave idle

Leave a long terminal conversation idle and Claude Code compacts it before the prompt cache runs out.

Surface
CLI
Department
Engineering
Related links
Share
Claude Code terminal with a highlighted line: Compacted while idle, before the prompt cache expired

Step away from a long conversation in the terminal and Claude Code acts before the cache runs out. After about 54 minutes idle, a conversation of 200K tokens or more gets compacted, just ahead of the one-hour prompt cache expiry, so your next message doesn't have to reprocess all of it.

You'll see a line that starts with Compacted while idle. CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS moves the 200K-token minimum, and "idleCompaction": false in settings.json switches it off. Either needs Claude Code 2.1.290 or later.

Earlier updates

Oct 14, 2026
Oct 9, 2026
Oct 8, 2026
Oct 7, 2026
All updates