# Claude Code adds idle compaction to avoid uncached input costs

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

- Source: SemiAnalysis
- Published: 2026-10-14T18:54:28.000Z
- Bad Influence: https://badinfluence.news/items/t8e2ovnfzx4ya9pfsdqchmqwt
- Original: https://x.com/SemiAnalysis_/status/2110444144233480309

## Summary

Claude 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. The post's author says this will save users a lot of money.

## Post

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? 🤔

![](https://badinfluence.news/api/img-proxy?u=https%3A%2F%2Fpbs.twimg.com%2Fmedia%2FHUnNw-IXwAAZDaz.jpg&mode=thumb&exp=1795737600&sig=bb34340cb6782f48)
