Home / Claude Code mods / Cost & usage / cache-refresher

cache-refresher

cache-refresher is a Claude Code mod by olddonkey that shows when your prompt cache expires and what rebuilding it would cost. Optional auto-refresh, off by default, keeps it active while you are away and uses a little plan usage or API credit.

Updated 2026-10-11

What is cache-refresher?

cache-refresher is a Claude Code mod by olddonkey that shows when your prompt cache expires and what rebuilding it would cost. Optional auto-refresh, off by default, keeps it active while you are away and uses a little plan usage or API credit. It is listed under Cost & usage and has 3 GitHub stars.

TypeClaude code mod
Authorolddonkey
Repositoryolddonkey/cache-refresher
Popularity3 GitHub stars
CategoryCost & usage
SecurityLow risk (84/100)
Rank#852 of 5,272 Claude Code mods; #165 in Cost & usage
LicenseMIT
Last commit2026-10-11
Stars this week+1
Hooks6 events
Seesclassic hooks
Draws onAbovePrompt, Pane

Is cache-refresher safe to install?

cache-refresher scores 84/100 on the MCPMods security check: Low risk. Things to review: reads environment variables. It passed 6 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Reads environment variablesReview
Only sees the events it hooksPass
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.every
$.clock.now
$.command.register
$.env.getreads env vars
$.model.forkdrives Claude
$.session.usage
$.state.get
$.state.set
$.store.deletekeeps its own state
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.invalidatedraws interface
$.ui.logdraws interface
$.ui.opendraws interface
$.ui.panesdraws interface
$.ui.resolvedraws interface
$.ui.toastdraws interface

How do I install cache-refresher?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/olddonkey/cache-refresher
    claude plugin validate ./cache-refresher/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add olddonkey/cache-refresher && claude plugin install cache-refresher@olddonkey

Or ask Claude to set it up

Paste this into Claude Code and it installs cache-refresher for you:

Install the "cache-refresher" Claude Code mod from https://github.com/olddonkey/cache-refresher. Run claude plugin validate on it first and show me what it can access before you enable it.