Top
Best
New

Posted by twapi 19 hours ago

Maximizing the value of your Claude Code sessions(claude.com)
228 points | 127 commentspage 3
dpkirchner 10 hours ago|
TIL the prompt cache lasts 1 hour. I thought it was reduced to 5 minutes.
moebrowne 2 hours ago||
It depends. If you have a Claude Code subscription then it defaults to an hour, if you use Claude via an API or third party then it defaults to 5 minutes. You can opt-in to the 1 hour TTL but it obviously costs more.

> 5-minute cache write tokens are 1.25 times the base input tokens price > 1-hour cache write tokens are 2 times the base input tokens price

https://code.claude.com/docs/en/prompt-caching#on-a-claude-s...

https://platform.claude.com/docs/en/build-with-claude/prompt...

swingboy 58 minutes ago||
I think it depends on your subscription? I just have the 20$ and the cache is only 5 minutes. I’ve got the timer in my status line via ccstatusline and unless it is wrong, it says 5 minutes.
pzo 15 hours ago||
> Set your model and effort level before you start. Changing either one mid-conversation can bust your prompt cache, which can increase token cost.

I know we supposed to do this but is there any particular reason why such things cannot be supported? I thought its running on same model just different settings like reasoning. This would be super useful.

aleksiy123 16 hours ago||
Is it possible to have some kind of script to keep your cache warm, or auto compact or something.

I sometimes just leave some goals or something running before I go to bed or out and I don’t want to pay the cache text when I come back.

cube00 15 hours ago|
If everyone does it they lose the memory savings they're getting by expiring the cache.
8note 11 hours ago||
which is to say that they set their ttl too short, it should be longer than people spend at lunch
myshapeprotocol 5 hours ago||
Great practical insights on streamlining AI coding sessions. Maximizing workflow efficiency like this is essential for modern development.
ChrisGreenHeur 5 hours ago|
Is this comment written by ai?
swingboy 9 hours ago||
How about Anthropic just be more generous with their usage limits instead?
tolugenius 17 hours ago||
Part of the cynic in me just wants to ask "why not make a better harness by default?" The other cynic in me knows I'm about to see a hundred post on 'HOW TO 10X CLAUDE" from the ai bros and I'm already tired.

I guess if I had to ask something (as someone who doesn't use CC as their daily driver), how much control do you have on subagents and roughly how do define or know when a session is getting too long? I know the answer is "when the model is getting worse" but worse is doing a lot of lifting in that sentence.

nathanyz 17 hours ago||
Yeah, I sort of feel like they could just do this in Claude Code for us in some way. I mean they already run some mini classifier on whether a given prompt is waiting on input, so they could do the same to detect some of these cases, and just handle it.

If you have to explain that someone is "holding it wrong"(1), that is product error, not a user error.

(1) https://www.wired.com/2010/06/iphone-4-holding-it-wrong/

fg137 8 hours ago||
> "why not make a better harness by default?"

Especially the /compact part. Like, if a session has been idle for 55 min, why not just automatically run compact at that point?

Shorn 11 hours ago||
No RSS feed for their blog.
moebrowne 2 hours ago|
Nope, but there are unofficial ones:

https://github.com/taobojlen/anthropic-rss-feed/tree/main

bytestrix 17 hours ago||
do people use the Caveman, RTK plugins
gavmor 17 hours ago||
My agent didn't like it. Indirection causing noise and failure outweighed the token savings.

https://regular-reviews.pages.dev/rtk

guessmyname 16 hours ago||
No, because it is useless.

• https://news.ycombinator.com/item?id=49080605 (JetBrains, Does Speaking to Agents Like Cavemen Save 65% of Tokens? We Test)

• https://news.ycombinator.com/item?id=48588755 (The Token Compression Illusion: Why I'm Skeptical of RTK )

ed_mercer 14 hours ago||
If it can save 10% of tokens, how is that useless?
PeterStuer 17 hours ago||
I do all that, but an 'AS-BUILT' full review of my project still eats 3x my 5 hour budget on max 100€. Meanwhile, my 20€ GPT never hit a limit. Different, but just saying.
andai 15 hours ago|
Austerity on tap!
More comments...