From cache-clock
A one-line band above the prompt: context used, and a countdown until the prompt cache goes cold
10 events · 14 calls
Ships in cache-clock. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
process.runfs.readenv.getprompt.submitprompt.submitEach event it registers a hook on, with the matcher when it sets one
session.startclassic.SessionStartturn.startturn.completeprompt.submitturn.stepcommand.run{command=recap}command.run{command=btw}classic.Stopsession.measureui.render{component=AbovePrompt}command.run{command=cache-clock}Every mods API method its source calls, by namespace
playeverynowregistergetreadrunsubmitidrootusageinvalidateresolvetoastCACHE_CLOCK_AUTO_HANDOFFCACHE_CLOCK_HANDOFF_DIRCACHE_CLOCK_MAIN_TTL_MINCACHE_CLOCK_ON_WARNINGCACHE_CLOCK_SOUNDCACHE_CLOCK_SUB_TTL_MINCACHE_CLOCK_WARN_MINOSWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.js (written ./register.js)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 ray-amjad/claude-code-mods --plugin cache-clock