Home / Claude Code mods / Cost & usage / cache-battery

cache-battery

cache-battery is a Claude Code mod by korengast that shows the prompt cache as a draining battery above the prompt: 5m or 1h tier, seconds in the last minute, a snowflake when cold.

Updated 2026-10-07

What is cache-battery?

cache-battery is a Claude Code mod by korengast that shows the prompt cache as a draining battery above the prompt: 5m or 1h tier, seconds in the last minute, a snowflake when cold. It is listed under Cost & usage and has no public popularity data yet.

TypeClaude code mod
Authorkorengast
Repositorykorengast/cache-battery
Popularityno public popularity data yet
CategoryCost & usage
SecurityLow risk (88/100)
Rank#3,727 of 5,272 Claude Code mods; #703 in Cost & usage
LicenseMIT
Last commit2026-10-07
Hooks4 events
Seesclassic hooks
Draws onAbovePrompt

Is cache-battery safe to install?

cache-battery scores 88/100 on the MCPMods security check: Low risk. Things to review: reads environment variables. It passed 7 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts no processesPass
Writes no files or configPass
Reads environment variablesReview
Only sees the events it hooksPass
Doesn't drive ClaudePass
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.every
$.clock.now
$.env.getreads env vars
$.ui.invalidatedraws interface
$.ui.resolvedraws interface

How do I install cache-battery?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/korengast/cache-battery
    claude plugin validate ./cache-battery/.
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add korengast/cache-battery && claude plugin install cache-battery@cache-battery

Or ask Claude to set it up

Paste this into Claude Code and it installs cache-battery for you:

Install the "cache-battery" Claude Code mod from https://github.com/korengast/cache-battery. Run claude plugin validate on it first and show me what it can access before you enable it.