From cache-refresher
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.
7 events · 20 calls
Ships in cache-refresher. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
env.getconfig.setmodel.forkEach event it registers a hook on, with the matcher when it sets one
session.startsession.endturn.stepclassic.SessionStartclassic.PostModelSwitchcommand.run{command=cache-status}command.run{command=cache-panel}command.run{command=cache-ping}command.run{command=cache-auto}command.run{command=cache-lang}ui.render{component=AbovePrompt}ui.render{component=Pane, requestId=cache}Every mods API method its source calls, by namespace
everynowregisterlistsetgetforkidusagegetsetdeletegetsetinvalidatelogopenpanesresolvetoastCLAUDE_CODE_PROMPT_CACHE_TTLENABLE_PROMPT_CACHING_1HFORCE_PROMPT_CACHING_5MLANGLC_ALLWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.tsx (written ./register.tsx)Read from the source, never run. Claude Code checks a mod again when it loads it and can refuse code this reading accepts; claude plugin validate shows its own list.
npx claudepluginhub olddonkey/cache-refresher --plugin cache-refresher