ClaudeCodeMod

All shelves / Mods / Usage

cache-keeper

By nateherkai

cache-keeper is a Claude Code usage mod by nateherkai.

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

Draws

Install

The marketplace name is nateherk-mods.

In your shell
claude plugin marketplace add nateherkai/claude-code-mods
claude plugin install cache-keeper@nateherk-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
1.0.0
License
MIT
Repo stars
37
Last change
2026-10-02

What it can reach

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

Claude Code 2.1.287 or later, in the terminal or the desktop app's Code tab. Open a new chat after installing: the author says /reload-plugins does not reload it, and that the mods keep their data under ~/.claude/mods-data/ and make no network calls of their own. The line turns yellow 5 minutes before the cache expires, and the plan limits turn yellow at 80% and red at 95%. /keepwarm keeps this chat warm for 4 hours by default with a small ping before the cache expires, and turns itself off if a ping writes the cache instead of reading it. The pings are small model requests, sent only while /keepwarm is on. A send into a chat over 150k tokens after its cache expired asks first: Send anyway, Compact first, or Cancel. The handoff button runs the bundled session-handoff skill, saves the handoff, clears the chat, and sends the handoff as the fresh chat's first prompt. /board lists every local chat with its cache and cost. Prices come from the Claude API price list, and on a subscription plan they count against your limits, not a bill.

The install name is cache-keeper. This page adds the author's name. The marketplace name is nateherk-mods. The marketplace also holds recording-mode, goal-meter, and collision-guard. This one installs on its own. The marketplace source is ./cache-keeper. The cache line is why this page files it under usage. 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. keepalive-alexandernicholson draws a prompt-cache bar for each conversation, and can keep an idle cache warm or compact it before it expires. This one also draws the plan limits and hands a long chat off to a fresh one.

Demo

The Cache Keeper section of the README: what a cold cache costs, the line above the prompt with a keep warm button and the plan limits, /keepwarm, the cold-send guard, and /board.
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • classic.SessionStartA Claude Code event
  • session.endWhen a session ends
  • prompt.submitWhen you send a prompt
  • turn.startWhen Claude starts a turn
  • turn.stepAt each step of a turn
  • turn.completeWhen a turn ends
  • session.compactWhen the context is compacted
  • session.measureWhen usage is measured
  • tool.checkA Claude Code event
  • tool.callAround a tool call, where it can hold one
  • command.runWhen you run its slash command/handoff/ck-handoff/cache/ck-cache/keepwarm/ck-keepwarm/board/ck-board
  • ui.closeWhen its pane closes
  • ui.renderDraws into the sessionAbovePromptPaneSessionMode

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, 6 files. They load when you open them.

Facts

Author
nateherkai
Category
Usage
Marketplace
nateherk-mods
Repo
nateherkai/claude-code-mods
Folder
cache-keeper
Version
1.0.0
License
MIT
Repo stars
37
Last change
2026-10-02
Language
JavaScript
Files
7

Other mods in Usage

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.write-guardVedantAndhaleHolds a commandLets the first full rewrite of an existing file through, holds the next one so Claude uses Edit, and counts the rewrites it held.usage-hudronanworksDraws model, effort, context, and the 5-hour and weekly limits in a panel, and a pixel crab above the prompt that acts out the tool.cache-maxxervayaan-labsDraws the prompt-cache time left and hit rate above the input, says why the cache was rebuilt, and can send a short request to keep it warm.session-hudofeklevy11Draws four cards above the prompt: context left, the 5-hour limit, prompt clocks, and what the session cost.
All 183 in Usage