cachebeat
by Mayank · ★ 3 · updated 2 days ago
Keeps the prompt cache warm while a session sits idle: shortly before the cache would go cold, 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.SessionStartprompt.submittool.callcommand.runui.renderclassic.PostModelSwitchsession.compactturn.startturn.stepturn.completeui.focusui.scrollui.close- API calls
$.clock.after$.clock.every$.clock.now$.command.register$.env.get$.model.fork$.session.id$.session.messages$.session.model$.session.root$.session.usage$.settings.read$.state.get$.state.set$.store.delete$.store.get$.store.keys$.store.set$.tool.register$.ui.ask$.ui.focus$.ui.log$.ui.open$.ui.resolve$.ui.scroll$.ui.toast- Draws
ToolUseToolResultTurnDurationPromptHintAbovePromptPane- Can see
classic hooksevery promptAskUserQuestion callsmcp__cachebeat__state callsmcp__cachebeat__set callscompaction- Reach
- level 2 of 3 drives Claudereads env varsreads settingsreads the transcriptreads 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/404Mayank/cachebeat
- Path in repo
- repository root
- Source commit
e913fafthe 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.
Related mods
Other mods in Panes, close to this one by stars.