ClaudeCodeMod

All shelves / Mods / Usage

cache-panel

By danyuchn

cache-panel is a Claude Code usage mod by danyuchn.

After 50 idle minutes, draws a prompt-cache line and a panel to keep it warm, ping it once, or compact, with a cost for each.

Draws

Install

The marketplace name is dustin-mods.

In your shell
claude plugin marketplace add danyuchn/claude-mods
claude plugin install cache-panel@dustin-mods
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.1.0
License
MIT
Repo stars
6
Last change
2026-10-06

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Runs a command when you press
  • Calls another program on this machine

Needs Claude Code 2.1.287 or newer. Developed and tested on 2.1.289 on macOS. An open session picks it up after /reload-plugins. It does nothing until you have been idle for 50 minutes. There is no auto mode. Normally nothing is on screen and nothing is spent. After 50 idle minutes, and only when letting the cache go cold would cost at least about $0.30, with a floor of 30,000 context tokens, one short line appears above the prompt. In the README's table that is about 38,500 tokens on Opus 5.5 and 78,900 on Sonnet 5.5. Click the line, or type /warm, to open the panel. The line goes away when you type again or when the cache goes cold. Ignore it and nothing happens. Away hours blank means 4. The panel prices keep-warm, compact, and doing nothing for that many hours, and names the cheapest. Keep warm pings every 50 minutes until the window ends. Ping once is one ping, about one more hour. Compact now runs the built-in /compact. While warming, the line shows the time left. Typing does not stop it. /warm off stops early. A one-line toast dismisses itself when the window ends. Every 50 minutes the ping is a tiny hidden request whose text is Reply with exactly: ok, on your own Claude login. The README says the request never appears in the transcript and does not grow the context. The author measured it on 2.1.289 with the cache lifetime shortened to 5 minutes: a later turn read 96,093 cached tokens and wrote 43. In a brand-new session the first ping can write a fresh cache entry instead of reading yours. The mod allows one such miss and stops after two in a row. Cost estimates use API list prices or, when the account reports subscription rate limits, community-measured quota weights. The author says those weights were measured on only two models and applied to the rest, so treat them as approximate, and that prices were checked on 2026-10-04. The sound goes through herdr, a separate app with panes and an agents sidebar: herdr notification show runs only inside a herdr pane, which the mod detects with HERDR_ENV set to 1. Outside it you still get the button, with no sound. The body of the notification is your folder name. CACHE_PANEL_FAST set to 1 is a trial: it reminds after 1 minute, pings every 2 minutes, and skips the context floor. The README says not to leave that mode on. A checkout for one session is claude --plugin-dir claude-mods/cache-panel. The README says the panel is only verified in the terminal. It guards on the terminal and desktop surfaces, and the desktop app has not been tested. The full hour was not waited out. The mechanism was shown with a 5-minute lifetime.

The install name is cache-panel. This page adds the author's name. The marketplace name is dustin-mods. The marketplace also holds screen-guard. This one installs on its own. The line and the panel, before the prompt cache goes cold, are why this page files it under usage. keepalive-alexandernicholson draws a prompt-cache bar for each conversation, and can keep an idle cache warm or compact it before it expires. cache-tax keeps the one-hour prompt cache warm while you step away, and stops a send into a cold cache once with the estimated rewrite cost. This one stays quiet until 50 idle minutes, then you choose keep-warm, one ping, or compact. The hidden ping is a model call on your own Claude login. The herdr notification is the local program.

Demo

The cache panel on a 96k-token conversation: what keeping it warm, compacting, or doing nothing costs over four hours, the cheapest choice, and three buttons.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • classic.SessionStartA Claude Code event
  • turn.stepAt each step of a turn
  • session.measureWhen usage is measured
  • session.compactWhen the context is compacted
  • command.runWhen you run its slash command/warm/cache-panel
  • ui.renderDraws into the sessionAbovePromptPane

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 2

  • /warmCache panel: keep warm, ping once, or compact
  • /cache-panelCache panel: keep warm, ping once, or compact

Files

The author's README and source, 5 files. They load when you open them.

Facts

Author
danyuchn
Category
Usage
Marketplace
dustin-mods
Repo
danyuchn/claude-mods
Folder
cache-panel
Version
0.1.0
License
MIT
Repo stars
6
Last change
2026-10-06
Language
TypeScript
Files
8

Other mods in Usage

context-cardNongfsqDraws context fill, the prompt cache, and weekly plan usage in one line above the prompt, with a breakdown on click. One of two mods for running many sessions.statuslineryanclarkDraws context, the 5-hour and 7-day limits, and extra usage under the prompt, from statusline, a status-line binary you install first.usage-headerSzotaszDraws the context window above the prompt, a color per category, with the 5-hour and weekly limits under it.green-lanternvogiaan1904Draws the 5-hour and 7-day limits as Green Lantern charge that drains as you use it, with a power-ring spinner and an emerald theme.long-live-the-claudeLapis0x0Draws the 5-hour and 7-day limits, context, and cache time above the prompt. Long-run, off by default, keeps the cache warm and pauses near the limit.usage-petmanson341349-beepDraws context, the 5-hour and weekly limits, and the cache hit rate above the prompt. The desktop Code tab draws four rings, with a pixel pet beside them.context-alarmmutlumehmetWarns when the context window fills, with a status line under the prompt, and suggests /save-context before compaction.cache-watchernikisgeDraws the cache time, the context, the plan limits, and this session's API value above the prompt, and a press can keep the cache warm.fast-jev-outputtamaratranSends a long Bash result to TypeSafe's Jev, which trims it before Claude reads it, and toasts the cut. The full output stays in the project.usage-statusrobbytDraws a row under the prompt hint with the 5-hour and 7-day limits left and how full the context is.brewmod-plan-effortkochetkov-maDraws a row above the prompt while Claude plans, naming the effort it raised to, xhigh by default.cache-keepernateherkaiDraws whether this chat's prompt cache is warm or cold, what a cold rewrite would cost, and the plan limits, and can keep a big chat warm.
All 183 in Usage