From cachebeat
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.
15 events · 26 calls
Ships in cachebeat. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.callenv.getsettings.readmodel.forkprompt.submitEach event it registers a hook on, with the matcher when it sets one
session.startsession.end{reason=clear}session.end{reason=resume}classic.SessionStartprompt.submittool.call{tool=AskUserQuestion}command.run{command=cachebeat}tool.call{tool=mcp__cachebeat__state}tool.call{tool=mcp__cachebeat__set}ui.render{component=ToolUse, props=?}ui.render{component=ToolResult, props=?}classic.PostModelSwitchsession.compactturn.startturn.stepturn.completeui.render{component=TurnDuration}ui.render{component=PromptHint}ui.render{component=AbovePrompt}ui.render{component=Pane, requestId=?}ui.focus{requestId=?}ui.scroll{requestId=?}ui.close{id=?}Every mods API method its source calls, by namespace
aftereverynowregistergetforkidmessagesmodelrootusagereadgetsetdeletegetkeyssetregisteraskfocuslogopenresolvescrolltoastCLAUDE_AFK_TIMEOUT_MSCLAUDE_CODE_PROMPT_CACHE_TTLENABLE_PROMPT_CACHING_1HFORCE_PROMPT_CACHING_5MWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.tsx (written ./register.tsx)Read from the source, never run. Claude Code checks a mod again when it loads it and can refuse code this reading accepts; claude plugin validate shows its own list.
npx claudepluginhub 404mayank/cachebeat --plugin cachebeat