All shelves / Mods / Usage
cache-tax
By karanb192
cache-tax is a Claude Code usage mod by karanb192.
Keeps the one-hour prompt cache warm while you step away, and stops a send into a cold cache once with the estimated rewrite cost.
Draws
Install
The marketplace name is claude-code-mods.
claude plugin marketplace add karanb192/claude-code-mods claude plugin install cache-tax@claude-code-mods
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 2.2.1
- License
- MIT
- Repo stars
- 196
- Last change
- 2026-10-04
What it can reach
- Draws in the session
- Reads usage or context figures
- Reaches the network or an outside service
Claude Code 2.1.287 or later, a one-hour prompt cache, and Claude Code left running. /keepwarm 90m arms a window before a break. The author says each ping costs tokens and is the only thing that leaves the machine, an API request over the session's own transcript. API-key and cloud-provider sessions default to a five-minute cache, so the author says to set promptCacheTtl to 1h there.
The marketplace is karanb192/claude-code-mods, and its name, claude-code-mods, is the same string hamzafer, arasovic, and ray-amjad use. Add karanb192/claude-code-mods first.
Demo
What it hooks into
config.setA Claude Code eventui.renderDraws into the sessionAbovePromptsession.startWhen a session startsclassic.SessionStartA Claude Code eventcommand.runWhen you run its slash command/keepwarm/cache-taxprompt.submitWhen you send a promptturn.stepAt each step of a turnturn.completeWhen a turn endssession.compactWhen the context is compacted
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 2
/keepwarmKeep the prompt cache warm: bare for 6h, a window such as 90m, always, off, or status (cache-tax)/cache-taxPrompt cache state, cold price and this session's cold writes; guard warn|refuse (cache-tax, the Mod)
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- karanb192
- Category
- Usage
- Marketplace
- claude-code-mods
- Version
- 2.2.1
- License
- MIT
- Repo stars
- 196
- Last change
- 2026-10-04
- Language
- TypeScript
- Files
- 29