Skip to content

v1.9.0

Choose a tag to compare

@cnighswonger cnighswonger released this 13 Apr 17:09
· 285 commits to main since this release

Cache-busting mitigation, configurable TTL, and diagnostic tooling.

What's new

  • Git-status stripping (#11) — CACHE_FIX_STRIP_GIT_STATUS=1 removes volatile git-status from system prompt, eliminating per-edit cache busts. Model can still git status via Bash.
  • Configurable TTL per request type (#14) — CACHE_FIX_TTL_MAIN and CACHE_FIX_TTL_SUBAGENT accept 1h (default), 5m, or none (pass-through). Subagent detection via Agent SDK identity string. API-key and custom ANTHROPIC_BASE_URL users 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.0

Full setup: https://github.com/cnighswonger/claude-code-cache-fix