claude-cache

by Aditya Aggarwal · ★ 0 · updated 8 days ago

BandsStatus lineGuardsCommandsPromptTools & agentsfails validate

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 claude-cache

Install

git clone https://github.com/the-cybersapien/claude-cache
claude --plugin-dir ./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.resolve$.ui.status$.ui.toast
Draws
AbovePrompt
Can see
compactionclassic hooksevery promptmcp__claude-cache__afk calls
Reach
level 2 of 3 other: $.state.getother: $.state.setruns processesdrives Claudereads env varsreads settingspersists 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
5b038ac 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.