From keepalive
A prompt cache bar for every conversation, subagent and teammate, a dashboard with /keepalive, per-conversation cache TTLs, and upkeep that keeps an idle cache warm or compacts it before it expires. Requires Claude Code Mod function hooks enabled.
12 events · 24 calls
Ships in keepalive. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
process.runhttp.fetchenv.getenv.setsettings.readconfig.setmodel.forkEach event it registers a hook on, with the matcher when it sets one
classic.SessionStartclassic.SubagentStartclassic.PostToolUseclassic.Stopclassic.SubagentStopsession.startturn.stepui.render{component=AbovePrompt}session.compactsession.endui.render{component=Pane}command.runcommand.run{command=?}ui.close{id=?}Every mods API method its source calls, by namespace
listeverynowsleepregisterlistsetgetsetfetchforkrunauthorizecompactidreaddeletegetsetcloseinvalidatelogopenresolveANTHROPIC_API_KEYANTHROPIC_AUTH_TOKENANTHROPIC_BASE_URLCLAUDE_CODE_PROMPT_CACHE_TTLCLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTLCLAUDE_CODE_USE_BEDROCKCOLORFGBGDISABLE_PROMPT_CACHINGDISABLE_PROMPT_CACHING_HAIKUDISABLE_PROMPT_CACHING_OPUSDISABLE_PROMPT_CACHING_SONNETENABLE_PROMPT_CACHING_1HENABLE_PROMPT_CACHING_1H_BEDROCKFORCE_PROMPT_CACHING_5MWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.ts (written ./register.ts)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 alexandernicholson/agent-router --plugin keepalive