cachebeat is a Claude Code usage mod by 404Mayank.
Keeps the prompt cache warm while you are away with a small background request, and draws a beating heart under the prompt and a beat count under your turn.
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
Version
0.9.2
License
MIT
Repo stars
3
Last change
2026-10-13
What it can reach
Draws in the session
Reads usage or context figures
Reaches the network or an outside service
Claude Code 2.1.287 or later. From inside Claude Code: /plugin marketplace add 404Mayank/cachebeat, /plugin install cachebeat@cachebeat, then /reload-plugins; restart Claude Code if /cachebeat isn't there. It starts off: /cachebeat on turns it on for this session, /cachebeat global on for every new session, and /cachebeat local on for sessions in this folder. Beats come every 50 minutes on a Claude subscription's one-hour cache and every 4 on the five-minute cache of an API key, a cloud provider, or usage credits, or at an interval you set from 1 to 55 minutes. Each beat counts toward your usage limits, or your API bill if you pay per token, and the author is not responsible for the cost. It stops by itself after 8 hours without a message, at 90% of a usage limit, on errors that don't clear, or when the cache is already gone. In the desktop app the turn line sits above the prompt and no heart is drawn. Nothing is drawn in claude -p.
The marketplace, cachebeat, holds only this plugin. Keeping the cache from expiring is why this page files it under usage. cache-tax, by karanb192, keeps the one-hour cache warm while you step away and stops a send into a cold cache once with the rewrite cost. ctx-handoff, by cablate, keeps the cache warm too, and turns what you teach Claude into project notes. This one shows the beats: a heart with 19 animations at the end of the hint line, and a line under your latest turn such as ♥ cache kept warm ×3 · 184k cached · next in 42m. A beat carries the conversation and asks for a one-character reply that is thrown away; its last line says it comes from cachebeat, so a request log can tell beats from your own messages. Claude can turn it on or change a setting when you ask, through two tools of its own. In the source, each beat forks the session with $.model.fork.
Demo
From the author's repo.
What it hooks into
session.startWhen a session starts
session.endWhen a session ends
classic.SessionStartA Claude Code event
command.runWhen you run its slash command/cachebeat
tool.callAround a tool call, where it can hold onemcp__cachebeat__statemcp__cachebeat__set
ui.renderDraws into the sessionTurnDurationPromptHintAbovePromptPane
classic.PostModelSwitchA Claude Code event
session.compactWhen the context is compacted
turn.startWhen Claude starts a turn
turn.stepAt each step of a turn
turn.completeWhen a turn ends
ui.focusA Claude Code event
ui.scrollA Claude Code event
ui.closeWhen its pane closes
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/cachebeatKeep the prompt cache warm while idle
Files
The author's README and source, 4 files. They load when you open them.