Claude Code mod
cache-saver
When an idle session's prompt cache is about to expire, summarizes it while the cache is still warm; when you come back, pick A (keep the full session, pay the cache write) or B (continue from the summary).
Install
git clone https://github.com/cjavdev/mods.git
claude --plugin-dir ./mods/cache-saverThe repo has no marketplace file, so load the plugin folder directly with --plugin-dir.
What it can access
- Reach
- L2Writes or runs: runs processes, drives Claude, writes the prompt box, reads the prompt box, reads mod state, draws
- Sees
- classic hooks, compaction, every prompt
- Draws in
PaneAbovePrompt- Hooks
session.startturn.startturn.completeturn.stepclassic.Stopclassic.PostModelSwitchsession.compactsession.endprompt.submitui.render
From a static scan of the mod's code by awesome-claude-code-mods. It shows what the code asks for, not a security review.
How Claude Code mods work
- A mod is a plugin with a JavaScript or TypeScript module that runs inside Claude Code (version 2.1.287 or later). It can draw panes beside the transcript, a band above the prompt, buttons and toasts, restyle the spinner and tool rows, and watch or rewrite tool calls and prompts.
- It installs like any plugin: add its marketplace with /plugin marketplace add owner/repo, then /plugin install name@marketplace.
- Check what a mod can reach before installing: it runs with your permissions. Reach goes from drawing only, to reading files, to writing files or running processes, to the network. Run claude plugin validate on a clone to list its hooks and calls without running it.
- Turn one off from the Installed tab in /plugin, or start Claude Code with --safe-mode to skip every customization for a session.
Details
- Repository
- cjavdev/mods
- Folder
cache-saver- Author
- CJ Avilla
- Last updated
- 2 October 2026
- Listed in
- awesome-claude-code-mods
FAQ
What is cache-saver?
When an idle session's prompt cache is about to expire, summarizes it while the cache is still warm; when you come back, pick A (keep the full session, pay the cache write) or B (continue from the summary). It is a mod for Claude Code, from cjavdev/mods on GitHub.
What can the cache-saver mod access?
Its widest reach is "writes or runs" (runs processes, drives Claude, writes the prompt box, reads the prompt box, reads mod state, draws). It sees classic hooks, compaction, every prompt. It draws in Pane, AbovePrompt. Like any mod, it runs with your permissions.
How do I install cache-saver?
Clone cjavdev/mods and start Claude Code with --plugin-dir pointing at the mod's folder (cache-saver).
Is cache-saver popular?
cjavdev/mods has 2 GitHub stars and 0 forks, and is included in 1 curated Claude Code list. It was last updated on 2 October 2026.
More context & usage mods
cache-meter
2florian101010/cache-meter
Stop wasting tokens: keeps your prompt cache warm through breaks with /keepwarm, shows when it expires and what each answer costs.
cache-shot-clock
2cjavdev/mods
A shot clock for the prompt cache's TTL: a small countdown in the bar under the prompt, and a big LED clock above it for the last seconds before the next turn pays a full cache write.
cache-countdown
2iamomiid/cache-countdown
A fuse above the prompt that burns down with the prompt cache, with context and rate limit meters and buttons to keep the cache warm or compact
cache-timer
2bajzaa975/claude-alapcsomag
Status line: minutes left until the main thread's prompt cache goes cold (assumes a 60-minute cache; it is 5 minutes during usage overage, which the mod cannot detect)
cache-clock
2Abdallah-Abdelazim/usage-limits-cc-mod
Shows whether Claude's prompt cache is still warm, with the cold-rewrite cost and a Compact button.
cc-side
2Ahmad8864/cc-side
A separate agent conversation in Claude Code's right-hand pane, forked from the current context.
Browse the most popular Claude Code mods, all context & usage mods, or the skills and MCP server directories.