upvote
Yeah, this looks like a discussion of API traffic, not claude code subscription traffic. I'd be shocked to find out that my claude code sessions, which auto-compact "before the cache expires", after 54 minutes of idle time, due to claude code's own idleCompaction setting, was actually already expired at that point.
reply
You can also spawn subagents with 1h TTLs if you know they'll be doing activity with lots of time spent waiting
reply
Welp, doing this immediately. I had to build a Rust build queue and a client lease system for a game I have been building entirely with agents (intentionally with a lot of subagents and multiple top-level sessions) just to avoid consuming all available memory and compute on a server I have laying around. I have a lot of subagents that end up having to wait for a long time for their turn to build and run the game to verify behavior.
reply
Do those tokens cost more? Why would anyone choose the shorter cache?
reply
They cost 2x as much

Ask your agent to look at its own usage metrics to see if you would have saved money by doing so. If your test suite is >5 mins then you likely will.

reply
Probably takes more usage though, so it's the same deal
reply