All Claude Code modsAdamCaviness/cache-magic
cache-magic
Keeps a handoff while a large session's prompt cache is still warm. On a five-minute cache, a late prompt can go out after the handoff instead of the full context. On a one-hour cache the session stays, and compaction is pointed at the handoff.
cache-magic reaches L2 (writes or runs) and passed claude plugin validate on Claude Code 2.1.304.
- Events hooked: 9
- API methods referenced: 26
- Access from classified calls: L2, writes or runs: runs processes, writes files, changes config, drives Claude, writes the prompt box, reads files, reads env vars, reads settings, reads the transcript, reads the prompt box, persists state, draws
- Static scan, not a runtime test
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 runsruns processes, writes files, changes config, drives Claude, writes the prompt box, reads files, reads env vars, reads settings, reads the transcript, reads the prompt box, persists state, drawsValidation
Passed on Claude Code 2.1.304View the source on GitHub Back to the list
What the scan recorded
- Observed events
- every prompt, compaction, classic hooks
- Hooks
turn.start, prompt.submit, session.start, config.set, session.compact, classic.Stop, classic.TeammateIdle, classic.SessionStart {source=startup|resume}, session.end- API calls
$.clock.after, $.clock.now, $.command.run, $.config.set, $.env.get, $.fs.read, $.fs.stat, $.fs.write, $.model.complete, $.model.fork, $.process.run, $.prompt.fill, $.prompt.read, $.prompt.submit, $.session.id, $.session.messages, $.session.root, $.session.turns, $.session.usage, $.settings.read, $.store.delete, $.store.get, $.store.set, $.ui.ask, $.ui.log, $.ui.toast- Validation on 2.1.304
- Passed
- Scanned revision
a8b35979f434
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. What a mod can access and how the scan works.
Badge for your README
Authors can show the latest scan result in their README. Each badge links to this page.
[](https://mods.aidojo.si/mods/AdamCaviness--cache-magic--cache-magic/)
[](https://mods.aidojo.si/mods/AdamCaviness--cache-magic--cache-magic/)