ClaudeCodeMod

All shelves / Mods / Usage

cache-meter

By T-AI-Labs

cache-meter is a Claude Code usage mod by T-AI-Labs.

Draws one row above the prompt with how much of the last turn the prompt cache served, how long it stays warm, and a Keep warm switch that refreshes it.

Draws

Install

The marketplace name is T-AI-Labs.

In your shell
claude plugin marketplace add T-AI-Labs/claude-code-mods
claude plugin install cache-meter@T-AI-Labs
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.4.3
License
MIT
Repo stars
4
Last change
2026-10-24

What it can reach

  • Draws in the session
  • Reads usage or context figures

Built and tested against Claude Code 2.1.295, the engine in the Claude desktop app 2.31226.1; the function-hook API is in early access. The commands also work inside Claude Code with /plugin in place of claude plugin. New sessions load the changes. Keep warm is off by default, and keepWarmMinutes (15, 30, 60, or 120; 60 by default) sets how long it goes on after the last turn. Each refresh is a model request, and on a subscription it counts against the usage limits.

The marketplace name is T-AI-Labs, and it lists five mods, each installed on its own. Cache figures are why this page files it under usage. cache-maxxer, by vayaan-labs, draws the cache time left and hit rate and can send a short request to keep it warm. keepalive-alexandernicholson, by alexandernicholson, draws a cache bar for each conversation and can keep an idle cache warm or compact it. This one shows the share of the last turn's input served from the cache, yellow below 40%, and whether it is warm or cold: five minutes after the last request starts, or an hour on the hour-long cache. Keep warm refreshes shortly before the cache lapses and stops when a refresh finds it gone. The README puts a refresh at about $0.04 for 200k tokens on Claude Opus 5.5, against about $1.00 to write the context again. Before 0.4.0 it also had the context controls, which moved to the author's context-meter.

Demo

The author's drawing of the cache-meter row: Cache at 92%, 92k of 100k, warm for 3:12, and a Keep warm button. The figures are the author's example.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • session.endWhen a session ends
  • turn.stepAt each step of 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
T-AI-Labs
Category
Usage
Marketplace
T-AI-Labs
Repo
T-AI-Labs/claude-code-mods
Folder
cache-meter
Version
0.4.3
License
MIT
Repo stars
4
Last change
2026-10-24
Language
TypeScript
Files
6

Other mods in Usage

context-meterT-AI-LabsDraws one row above the prompt with the context fill against an auto-compact threshold you pick, and Compact and Clear buttons.usage-limitsT-AI-LabsDraws one row above the prompt with how much of the 5-hour and weekly limits is used, with the time until each resets.context-usageT-AI-LabsDraws the context fill with an auto-compact threshold, Compact and Clear buttons, and the 5-hour and weekly limits in two rows above the prompt.rich-statuslineTheBabaYagaDraws one line above the prompt with the directory, git branch and changes, model and effort, and bars for context and the 5-hour and 7-day limits.cachebeat404MayankKeeps the prompt cache warm while you are away with a small background request, and draws a beating heart under the prompt and a beat count under your turn.tokensaverAGregDevPuts Clawd in a pane and a band above the prompt, trims noisy shell output before Claude reads it, warns as the context fills, and routes subagents by tier.colorwheelAlexeyHRDesignDraws a band in the desktop app with your 5-hour and 7-day limits on its edges and the context as weather, and redraws replies with full-width diagrams.model-pickeralfredtmDraws a band above the prompt when a session opens that lists the models by digit, and runs /model for the one you press; 0 keeps the current one.context-meterAndrewDongminYooDraws the measured context fill above the prompt past 50%, and skips an auto-compact set off when an advisor request makes the session read twice as full.effort-cycleAnercoSteps the effort level of the agent in view with Ctrl+↑ and Ctrl+↓, and draws it as a colored meter in the footer and in each subagent's tasks list row.dotclaudeCarloArnoneHolds a commandOpens a Workspace pane of live context, rate-limit, and cost traces with ten panels, and refuses Claude's file edits until your message approves.dashbandEgonLeitnerDraws how long the prompt cache has left, the context fill, and the 5-hour and weekly limits against their pace, in the footer and as a band above the prompt.
All 183 in Usage