What is context-cache?
context-cache is a Claude Code mod by Christandoh that 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,. It is listed under Cost & usage and has 2 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | Christandoh |
| Repository | Christandoh/context-cache |
| Popularity | 2 GitHub stars |
| Category | Cost & usage |
| Security | Review before installing (72/100) |
| Rank | #1,130 of 5,272 Claude Code mods; #205 in Cost & usage |
| License | MIT |
| Last commit | 2026-10-17 |
| Hooks | 14 events |
| Sees | classic hooks, compaction |
| Draws on | AbovePrompt, Pane |
Is context-cache safe to install?
context-cache scores 72/100 on the MCPMods security check: Review before installing. Things to review: sends data over the network; writes files or config. It passed 5 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.
| Check | Result |
|---|---|
| Sends data over the network | Review |
| Starts no processes | Pass |
| Writes files or config | Review |
| Doesn't read environment variables | Pass |
| Only sees the events it hooks | Pass |
| Drives Claude (model calls, prompts) | Note |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.every | |
$.clock.now | |
$.command.register | |
$.command.run | drives Claude |
$.fs.read | reads files |
$.fs.stat | reads files |
$.fs.write | writes files |
$.http.fetch | network requests |
$.model.fork | drives Claude |
$.session.authorize | reads the transcript |
$.session.messages | reads the transcript |
$.session.model | |
$.session.surfaces | |
$.session.usage | |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.close | draws interface |
$.ui.notify | draws interface |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
How do I install context-cache?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/Christandoh/context-cache claude plugin validate ./context-cache/.
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add Christandoh/context-cache && claude plugin install context-cache@chris-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs context-cache for you:
Install the "context-cache" Claude Code mod from https://github.com/Christandoh/context-cache. Run claude plugin validate on it first and show me what it can access before you enable it.