Token Economics Deep Dive

Prompt Caching Math: Why Cold Resumes Cost 12.5× More Per Turn in Claude Code

Published by Amvo · Updated for Anthropic Cache Models on macOS

Many developers using Claude Code on a Claude Pro or Team subscription encounter an unpleasant surprise: on Wednesday afternoon, after only a handful of follow-up messages, they hit a sudden wall:

You have reached your weekly limit. Resets in 2 days.

How can a developer run out of weekly quota so fast? The answer lies in the counter-intuitive mathematics of Anthropic prompt caching.

The Exact Anthropic Cache Pricing Tiers

Under Anthropic's pricing model for models like Claude 3.5 Sonnet and Claude 3.7 Sonnet, tokens are billed at three distinct rates:

Token State Multiplier Cost per 1M Tokens Effective Discount / Penalty
Base Input (Uncached) 1.0× $3.00 Standard baseline rate
Cache Write (New Cache Creation) 1.25× $3.75 +25% surcharge to write KV-cache
Cache Read (Warm Cache Hit) 0.10× $0.30 90% discount on cached turns

The 12.5× Math Gap: Compare a warm cache read ($0.30/M) to a cold cache creation ($3.75/M). Resuming an expired session costs exactly $3.75 ÷ $0.30 = 12.5× more per input token than continuing a warm session.

The Real-World Cost of a 140k-Token Cold Resume

Consider an ongoing Claude Code session that has reached 140,000 tokens of conversation history, git diffs, and package manifests:

On Claude Pro's rate allowance, just three cold resumes of large sessions can burn through your entire 5-hour allotment and exhaust your weekly usage allowance in days.

Why "Keep-Warm" Ping Daemons Are a Dangerous Fix

Some developers attempt to bypass this by running background ping scripts that send a prompt every 4 minutes to keep the prompt cache from expiring.

This is a massive token trap. A 100k-token session pinged 15 times per hour consumes 36,000,000 tokens every 24 hours. While you are sleeping, your background daemon is burning through your rate limits and depleting API credits.

The Sustainable Fix: Active Cold-Resume Interception

L2Cache takes a zero-background-token approach:

  1. Zero Background Pings: L2Cache burns 0 background tokens. It makes no API calls while you are away.
  2. Terminal Interception: When you resume an expired session, L2Cache's local hook inspects the session age on disk and holds the prompt before transmission.
  3. Automated /clear Handoff: Instead of re-billing 140,000 tokens at $3.75/M, L2Cache injects a lean handoff summary into a fresh session at ~3,000 tokens. That is a ~98% token reduction on every resume.
Stop Wasting Money on Expired Context
Only $9.99 one-time purchase · 15-day free trial · macOS Native

Save your Claude Pro weekly limits and stop burning expensive cold cache rewrites.

Download L2Cache on Mac App Store