upvote
> and 5 minutes for subagents.

Ah, this explains so much, I need to adjust my settings. Lately I've been using bigger models to drive smaller models to do changes, sometimes they run for 45 minutes or more, so I definitely need to tweak my subagent cache time window. I'm not on API billing, but still.

reply
Claude code actually compacts the main session just before the cache runs out automatically.

No idea when they added that, Its gray text that looks exactly like the auto summary line, so easy to miss (as it only shows up when you're idle for 55 minutes or so, and have a session that's compact worthy - again no idea what threshold they use)

reply
That is indeed a setting that is in by default now, though I've noticed in some session that it doesn't trigger and I have no idea why
reply