telexed ~ c / de5bc7e7-0ebradar:70 · agent_toolLIVE
← back
NO.
#de5bc7e7
Topic
AGENTS & TOOLS
Source
r/ClaudeAI
Published
2026-05-24 02:43:08
Importance
★ 7/10 — radar 70

A cache miss in `Claude Code` costs 12.5x more than a hit—here are the common triggers

Changing settings like /model or editing CLAUDE.md mid-session in Claude Code busts the cache, making the next turn 12.5x more expensive. Make major changes only at the start of a new session to manage costs effectively.

[ KEY POINTS ]
  1. A cache miss costs 12.5 times more than a cache hit (1.25x base price vs. 0.1x). This quickly adds up in long sessions.
  2. Adding or removing tools (mcp servers) mid-session is the worst offense, invalidating the entire cache from the tool definitions down.
  3. Editing the CLAUDE.md file invalidates the system prompt cache and the entire conversation that follows, forcing an expensive rewrite.
  4. Switching models with /model doesn't migrate the cache; it starts a fresh one. Use separate sessions for different models like Sonnet and Opus.
Originalwww.reddit.com/r/ClaudeAI/comments/1tlzqpl/cache_miss_in_claude_code_costs_125_more_than_a/Read original →

// related