context-cache
by Chris Tandoh · ★ 3 · updated 3 days ago
A panel above the prompt showing context usage, usage limits (session, weekly, Fable) and prompt-cache temperature, with Clear, Compact and Warm buttons, what each message costs, auto-warm, a one-line mode and alerts before the cache goes cold or a limit runs out.
Install
/plugin marketplace add Christandoh/context-cache/plugin install context-cache@chris-modsThen 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.startclassic.SessionStartturn.stepturn.completeturn.startclassic.Stopclassic.PreModelSwitchclassic.PostModelSwitchsession.measuresession.compactsession.endcommand.runsession.attachui.render- API calls
$.clock.every$.clock.now$.command.register$.command.run$.fs.read$.fs.stat$.fs.write$.http.fetch$.model.fork$.session.authorize$.session.messages$.session.model$.session.surfaces$.session.usage$.state.get$.state.set$.store.get$.store.set$.ui.close$.ui.notify$.ui.open$.ui.resolve$.ui.toast- Draws
AbovePromptPane- Can see
classic hookscompaction- Reach
- level 3 of 3 networkwrites filesdrives Claudereads filesreads the transcriptreads mod staterequests an Anthropic credential handlepersists 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/Christandoh/context-cache
- Path in repo
- repository root
- Source commit
5beef00the exact code the scan read- Author
- Chris Tandoh @Christandoh
- 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.
Related mods
Other mods in Panes, close to this one by stars.