Cache Playbook: Claude Edition
by Mark Laursen
$14
37.5% agent cost reduction > Reproducible across test runs. Variance under $0.001.
For developers running Claude agents in production.
Applies to Claude Code CLI workflows and direct API/SDK usage — the caching methodology is the same.
Most prompt caching guides give you the headline number and stop. This one ships the math, the bench code, and the failure modes.
Inside the Pro Edition (v1.0):
13 chapters covering cache architecture, system prompt structure, identity sizing, conversation patterns, and TTL behavior
Tier-by-tier savings table: Haiku 25.8%, Sonnet 37.0%, Opus 32.3% (vs May 2026 Anthropic API rates)
Annualized cost math: $1,238 to $31,572 saved per agent at 100 convos/day
Long-output benchmark (3,400+ tokens): 39.3% saved
3 appendices: failure modes, cost calculator, production rollout checklist
Reproducibility bundle: bench scripts, raw JSON, aggregator
Failure modes documented honestly:
--resume adds ~0% in single-session workloads (real win is cross-session)
Identity size scaling is flat for Claude CLI users (only matters for direct SDK)
Windows cmd.exe 8K argument limit kills --system-prompt for 20KB+ identities
6-minute TTL gap did NOT evict cache in our tests (don't depend on it)
Written by Mark Laursen. 18 months of production AI agent work behind it. Published by Marathon Variety.
Format: PDF. Includes bench code and raw data as appendix.