cache-meter
by francize · ★ 203 · updated 25 days ago
Prompt-cache meter above the prompt: the hit rate and the prompt as read + wrote + new, a live countdown to expiry, named misses, and when to /compact or /clear. Slash commands like /effort never reset it.
Install
/plugin marketplace add francize/my-better-claude/plugin install cache-meter@my-better-claudeThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
session.startsession.endclassic.SessionStartsession.compactturn.stepcommand.runui.render- API calls
$.clock.every$.env.get$.fs.read$.process.run$.session.cwd$.session.usage$.state.get$.state.set$.ui.invalidate$.ui.log$.ui.resolve$.ui.status$.ui.toast- Draws
AbovePrompt- Can see
classic hookscompaction- Reach
- level 2 of 3 runs processesreads filesreads env varsreads mod statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/francize/my-better-claude
- Path in repo
plugins/cache-meter- Source commit
486dc3ethe exact code the scan read- Author
- @francize
- License
- MIT
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
More from francize/my-better-claude
image-preview
francize/my-better-claude
Hover a pasted [Image #N] to see the picture, above the prompt while you write and on the prompts you sent; in a window by the pointer or drawn in the terminal.
queue
francize/my-better-claude
A real prompt queue: Enter while Claude works queues the prompt instead of steering the running turn, and it is sent when the turn ends. Send now, edit or cancel each one from a band above the prompt.