ClaudeCodeMod

All shelves / Mods / Usage

cache-warmer

By paulbkim-dev

cache-warmer is a Claude Code usage mod by paulbkim-dev.

Resends the last request to keep the prompt cache warm when that saves at least $0.05, and draws a band with Clawd while it runs.

Draws

Install

The marketplace name is claude-code-cache-warmer.

In your shell
claude plugin marketplace add paulbkim-dev/claude-code-cache-warmer
claude plugin install cache-warmer@claude-code-cache-warmer
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
0.12.3
License
MIT
Repo stars
14
Last change
2026-10-11

What it can reach

  • Draws in the session
  • Reads usage or context figures

Restart Claude Code, then type /cache-warmer to open the pane. To stop all warming, run claude plugin disable cache-warmer. A refresh is due at 90% of the cache time, and only when the expected saving is at least $0.05. While the session is idle, each cache time gets at most its idle limit after the last prompt: 0 to 20, 5 by default, in cache-warmer.idle5m and cache-warmer.idle1h. Set both idle limits to 0 to stop idle refreshes. Disable the plugin to stop all refreshes. During a refresh, a band above the prompt shows Clawd beside a notice that the mod is resending the cached prompt. cache-warmer.band is default, simplified, or off. The default cache time is 1 hour, in cache-warmer.ttl. The mod sets CLAUDE_CODE_PROMPT_CACHE_TTL for this Claude Code process, so it overrides promptCacheTtl and the shell. Each refresh is a fork of the main conversation's last request, sent to the same model. The prompt is: [cache-warmer] Automated prompt cache refresh by the cache-warmer plugin, not a message from the user. Reply with the single word ok. Only the refresh requests are sent. There are no other network requests and no telemetry. Each refresh counts against your Claude plan or API key. The refresh never enters the conversation. The transcript keeps one notice row per refresh. All-time totals stay in the plugin store. The README does not say how to clear those totals. While debug mode is on, a JSON line per refresh and per stop is appended under CLAUDE_CONFIG_DIR or ~/.claude, in cache-warmer/debug, named by session id. The README does not say how to delete that log. The README is also in Korean and in Simplified Chinese. These lines are the English page.

The plugin is the repo root. The marketplace description says the refresh is tools denied. The README body does not. That denial is on the refresh's own request, not a hold of your command. cache-clock, by hamzafer, draws time left under the status line. cache-timer, by arasovic, draws a countdown above the prompt. cache-tax, by karanb192, pings to keep a one-hour cache warm and can stop one send into a cold cache. This one sends a refresh before expiry and does not hold your prompt. The refresh is a model call on your own Claude plan or key, so this page does not list it as network access.

Demo

The cache-warmer section on the author's GitHub page
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • command.runWhen you run its slash command/cache-warmer
  • config.setA Claude Code event
  • turn.startWhen Claude starts a turn
  • turn.stepAt each step of a turn
  • turn.completeWhen a turn ends
  • session.compactWhen the context is compacted
  • session.endWhen a session ends
  • classic.PostModelSwitchA Claude Code event
  • ui.renderDraws into the sessionAbovePromptPane
  • ui.focusA Claude Code eventPane
  • ui.scrollA Claude Code eventPane
  • ui.closeWhen its pane closes

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 1

  • /cache-warmerToggle the cache warmer pane, set the prompt cache lifetime, or preview the band

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
paulbkim-dev
Category
Usage
Marketplace
claude-code-cache-warmer
Repo
paulbkim-dev/claude-code-cache-warmer
Version
0.12.3
License
MIT
Repo stars
14
Last change
2026-10-11
Language
TypeScript
Files
22

Other mods in Usage

token-weather-usageaugiefraDraws a band above the prompt for context size, the 5-hour and weekly limits, cache warmth, session cost, and running agents.agent-dietVedantAndhaleStarts Explore subagents, and other agent types you list, on Haiku or a model you pick instead of the main model, and counts how many it moved.budget-guardVedantAndhaleKeeps a prompt from being sent while the 5-hour or weekly usage is at or over your limit, until you send it again, and shows the limit with /budget.context-xrayVedantAndhaleDraws a pane with the exact breakdown of what fills the context window, opened with /xray.output-dietVedantAndhaleTrims what Claude reads from a long shell, search, or subagent result, saves the full text, and counts the savings on the status line.pro-hudVedantAndhaleDraws the 5-hour session, the week, and context above the prompt in the desktop app, plus this turn and finished tool calls as one line.session-receiptVedantAndhaleOpens a pane of every turn's tokens, with the five that spent the most, and toasts after a turn that used 3 or more session points.skill-dietVedantAndhaleLists skills unused lately in this project by name only, so their descriptions leave the prompt, and counts those characters on the status line.turn-budgetVedantAndhaleStops a turn that passes the limit you set, writes a handoff, and copies it for a new session, leaving the old one in place. It can ask first instead.context-lensArunjay4213Pins how full the context window is and what the last turn added, and /context-lens opens the breakdown by category.quota-meterArunjay4213Pins the 5-hour and 7-day plan limits when they are reported, with the reset and whether the current pace fills them first.token-ledgerArunjay4213Pins this session's cost and the last turn's tokens and cache hit, and /ledger lists each turn.
All 183 in Usage