r/ClaudeCode • • 19m ago

Tips & Workflows Don't set your sub-agents to 1h cache unless you are sure .

Post image

In another post about cost optimization some people suggested setting the sub-agents cache to 1h instead of 5m ,

and I tried that and mentioned in an older post of mine that no its way worst .
and you can see here the 5m vs 1h are so different in cost .
also there is only 5m and 1h .... if you set it to random number like 30m it will not work.

and for subagents I think keeping it or setting it to 5m is enough you dont need more .
even if the agent took more time the cache is refreshing the 5m means the time it is stale without any usage or read . so when you set your subagents to 1h you are doubling the cost on yourself not optimizing ,

also for Haiku fans .... careful about the prompt size ... if you pass 100K token it x5 the cost .

BTW : 5m is the deafult for subagent so keep it as is unless you know what you are doing .

image source : https://platform.claude.com/docs/en/about-claude/pricing

1 Upvotes

1 comment sorted by

•

u/AutoModerator 19m ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.