cache-hugger

by Bushi · ★ 0 · updated 17 Oct 2026

BandsStatus lineCommandsPromptwarnings

0

Keeps the main conversation's one-hour prompt cache warm and prices it when it goes cold. A cache-reading fork 50 idle minutes after the last request, while background work is in flight (for at most 12 hours after the last turn) or a /hug-cache window is open (6h by default, always, or 3h after a paid cold write). A message sent on a cold cache is refused once with its re-write price and the...

install cache-hugger

Install

/plugin marketplace add SenorKulka/claude-mods
/plugin install cache-hugger@bushi-local

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
config.setui.rendersession.startclassic.SessionStartcommand.runprompt.submitturn.stepclassic.Stopturn.completesession.compact
API calls
$.clock.after$.clock.every$.clock.now$.command.list$.command.register$.config.list$.env.get$.fs.exists$.fs.read$.fs.write$.model.fork$.session.id$.session.model$.session.usage$.store.delete$.store.get$.store.set$.ui.invalidate$.ui.log$.ui.resolve$.ui.status$.ui.toast
Draws
AbovePrompt
Can see
classic hooksevery promptcompaction
Reach
level 2 of 3 writes filesdrives Claudereads filesreads env varsreads settingspersists 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/SenorKulka/claude-mods
Path in repo
plugins/cache-hugger
Source commit
f28dd40 the exact code the scan read
Author
Bushi @SenorKulka
License
No license declared — ask the author before reusing code.
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.