ClaudeCodeMod

All shelves / Mods / Usage

cachebeat

By 404Mayank

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.

Draws

Install

The marketplace name is cachebeat.

In your shell
claude plugin marketplace add 404Mayank/cachebeat
claude plugin install cachebeat@cachebeat
Open the repo

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.

Facts

Author
404Mayank
Category
Usage
Marketplace
cachebeat
Repo
404Mayank/cachebeat
Version
0.9.2
License
MIT
Repo stars
3
Last change
2026-10-13
Language
TypeScript
Files
27

Other mods in Usage

tokensaverAGregDevPuts Clawd in a pane and a band above the prompt, trims noisy shell output before Claude reads it, warns as the context fills, and routes subagents by tier.colorwheelAlexeyHRDesignDraws a band in the desktop app with your 5-hour and 7-day limits on its edges and the context as weather, and redraws replies with full-width diagrams.model-pickeralfredtmDraws a band above the prompt when a session opens that lists the models by digit, and runs /model for the one you press; 0 keeps the current one.context-meterAndrewDongminYooDraws the measured context fill above the prompt past 50%, and skips an auto-compact set off when an advisor request makes the session read twice as full.effort-cycleAnercoSteps the effort level of the agent in view with Ctrl+↑ and Ctrl+↓, and draws it as a colored meter in the footer and in each subagent's tasks list row.dotclaudeCarloArnoneHolds a commandOpens a Workspace pane of live context, rate-limit, and cost traces with ten panels, and refuses Claude's file edits until your message approves.dashbandEgonLeitnerDraws how long the prompt cache has left, the context fill, and the 5-hour and weekly limits against their pace, in the footer and as a band above the prompt.codemodeejklockGives Claude one tool that runs a JavaScript script calling the session's own tools, so only the output returns, and draws its nested calls live in the row.sidebarFayequePDocks a stats sidebar beside the chat: tasks, context, tokens, the limits or cost a session used, cache hit rate and expiry, output speed, and git.subagent-statusline-desktopGerardoFC8Draws the subagent statusline as a band above the prompt in the desktop app: model, effort, cost, context, running subagents, and the 5-hour and weekly limits.pulselineGregoryHoDraws a band above the prompt when a tool fails three times in a row, a call runs past a minute, or autocompact is a few turns off; /pulseline opens a ledger.session-radaribrahimkobeissyDocks a sidebar of limits, context, subagents, MCP servers, skills, background shells, and the task list, with a toast when a shell or agent ends.
All 183 in Usage