cache-keepalive

by ame · ★ 0 · updated 5 days ago

CommandsAutomationvalidates

0

Keeps an idle conversation's prompt cache warm with a tiny forked request shortly before the cache would expire, for a limited number of idle hours.

install cache-keepalive

Install

/plugin marketplace add pnam16/claude-mods
/plugin install cache-keepalive@ame-mods

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.completeclassic.Stop
API calls
$.clock.every$.clock.now$.command.register$.env.get$.fs.read$.model.fork$.process.run$.session.cwd$.session.id$.ui.log
Can see
classic hooks
Reach
level 2 of 3 runs processesdrives Claudereads filesreads env varsdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/pnam16/claude-mods
Path in repo
mods/cache-keepalive
Source commit
47caf19 the exact code the scan read
Author
ame @pnam16
License
No license declared — ask the author before reusing code.
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.

More from pnam16/claude-mods

cache-handoff

pnam16/claude-mods

Writes a session handoff when about 5 minutes of the 1h prompt cache remain on an idle session, then, once that cache has gone cold, opens a new conversation from the handoff or pins a notice.

★ 0Status lineCommandsPrompt