ClaudeCodeMod

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.

In your shell
claude plugin marketplace add karanb192/claude-code-mods
claude plugin install cache-tax@claude-code-mods
Open the repo

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

From the author's repo.

What it hooks into

  • config.setA Claude Code event
  • ui.renderDraws into the sessionAbovePrompt
  • session.startWhen a session starts
  • classic.SessionStartA Claude Code event
  • command.runWhen you run its slash command/keepwarm/cache-tax
  • prompt.submitWhen you send a prompt
  • turn.stepAt each step of a turn
  • turn.completeWhen a turn ends
  • session.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
Repo
karanb192/cache-tax
Version
2.2.1
License
MIT
Repo stars
196
Last change
2026-10-04
Language
TypeScript
Files
29

Other mods in Usage

token-optimizeralexgreenshDraws a status bar above the prompt in the desktop app: session quality, context fill, a cache countdown, and the 5-hour and weekly limits, with buttons to clean up, start fresh, or keep the cache warm.context-inspectorYeonwooSungDraws what fills the context window and how much of it is waste: re-reads, near-duplicate output, and what compaction kept, with advice and its evidence.heatmaphamzaferDraws a GitHub-style grid of your Claude Code time in a pane, one square per day, with your streak, peak hours, and top projects.openrouter-balancehamzaferDraws your OpenRouter credit above the prompt: the balance with a gauge, today's spend, and the model the money mostly went to.winnowGhalebDweikatReplaces parts of a large Read, Bash, or Grep result a judge calls unneeded with a stub, a summary, and a key that brings the text back, then toasts.compact-adviserkunchenguidDraws a hint above the prompt to run /compact when Jev calls the session a finished checkpoint, and can run /compact itself if you opt in.fast-jev-compactiontamaratranShows a toast when /compact keeps the messages Jev still wants and drops the rest, instead of replacing the history with a summary.effortlessHeyCubitDraws a bar above the prompt with the reasoning effort it picked for this prompt, how full the chat is, and how long the prompt cache stays warm.headroom-snipheadroomlabs-aiDraws a band above the prompt showing Headroom cutting each request from its original token count to what was sent, with a /headroom log and a running total.leaksdavekissOpens a pane that ranks the avoidable spend in the last 7 days of transcripts, and draws a strip above the prompt when a leak is happening.context-dietdrkokorevReplaces a huge tool output with a short digest and the path of a file that still holds the full text, and /diet opens a panel of what it saved.agent-profilerYeonwooSungDraws where a session's time goes, model wait against tools and subagents, in a status line and a live pane, and can write the session out as an OTLP trace.
All 183 in Usage