
Build with AI guides
Claude Code now compacts long idle sessions before the cache dies
Claude Code 2.1.299 compacts a terminal session past about 200K tokens after roughly 54 minutes idle, before the one-hour prompt cache expires. The changelog lists no price change.
Littlewolf Labs
Claude Code 2.1.299 adds idle compaction in the terminal. A conversation of 200K tokens or more that sits idle for about 54 minutes is compacted before its one-hour prompt cache expires, so the next message does not reprocess the whole session. Lydia Hallie noted the same change on X.
"idleCompaction": false in settings.json turns it off. CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS changes the 200K floor. The changelog says both need v2.1.290 or later.
What it costs
The changelog lists no price change. The saving is usage: the next message does not reprocess a long idle session.
Should you switch
Leave it on if you walk away from long Claude Code sessions. Turn it off only if you need that idle transcript left intact.
Affiliate disclosure: some stories use affiliate or referral links. When a link pays a commission, the sentence next to it says so. Sponsored slots are labeled Sponsored. The channel card is a house ad until a sponsor is booked.
Newsletter
Newsletter coming soon.
Join the waitlist and we'll email you when the first issue launches.
By submitting you agree to our Privacy Policy.
You're on the list after you confirm. We'll email you when the newsletter launches. You can leave from any message. The form posts to Resend.