keepwarm

by luwux · ★ 0 · updated today

PanesBandsStatus lineGuardsCommandsPromptTools & agentsvalidates

0

Idle-session guard for Claude Code's 1-hour prompt cache (macOS): about 50 idle minutes after the last turn of a large session it notifies you, optionally after a cache-read fork judges whether to compact, keep warm or leave it; every request and change it makes is audited. Derived from cache-tax (MIT, Karan Bansal).

install keepwarm

Install

/plugin marketplace add luwux/keepwarm
/plugin install keepwarm@keepwarm

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

What it hooks into

From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.

Events
session.startclassic.SessionStarttool.callclassic.Stopcommand.runprompt.submitturn.stepturn.completesession.compactui.closeui.render
API calls
$.clock.after$.clock.every$.clock.now$.command.register$.command.run$.model.fork$.process.run$.process.spawn$.prompt.submit$.session.append$.session.compact$.session.cwd$.session.id$.session.model$.session.surfaces$.session.usage$.state.get$.state.set$.store.delete$.store.get$.store.keys$.store.set$.tool.register$.ui.close$.ui.copy$.ui.log$.ui.open$.ui.resolve$.ui.status$.ui.toast
Draws
PaneAbovePrompt
Can see
classic hooksScheduleWakeup callsBash callsmcp__keepwarm__keepwarm callsevery promptcompaction
Reach
level 2 of 3 runs processesdrives Claudewrites the clipboardreads mod statepersists statedraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/luwux/keepwarm
Path in repo
repository root
Source commit
dae35a8 the exact code the scan read
Author
@luwux
License
MIT
First published
Last pushed
First listed here

Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.