v1.9.0
Cache-busting mitigation, configurable TTL, and diagnostic tooling.
What's new
- Git-status stripping (#11) —
CACHE_FIX_STRIP_GIT_STATUS=1removes volatile git-status from system prompt, eliminating per-edit cache busts. Model can stillgit statusvia Bash. - Configurable TTL per request type (#14) —
CACHE_FIX_TTL_MAINandCACHE_FIX_TTL_SUBAGENTaccept1h(default),5m, ornone(pass-through). Subagent detection via Agent SDK identity string. API-key and customANTHROPIC_BASE_URLusers can now control TTL per call type. - Cache breakpoint dump (#12) —
CACHE_FIX_DUMP_BREAKPOINTS=<path>writes the full cache_control breakpoint structure to JSON for investigation. Credit: @wadabum for the 4-breakpoint mapping. - Cost-report tier fix (#7) — Correctly assigns cache creation tokens to 1h write rate when
ephemeral_1h_input_tokens > 0.
Install / upgrade
npm install -g claude-code-cache-fix@1.9.0Full setup: https://github.com/cnighswonger/claude-code-cache-fix