cachekeeper

by Aditya Aggarwal · ★ 0 · updated 24 Oct 2026

BandsStatus lineGuardsCommandsPromptTools & agentswarnings

0

Compacts an idle Claude Code session while its prompt cache is warm, with an AFK mode, a handoff note, and a cache TTL countdown in the status line and above the prompt.

install cachekeeper

Install

/plugin marketplace add the-cybersapien/claude-cache
/plugin install cachekeeper@claude-cache

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.startsession.compactturn.startturn.stepturn.completeclassic.Stopclassic.PreModelSwitchprompt.submittool.callui.rendercommand.run
API calls
$.clock.after$.clock.every$.clock.now$.command.register$.env.get$.model.fork$.process.run$.session.compact$.session.id$.session.root$.session.usage$.settings.read$.state.get$.state.set$.store.delete$.store.get$.store.set$.tool.register$.ui.log$.ui.resolve$.ui.status$.ui.toast
Draws
AbovePrompt
Can see
compactionclassic hooksevery promptmcp__cachekeeper__afk calls
Reach
level 2 of 3 runs processesdrives Claudereads 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/the-cybersapien/claude-cache
Path in repo
repository root
Source commit
af2b6c5 the exact code the scan read
Author
Aditya Aggarwal @the-cybersapien
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.

Other mods in Bands, close to this one by stars.