ClaudeCodeMod

All shelves / Mods / Usage

cache-refresher

By olddonkey

cache-refresher is a Claude Code usage mod by olddonkey.

Draws a bar above the prompt with the time until the prompt cache expires and what a rebuild would cost, and can refresh the cache while you are away.

Draws

Install

The marketplace name is olddonkey.

In your shell
claude plugin marketplace add olddonkey/cache-refresher
claude plugin install cache-refresher@olddonkey
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.2.2
License
MIT
Repo stars
9
Last change
2026-10-11

What it can reach

  • Draws in the session
  • Reads usage or context figures

Claude Code v2.1.287 or later; tested on 2.1.288 in the terminal and the desktop app's Code tab. The status bar appears after the first response of a session, once at least 1,024 tokens are cached. Auto-refresh is off by default and per session, and each refresh uses a little of your plan's usage or your API credit. Only the main conversation is tracked. After compaction it starts tracking afresh, and after a model switch it shows the cache as unavailable. Dollar figures are at API list prices; on a subscription they are an equivalent, not a charge. The desktop app draws the bar as a draining ring and animates the panel; the terminal draws the same in text.

The marketplace, olddonkey, holds only this mod; the plugin is the repository. The prompt cache's clock and cost are why this page files it under usage. cache-clock draws a prompt-cache line under the status line with the time left, hits and misses, and what the next message re-caches. cache-tax keeps the one-hour cache warm while you step away and stops a send into a cold cache once. This one shows the countdown, the tokens cached, and what a rebuild would cost, and /cache-panel opens the cost of an expiry next to one refresh and the break-even point. A refresh is one small request over the conversation's existing prefix, sent by Refresh now, /cache-ping, or auto-refresh, which stops at your limit and, when the model's price is known, before the refreshes would cost more than one expiry adds. It speaks 43 languages and follows the one Claude replies in.

Demo

The What you get section of the cache-refresher README: a status bar above the prompt with a ring that drains with the time left, the countdown, cached tokens, and what a rebuild would cost; the /cache-panel panel; auto-refresh, off by default; and 43 languages.
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • turn.stepAt each step of a turn
  • classic.SessionStartA Claude Code event
  • classic.PostModelSwitchA Claude Code event
  • command.runWhen you run its slash command/cache-status/cache-panel/cache-ping/cache-auto/cache-lang
  • ui.renderDraws into the sessionAbovePromptPane

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

Slash commands 5

  • /cache-status
  • /cache-panel
  • /cache-ping
  • /cache-auto
  • /cache-lang

Files

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

Facts

Author
olddonkey
Category
Usage
Marketplace
olddonkey
Repo
olddonkey/cache-refresher
Version
0.2.2
License
MIT
Repo stars
9
Last change
2026-10-11
Language
TypeScript
Files
62

Other mods in Usage

context-alertnathanonnOpens a question dialog when the context window reaches 40 percent, offering to write a handoff doc and then compact, write one only, or compact now.stintdigital-stoic-orgDraws a band above the prompt with context fill, plan headroom, and the stint count, and /pit saves notes, clears, and starts the fresh context from them.orca-movemutlumehmetMoves a session to a twin account as one nears its usage limit: it runs /exit once the prompt box is empty, or shows a toast asking you to clear it.model-relaycablateOpens a panel above the prompt to switch this window to another model provider, routes subagents to providers, and fails over when Claude returns a 429.rtk-gainrtk-aiDraws what RTK saves while Claude works: a band above the prompt, the saving in the spinner, and a /rtk-gain pane where a viking breaks the saved tokens.tokendoctorrsaryevShows where your Claude Code tokens went, audits your settings with 33 checks, and changes a setting only after a dialog shows the change and you press Apply.catnapLippIncHas Claude compact at a clean break: from 50% of the context it asks Claude to finish the piece it is on, write a handoff, and compact, then carry on by itself.pitwallaxlaserDraws live cost, cache, and limits above the prompt and in a side panel, with a card per subagent you can stop, and fourteen themes that repaint Claude Code.jev-routerdominicricoAsks TypeSafe's Jev which Claude model and effort fit each prompt, step, and subagent, runs it there, and draws every pick in a band above the prompt.usage-statsomeerdvrnOpens a /usage-stats pane of this machine's Claude Code tokens over 7 days, 30 days, or all time, by day, project, and model, with Linear issues closed.claujev-modCivalskiHolds a commandDraws a status line of the checks and actions TypeSafe's Jev made today for the ClauJev plugin, with the effort Jev suggests, and can apply that effort.jev-orchestratorhiyokuSends each subagent's task to TypeSafe's Jev, which picks its model, effort, and tool profile, and draws the picks, tokens, and cost on the status line.
All 183 in Usage