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-30

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 16 GitHub stars.

TypeClaude code mod
Authorolddonkey
Repositoryolddonkey/cache-refresher
Popularity16 GitHub stars
CategoryCost & usage
SecurityReview before installing (68/100)
Rank#603 of 9,397 Claude Code mods; #107 in Cost & usage
LicenseMIT
Last commit2026-10-30
Stars this week+1
Hooks7 events
Seesclassic hooks
Draws onAbovePrompt, Pane

Is cache-refresher safe to install?

cache-refresher scores 68/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; reads environment variables. It passed 4 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 files or configReview
Reads environment variablesReview
Only sees the events it hooksPass
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.every
$.clock.now
$.command.register
$.config.list
$.config.setchanges config
$.env.getreads env vars
$.model.forkdrives Claude
$.session.id
$.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.