cache-keeper

by Nazman Gena · ★ 0 · updated 16 days ago

CommandsPromptAutomationvalidates

0

Compacts an idle Claude Code session shortly before its prompt cache expires, and shows how long the cache has left (/cache)

install cache-keeper

Install

git clone https://github.com/nazmang/claude-cache-keeper
claude --plugin-dir ./claude-cache-keeper/plugins/cache-keeper

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.startturn.startturn.completeprompt.submitcommand.run
API calls
$.clock.every$.clock.now$.clock.sleep$.command.register$.env.get$.session.compact$.session.usage$.ui.ask$.ui.log
Can see
every prompt
Reach
level 2 of 3 drives Claudereads 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/nazmang/claude-cache-keeper
Path in repo
plugins/cache-keeper
Source commit
129b67f the exact code the scan read
Author
Nazman Gena @nazmang
License
MIT
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.