Claude Code naps smart
Leave a 200K+ token chat idle ~54 minutes and Claude Code compacts it before the prompt cache expires, so your next message doesn't re-chew the whole transcript. Opt out with "idleCompaction": false.
Source: github.com · v2.1.299