cachebeat
by Mayank · ★ 1 · updated 3 days ago
0
Keeps the prompt cache warm while a session sits idle: shortly before the cache would expire, a small background request re-reads it, without touching the transcript. A beating heart under the prompt shows it working, and Claude can read and change it for you. Each beat counts toward your usage.
Install
/plugin marketplace add 404Mayank/cachebeat/plugin install cachebeat@cachebeatThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
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.endclassic.SessionStartcommand.runtool.callui.renderclassic.PostModelSwitchsession.compactturn.startturn.stepturn.completeui.focusui.scrollui.close- API calls
$.clock.after$.clock.every$.clock.now$.command.register$.env.get$.model.fork$.session.messages$.session.model$.session.root$.session.usage$.settings.read$.state.get$.state.set$.store.get$.store.set$.tool.register$.ui.focus$.ui.log$.ui.open$.ui.resolve$.ui.scroll$.ui.toast- Draws
ToolUseToolResultTurnDurationPromptHintAbovePromptPane- Can see
classic hooksmcp__cachebeat__state callsmcp__cachebeat__set callscompaction- Reach
- level 2 of 3 other: $.state.getother: $.state.setdrives Claudereads env varsreads settingsreads the transcriptpersists 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/404Mayank/cachebeat
- Path in repo
- repository root
- Source commit
c84ac68the exact code the scan read- Author
- Mayank @404Mayank
- 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.