claudemods

All Claude Code modscjavdev/mods

cache-saver

A Claude Code mod in cjavdev/mods

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).

cache-saver reaches L2 (writes or runs) by its classified calls and passed claude plugin validate on Claude Code 2.1.302.

To install it, open the repository and follow the author’s setup instructions. Mods need Claude Code 2.1.287 or later.

Access

L2 Writes or runsother: $.prompt.read, other: $.state.get, other: $.state.set, runs processes, drives Claude, writes the prompt box, draws

Validation

Passed on Claude Code 2.1.302

View the source on GitHub Back to the list

What the scan recorded

Observed events
classic hooks, compaction, every prompt
Hooks
session.start, turn.start, turn.complete, turn.step, classic.Stop, classic.PostModelSwitch, session.compact, session.end, prompt.submit, ui.render {component=Pane, requestId=cache-saver-summary}, ui.render {component=AbovePrompt}
API calls
$.clock.after, $.clock.every, $.clock.now, $.command.run, $.model.fork, $.process.run, $.prompt.fill, $.prompt.read, $.prompt.submit, $.state.get, $.state.set, $.ui.ask, $.ui.close, $.ui.log, $.ui.open, $.ui.resolve, $.ui.toast
Validation on 2.1.302
Passed
Scanned revision
31000a2b481a

These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. How the scan works.

More from cjavdev/mods

Badge for your README

Reach badge for cache-saver Validation badge for cache-saver

Authors can show the latest scan result in their README. Each badge links to this page.

[![reach](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/cjavdev--mods--cache-saver-reach.svg)](https://mods.aidojo.si/mods/cjavdev--mods--cache-saver/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/cjavdev--mods--cache-saver-validates.svg)](https://mods.aidojo.si/mods/cjavdev--mods--cache-saver/)