cache-warm
Reviewed
at commit a394c65
New version, not yet reviewed
Keeps the 1-hour prompt cache warm for a window you set, or with no end in every session under always, with one cache-shared fork per idle stretch and one…
0 upvotes
Log in to upvote or save- Made by
- Kerem Gok
- Pinned commit
-
a394c65a8dc179123b8a1d5bff2c583027d8c81d - What we checked
-
Keeps Claude's prompt cache from expiring by sending a tiny one-word request on your own account every 50 minutes while a window you set (or 'always') is on, and a keep-warm message after a resume. It also starts a 6 hour window by itself after a paid cold cache write, which uses tokens. No other network calls.
Review details
Static review of the source at the pinned commit; not run. register.ts, warm.ts, pricing.ts, plugin.json, hooks.json, package.json and commands/send.md were read in full; eslint config and Makefile are dev tooling and were not loaded by the code. Registers session.start, classic.SessionStart, prompt.submit (reads only the message origin, text passes through untouched), turn.step, turn.complete, session.compact and commands /cache-warm and /cache-status. Runtime calls: $.model.fork with the fixed prompt 'Reply with the single word: warm' (cache-shared fork, uses tokens), $.command.run of its own cache-warm:send markdown command (or $.prompt.submit as fallback) to send a fixed keep-warm message after a resume in an interactive session, $.clock timers, $.store for window deadlines and the global always switch, $.settings.read for fastMode only, $.session.usage/model/id/root, $.fs.exists and $.fs.stat on the session transcript path for a timestamp (contents not read), $.ui.status/log and the shared $.sidebar section. Timers are armed per idle stretch; the always switch is stored globally and starts in every later session until /cache-warm off. A failed ping stops a timed window and reports why. Pricing table is static. No fetch, shell, process, file writes or settings changes. Costs are small cache reads but accrue unattended while a window or always is active; the automatic 6 hour window after a cold write is described in the plugin description.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: no
- 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
Keeps the 1-hour prompt cache warm for a window you set, or with no end in every session under always, with one cache-shared fork per idle stretch and one keep-warm message after a resume, arms a window for you after a paid cold write, and shows the cache state, the cold price and this session's cold writes.
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-warm/)