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.

Updated 2026-10-13

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.

TypeClaude code mod
Author404Mayank
Repository404Mayank/cachebeat
Popularity1 GitHub stars
CategoryCost & usage
SecurityLow risk (84/100)
Rank#1,443 of 5,272 Claude Code mods; #263 in Cost & usage
LicenseMIT
Last commit2026-10-13
Hooks14 events
Seesclassic hooks, compaction, mcp__cachebeat__set calls, mcp__cachebeat__state calls
Draws onToolUse, 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.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Reads environment variablesReview
Only sees the events it hooksPass
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.after
$.clock.every
$.clock.now
$.command.register
$.env.getreads env vars
$.model.forkdrives Claude
$.session.messagesreads the transcript
$.session.model
$.session.root
$.session.usage
$.settings.readreads settings
$.state.get
$.state.set
$.store.getkeeps its own state
$.store.setkeeps its own state
$.tool.registerdrives Claude
$.ui.focusdraws interface
$.ui.logdraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.scrolldraws interface
$.ui.toastdraws interface

How do I install cachebeat?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. 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/.
  3. 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.