cache-keepalive

by luck7x · ★ 0 · updated 22 days ago

Status lineCommandswarnings

0

Opt-in prompt-cache keep-alive for Claude Code's main conversation: refreshes the 1h cache via $.model.fork before it lapses, canary-verified, capped and fail-closed.

install cache-keepalive

Install

/plugin marketplace add luck7x/claude-cache-keepalive
/plugin install cache-keepalive@claude-cache-keepalive

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startcommand.runturn.startturn.stepturn.completesession.compactsession.end
API calls
$.clock.after$.clock.every$.clock.now$.clock.sleep$.command.register$.env.get$.fs.list$.fs.read$.fs.write$.model.fork$.session.cwd$.session.id$.session.model$.session.usage$.settings.read$.state.get$.state.set$.store.delete$.store.get$.store.keys$.store.set$.ui.status$.ui.toast
Can see
compaction
Reach
level 2 of 3 writes filesdrives Claudereads filesreads env varsreads settingsreads mod statepersists statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/luck7x/claude-cache-keepalive
Path in repo
repository root
Source commit
c0a631a the exact code the scan read
Author
@luck7x
License
Apache-2.0
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.