Skip to content
View original post on X: SemiAnalysis
Published

Claude Code adds idle compaction to avoid uncached input costs

AIClaude Code release 2.1.299 adds idle compaction, which automatically compacts a session with at least 200k context after about 54 minutes idle. The compaction refreshes the 1-hour cache TTL, preventing users from paying for uncached input.
SemiAnalysisVerified on X
@SemiAnalysis_
View on X

COOL & INSIGHTFUL: "Idle compaction" was added to Claude Code TUI in their most recent release (2.1.299).

Each Claude Code session (with at least 200k+ context) will now automatically compact after being idle for ~54 minutes, in order to refresh the 1-hour TTL and prevent the user from incurring the cost of uncached input.

This will save end users a lot of money! Although, with the way Anthropic investor day is going, maybe they should roll this change back? 🤔

Source details

SemiAnalysis · x.comPublished · added here

Original title: COOL & INSIGHTFUL: "Idle compaction" was added to Claude Code TUI in their most recent release (2.1.299).