What is cachebeat?
cachebeat is a Claude Code mod by 404Mayank that 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. It is listed under Cost & usage and has 1 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | 404Mayank |
| Repository | 404Mayank/cachebeat |
| Popularity | 1 GitHub stars |
| Category | Cost & usage |
| Security | Low risk (84/100) |
| Rank | #1,443 of 5,272 Claude Code mods; #263 in Cost & usage |
| License | MIT |
| Last commit | 2026-10-13 |
| Hooks | 14 events |
| Sees | classic hooks, compaction, mcp__cachebeat__set calls, mcp__cachebeat__state calls |
| Draws on | ToolUse, ToolResult, TurnDuration, PromptHint, AbovePrompt, Pane |
Is cachebeat safe to install?
cachebeat scores 84/100 on the MCPMods security check: Low risk. Things to review: reads environment variables. It passed 6 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes no files or config | Pass |
| Reads environment variables | Review |
| Only sees the events it hooks | Pass |
| Drives Claude (model calls, prompts) | Note |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.clock.every | |
$.clock.now | |
$.command.register | |
$.env.get | reads env vars |
$.model.fork | drives Claude |
$.session.messages | reads the transcript |
$.session.model | |
$.session.root | |
$.session.usage | |
$.settings.read | reads settings |
$.state.get | |
$.state.set | |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.tool.register | drives Claude |
$.ui.focus | draws interface |
$.ui.log | draws interface |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.scroll | draws interface |
$.ui.toast | draws interface |
How do I install cachebeat?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/404Mayank/cachebeat claude plugin validate ./cachebeat/.
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add 404Mayank/cachebeat && claude plugin install cachebeat@cachebeat
Or ask Claude to set it up
Paste this into Claude Code and it installs cachebeat for you:
Install the "cachebeat" Claude Code mod from https://github.com/404Mayank/cachebeat. Run claude plugin validate on it first and show me what it can access before you enable it.