Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By karanb192v2.4.2MITIn 5 marketplaces
A Claude Code mod that keeps the one-hour prompt cache warm during breaks and asks before a cold send, showing its estimated rewrite cost. Warming uses model requests and costs tokens. Requires Claude Code 2.1.287+.
Trending plugins
7-day copy clicks
Code that runs inside Claude Code on every session, as you, unsandboxed.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Displaydisplay
Where cache-tax shows its state. band: the row above the prompt (the default). status: the status entry under the prompt instead, with no row.
One of band, status
stringdefault band
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it reads environment variables (NO_COLOR); calls a model on your account; reads or rewrites your prompts; acts on other mods as they load.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
5 marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Auto keepwarmautoWarm
on: after you pay a cold cache write, keepwarm arms itself for three hours (the default). off: keepwarm only runs when you arm it with /keepwarm.
One of on, off
stringdefault on
Headless promptsheadless
guard (default): keep the cold-send guard for CLI and SDK prompts. send: allow non-interactive SDK prompts without asking, unless guard refuse is explicit. Remote human prompts keep the guard.
One of guard, send
stringdefault guard
Ping floorpingFloor
Limit each idle break's ping spend to the estimated rewrite cost divided by this number, including the next estimated ping. 2 by default; 0 disables the limit. The first ping has no receipt to estimate from.
numbermin 0default 2
Public GitHub repos that commit this plugin as enabled in their Claude Code settings
Keep Claude Code's prompt cache warm during breaks.
Cache Tax is a Claude Code mod that refreshes your prompt cache while you step away and shows the estimated rewrite cost before a cold send. Run /keepwarm 90m before a break. Pings cost tokens; choose a window you expect to return within.
Install · Website · How it works · Costs and limits · Commands

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.
Needs Claude Code 2.1.287 or later, a one-hour cache and Claude Code left running. Mods are on by default. Pings cost tokens, including uncapped output.
claude plugin marketplace add karanb192/claude-code-mods
claude plugin install cache-tax@claude-code-mods
Restart Claude Code or run /reload-plugins in an open session. No early-access flag is needed. If you set CLAUDE_CODE_ENABLE_FUNCTION_HOOKS previously, remove it; current Claude Code ignores it.
In a warm session, run /keepwarm to arm six hours. Use /keepwarm 90m for a shorter window, or /keepwarm off to stop.
Check the main cache lifetime. Included subscription usage defaults to one hour. API-key, usage-credit and cloud-provider sessions default to five minutes, so set promptCacheTtl to "1h" for those billing paths. A 50-minute timer cannot protect a five-minute main cache. See Limits for the fork evidence.
Prefer a settings hook? The hook version warns by default, refuses once with CACHE_TAX_BLOCK=1, and provides a standalone status-line countdown. Warming is part of this mod.
Built by Karan Bansal. Read the Cache Tax story and recorded cache costs.
In /config, under cache-tax:
Auto keepwarm: on | off
Display: band | status
Ping floor: 2 (a number, 0 or more)
Headless prompts: guard | send
on (the default) keeps today's behavior: after you pay a cold cache write, keepwarm arms itself for three hours. off leaves keepwarm alone until you arm it with /keepwarm; the guard's wording then says keepwarm stays off, or names the time left on a window you armed. /keepwarm always still arms it either way.
Ping floor divides the estimated cold rewrite cost into an idle-break budget: 2 permits estimated ping spend below half a rewrite; 0 disables the limit. Before a ping, spend already observed in this break plus the next ping's estimate must be below that budget. The estimate uses the cheapest of the five most recent warm receipts, repriced for the current model and context, including its prompt tier. A new main turn resets spend; extending or stopping and re-arming a window does not. A skipped ping leaves the cache to go cold. The log and status say why, and $.cacheTax.status() exposes pingSkipped and idlePingUsd.
The first ping has no receipt, so it goes out. A later answer can cost more than estimated, so this is an estimate-based limit, not a guaranteed maximum bill. With no model price, context or priced receipts, no comparison can be made. Receipts and spend are in memory: a restart or new conversation clears them. Pings may end before the requested warming window.
Display picks where the state shows while keepwarm is armed. band (the default) is the row above the prompt, with a text icon in terminals and the cube on Desktop. status puts the same text in the status entry under the prompt and draws no row: use it when another mod owns the space above the prompt. There is no setting that hides it: pings cost tokens, so the screen always says when they run.
Before a break: /keepwarm arms a bounded window. After 50 idle minutes, a timer inside Claude Code sends one tool-less fork over the session's transcript. It reads usage after every ping and stops if reads are zero or writes reach 10% of reads. The idle spending limit can skip later pings before the window ends. There is no background transcript-polling loop.
7-day copy clicks
cache-tax@claude-code-mods is listed by karanb192/claude-code-mods — review the source before installing
npx claudepluginhub karanb192/claude-code-mods --plugin cache-taxBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground