Claude's 5-minute timer is 23% of your coding bill
- antiloper - 264 sekunder sedanLink should be changed to https://code.claude.com/docs/en/prompt-caching
- extr - 511 sekunder sedanThis is obvious if you just put cache timeout in your statusline. If the nature of your work is such that every time you return to the window the 5m cache is expired, bump it up.
- bensyverson - 1075 sekunder sedanIsn't Claude Code on a 1hr cache?
- superjan - 569 sekunder sedan[delayed]
- theanonymousone - 924 sekunder sedanWhere can I find cache "duration" of different providers? I have never seen such information, despite it being a very big deal in cost estimation. Or maybe it's dynamic?
- julianlam - 1073 sekunder sedanRequisite smarmy comment about how this is not an issue with local models.
There's even the ability to persist your kv cache to disk, so future session resumptions load back into context instantly without needing to do a full prefill ingestion by the LLM. (CachyLLaMA, iirc, not sure where the project is now)
- vikramkr - 974 sekunder sedanNeon really cooked with tamping down on the inane incomprehensible Claude slop huh? It's so damn annoying when they spew this poetic babbling gibberish.
TDLR prompts are cached. Prompt cache hit == $. Cache miss == $$$$$$$. Claude ttl is 5 min. Codex ttl is 30 min. If u take longer than 5 min between turns then $$$$
- refulgentis - 998 sekunder sedanThese AI written articles are exhaustingly long, and the #s included make it feel very scientific but are one offs for one person.
It's self-labelled as a 15m read and a human in the loop should recognize it's about 3m, tops. Here:
LLM API context caches, by default, only last for 5 minutes on Anthropic and 30m on OpenAI.
If you use Claude, there's an hour cache for 2x the cost of the 5 minute one.
If you use OpenAI, there's a 12 hour cache for 2.5x the cost of the 30m one.
FWIW, it's very Chicken Little / "the sky is falling!!111!": the idea is if you walked away for > 5m between every Claude request, re-caching would be 23% of your bill.
- NooneAtAll5 - 812 sekunder sedanjust use deepseek
10-100x cheaper is not something to sneeze at
- k_ivanow - 2003 sekunder sedan[dead]
Nördnytt! 🤓