cache-keeper
Reviewed
at commit 33a936f
Caution: Saves each session handoff summary, which can include secrets from your chat, as a file under ~/.claude/mods-data outside your project, where it stays.
Keeps a big chat's prompt cache warm, warns before an expensive cold restart, shows every local chat on one board (/board), and hands a chat off to a fresh…
0 upvotes
Log in to upvote or save- Made by
- Nate Herk
- Pinned commit
-
33a936f2ec6bbfea5a30a1a4d71d992487a5c769 - What we checked
-
Shows a band with how long your prompt cache stays warm and what a cold restart would cost, asks before you send a message into a cold cache, and can send cheap keep-alive requests on your own account when you turn that on. /board lists your open chats; /handoff has Claude write a session summary, saves it to a file, and can clear the chat and send it as the first prompt. No network calls.
Review details
Static review of the source at the pinned commit; not run. Hooks: session.start, classic.SessionStart (clear, resume, fork), session.end, prompt.submit, turn.start, turn.step, turn.complete, session.compact, session.measure, tool.check, tool.call, command.run, ui.close and ui.render (AbovePrompt, Pane, SessionMode). It reads usage figures from the response, never the content of prompts or tool calls, apart from the first 40 characters of the first prompt used as the chat label. Each chat writes a heartbeat (label, folder, model, context size, cost, cache state) to the mod's own $.store, which other chats read for /board and which is deleted when the chat ends; the board can also store a keep-warm command for another chat. Keep warm is opt-in (button, /keepwarm) and calls $.model.fork with a fixed ping prompt when the cache is about to expire, for 4 hours by default (24 at most), and stops itself if a ping writes instead of reads. The cold-send guard asks via $.ui.ask before a send when the cache is cold and context is over 150k tokens; options are send, $.session.compact then send, or cancel (drops the prompt). /handoff runs the bundled session-handoff skill (Claude writes a summary in chat), captures the answer of that turn, writes it to ~/.claude/mods-data/cache-keeper/handoffs/<date>-<project>-<id>.md with $.fs.write, and on confirmation runs /clear and submits the handoff as the next prompt. The skill itself says never to write a file, but the mod does, and nothing deletes these files. It also reads ~/.claude/mods-data/recording.json (another mod's flag) to mask labels. The skill only asks Claude to produce text; it has no allowed-tools. No network, no process execution, no settings changes. Failures fall back to sending as typed. pricing.mjs, fmt.mjs and privacy.mjs are pure helpers with no runtime calls.
- What it uses
-
- Reads your prompts: yes
- Sees tool calls: yes
- Blocks or changes tool calls: no
- Reads or writes files: yes
- Runs programs on your machine: no
- Calls the model (uses tokens): yes
- Sends data over the network: no
- Stores data: yes
- Shows something on screen: yes
- Hooked events
Keeps a big chat's prompt cache warm, warns before an expensive cold restart, shows every local chat on one board (/board), and hands a chat off to a fresh one (/handoff)
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/cache-keeper/)