karanb192/cache-tax

32 stars · Last commit 2026-09-20

Keep Claude Code’s prompt cache warm during breaks and show the estimated cost before a cold send.

README preview

# cache-tax

**Keep Claude Code's prompt cache warm during breaks.**

On Fable 5.1, a one-hour cache write costs **80x a cache read per token**: [$20 versus $0.25 per million tokens](https://platform.claude.com/docs/en/about-claude/pricing). Run `/keepwarm` before stepping away. If you return cold, the guard stops your send once with the estimated rewrite price.

**[Install](#install)** · [How it works](#how-it-works) · [Costs and limits](#cost-and-the-plan-limit-question) · [Commands](#commands)

![Real recording of cache-tax stopping a cold send with a $6.61 estimate](site/assets/refusal.gif)

A two-line recap in a 330k-token session triggered a **$6.61 estimate**. After resending, the reported cache write was **$6.28**. Recorded on 2.1.1; current wording says “up to” the estimated token count. These are API-equivalent costs, not extra subscription charges.

## Install

Needs early-access function hooks, a one-hour cache and Claude Code left running. Pings cost tokens, including uncapped output.

```sh
claude plugin marketplace add karanb192/claude-code-mods
claude plugin install cache-tax@claude-code-mods
```

View full repository on GitHub →