cache-warmer

by Paul B. Kim · ★ 9 · updated yesterday

PanesBandsCommandsvalidates

0

Keep the main conversation's prompt cache warm by automatically forking its last request, tools denied and billed like any request, shortly before the cache expires; switch its lifetime between 5m and 1h, and show each refresh's cost and estimated saving.

install cache-warmer

Install

/plugin marketplace add paulbkim-dev/claude-code-cache-warmer
/plugin install cache-warmer@claude-code-cache-warmer

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.startcommand.runconfig.setturn.startturn.stepturn.completesession.compactsession.endclassic.PostModelSwitchui.renderui.focusui.scrollui.close
API calls
$.clock.after$.clock.every$.clock.now$.command.register$.config.list$.config.set$.env.get$.env.set$.fs.exists$.fs.read$.fs.write$.model.fork$.session.append$.session.id$.state.get$.state.set$.store.get$.store.set$.ui.blit$.ui.close$.ui.focus$.ui.log$.ui.open$.ui.panes$.ui.resolve
Draws
AbovePromptPane
Can see
compactionclassic hooks
Reach
level 2 of 3 other: $.state.getother: $.state.setwrites filessets env varschanges configdrives Claudereads filesreads env varspersists 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/paulbkim-dev/claude-code-cache-warmer
Path in repo
repository root
Source commit
ba86227 the exact code the scan read
Author
Paul B. Kim @paulbkim-dev
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.