What is cache-keeper?
cache-keeper is a Claude Code mod by bbarney7 that keeps an idle session's prompt cache warm for as long as you choose, then compacts or hands off before it expires; holds a costly cold send with its price and your choices; /keepwarm opens. It is listed under Cost & usage and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | bbarney7 |
| Repository | bbarney7/claude-code-mods |
| Popularity | no public popularity data yet |
| Category | Cost & usage |
| Security | Low risk (80/100) |
| Rank | #5,095 of 9,397 Claude Code mods; #898 in Cost & usage |
| License | MIT |
| Last commit | 2026-10-29 |
| Hooks | 10 events |
| Sees | classic hooks, compaction, every prompt |
| Draws on | AbovePrompt, Pane |
Is cache-keeper safe to install?
cache-keeper scores 80/100 on the MCPMods security check: Low risk. Things to review: watches every prompt or event. 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 |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Validator reported problems | Note |
| 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 |
$.model.fork | drives Claude |
$.prompt.fill | writes the prompt box |
$.prompt.read | |
$.prompt.submit | drives Claude |
$.session.append | |
$.session.compact | drives Claude |
$.session.model | |
$.session.surfaces | |
$.session.usage | |
$.ui.invalidate | draws interface |
$.ui.log | draws interface |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.status | draws interface |
How do I install cache-keeper?
- 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/bbarney7/claude-code-mods claude plugin validate ./claude-code-mods/plugins/cache-keeper
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add bbarney7/claude-code-mods && claude plugin install cache-keeper@claude-code-mods
Or ask Claude to set it up
Paste this into Claude Code and it installs cache-keeper for you:
Install the "cache-keeper" Claude Code mod from https://github.com/bbarney7/claude-code-mods/tree/main/plugins/cache-keeper. Run claude plugin validate on it first and show me what it can access before you enable it.
More from bbarney7/claude-code-mods
This repository has 6 Claude Code mods on MCPMods.
- ctx-control: See and control the skills, tools, files, and other context sent with every message (Low risk)
- effort-router: Sets the effort of each main-conversation turn from how demanding its prompt is, rated by Jev (through OpenRouter or Typ (High risk)
- mod-firewall: A firewall for Claude Code mods: watches what every other mod does (network, processes, secret files, env vars) and asks (Low risk)
- room: Codex, Cursor and a second Claude inside Claude Code: an agent room (one chat, @mentions, handoffs) plus one-shot review (High risk)
- switchboard: See and message your other Claude Code and Codex sessions: who is working on what, direct messages, broadcast, handoffs, (Low risk)