ClaudeCodeMod

All shelves / Mods / Usage

cache-watcher

By nikisge

cache-watcher is a Claude Code usage mod by nikisge.

Draws 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.

Draws

Install

The marketplace name is niklas-mods.

In your shell
claude plugin marketplace add nikisge/niklas-mods
claude plugin install cache-watcher@niklas-mods --scope user
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.2.1
Repo stars
6
Last change
2026-10-05

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Runs a command when you press

The line above the prompt and its buttons are German. Needs Claude Code 2.1.287 or later. It runs in the terminal and in the desktop app's Code tab. The line shows how long the prompt cache stays warm, the context, the 5-hour and weekly limits, and this session's API value. Five minutes before the cache goes cold, it plays a sound, shows a notice, and draws a red warning line. Warm halten sends a short prompt that keeps the cache warm for another hour. Komprimieren is the other button. The line runs on its own. The cache window sits at the top of cache-watcher/hooks/register.tsx: 60 minutes for a subscription, and 5 for an API key. Restart Claude Code after installing.

The install name is cache-watcher. This page adds the author's name. The marketplace name is niklas-mods. The marketplace also holds arbeitsliste, peitsche, and other mods. This one installs on its own. The cache line is 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-timer draws a countdown above the prompt until the prompt cache expires, then how many tokens the next message writes again. The source's keep-warm prompt asks the model to answer only ok. The source runs compact for Komprimieren. The source's warning says the next prompt pays full price once the cache is cold. The sound is played by Claude Code itself, so this page does not list another program. The short prompt is a model call on the login Claude Code already holds, so this page does not list network access.

Demo

The cache-watcher row of the German mods table: a line above the prompt for the cache, the context, and the plan limits, with Warm halten and Komprimieren.
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • turn.startWhen Claude starts a turn
  • turn.completeWhen a turn ends
  • ui.renderDraws into the sessionAbovePrompt

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

Files

The author's source, 3 files. They load when you open them.

Facts

Author
nikisge
Category
Usage
Marketplace
niklas-mods
Repo
nikisge/niklas-mods
Folder
cache-watcher
Version
0.2.1
Repo stars
6
Last change
2026-10-05
Language
TypeScript
Files
7

Other mods in Usage

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.usage-budgeterikdarlingdataHolds a commandToasts when the 5-hour or 7-day window crosses a percent, and refuses a new subagent past 95% by default.leitstanddominikmartnDraws free disk space and context fill above the prompt, and names a hook of yours that just blocked a tool call.working-memoryHangghostDraws the context window as a brain: tool calls light regions, it fills as context grows, and compact plays a sleep sweep.jev-pilotAkramovic1Asks TypeSafe's Jev, through OpenRouter, to set each turn's effort, the subagent model, and the one skill a prompt needs, with a pilot that says what it chose.cmd-dietVedantAndhaleAdds quiet flags to noisy shell commands before they run, so Claude reads the short output, and counts the quieted commands on the status line.read-capVedantAndhaleHolds a commandRefuses a whole-file read over 1,000 lines once, points Claude at an outline of that file, and counts the reads it capped.reread-guardVedantAndhaleHolds a commandSkips a repeat read of a file that has not changed, tells Claude to use the copy it has, and counts the re-reads it skipped.tool-dietVedantAndhaleLists tools unused lately by name only, so their descriptions leave every request, and counts how many are on demand.
All 183 in Usage