claudemods

All Claude Code modsSenorKulka/claude-mods

cache-hugger

A Claude Code mod in SenorKulka/claude-mods

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 5-hour limit used. /hug-cache status shows the cache state, context, cold price and this session's cold writes. Nothing goes to the transcript: a row above the prompt counts down, each ping shows in a toast. At session start it also keeps a rule in CLAUDE.md that tells sub-agents to wait in slices of at most 4 minutes. Absorbs cache-tax 2.2.1 (MIT, Karan Bansal); uninstall cache-tax.

cache-hugger reaches L2 (writes or runs) and passed claude plugin validate with warnings.

Install hint

/plugin install cache-hugger --marketplace SenorKulka/claude-mods

From the repository's own marketplace. Confirm the plugin name in the repository's README before installing. Mods need Claude Code 2.1.287 or later.

Access

L2 Writes or runswrites files, drives Claude, reads files, reads env vars, reads settings, persists state, draws

Validation

Passed with warnings

Listed under Prompt cache mods for Claude Code, Context and usage meters for Claude Code.

View the source on GitHub Back to the list

What the scan recorded

Observed events
classic hooks, every prompt, compaction
Hooks
config.set {key=theme}, ui.render {component=AbovePrompt}, session.start, classic.SessionStart, command.run {command=hug-cache}, prompt.submit, turn.step, classic.Stop, turn.complete, session.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
Validation
Passed with warnings
Scanned revision
f28dd40800ed
Marketplace warnings
bushi-local

These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. What a mod can access and how the scan works.

Badge for your README

Reach badge for cache-hugger Validation badge for cache-hugger

Authors can show the latest scan result in their README. Each badge links to this page.

[![reach](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/SenorKulka--claude-mods--cache-hugger-reach.svg)](https://mods.aidojo.si/mods/SenorKulka--claude-mods--cache-hugger/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/SenorKulka--claude-mods--cache-hugger-validates.svg)](https://mods.aidojo.si/mods/SenorKulka--claude-mods--cache-hugger/)