motiful / cc-cache-audit
PublicA/B test proving Claude Code's billing header breaks cross-session prompt cache sharing. One env var fix saves ~85% on system prompt tokens.
This repository provides a one-line fix and an A/B test script to disable a dynamic billing header in Claude Code that breaks prompt cache sharing across sessions, significantly reducing API costs.
How It Works
You realize your AI coding sessions are getting more expensive lately because prompts aren't reusing shared memory well.
You come across a simple guide explaining why this happens and how to fix it with a quick test.
You add one short line to your computer's settings to let sessions share memory smoothly.
You launch a quick check that runs a few example questions twice—once with the old way and once with the fix.
The results show most sessions now reuse almost everything, slashing costs by about 85%.
Your AI helper now works faster and cheaper across all your coding projects without any hassle.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.