cache-bar

cache-bar is a Claude Code mod by TheTsungYing that shows prompt cache hit rate and TTL status in Claude Code.

Updated 2026-10-05

What is cache-bar?

cache-bar is a Claude Code mod by TheTsungYing that shows prompt cache hit rate and TTL status in Claude Code. It is listed under Cost & usage and has no public popularity data yet.

TypeClaude code mod
AuthorTheTsungYing
RepositoryTheTsungYing/claude-cache-bar
Popularityno public popularity data yet
CategoryCost & usage
SecurityLow risk (84/100)
Rank#4,820 of 5,272 Claude Code mods; #956 in Cost & usage
LicenseMIT
Last commit2026-10-05
Hooks12 events
Seescompaction, the system prompt
Draws onAbovePrompt, Pane

Is cache-bar safe to install?

cache-bar scores 84/100 on the MCPMods security check: Low risk. Things to review: writes files or config. It passed 6 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 files or configReview
Doesn't read environment variablesPass
Only sees the events it hooksPass
Drives Claude (model calls, prompts)Note
Passes claude plugin validatePass
Has an open-source licensePass

API calls in its code

CallWhat it means
$.clock.every
$.clock.now
$.command.register
$.config.list
$.config.setchanges config
$.model.forkdrives Claude
$.state.get
$.state.set
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.opendraws interface
$.ui.panesdraws interface
$.ui.resolvedraws interface
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install cache-bar?

  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/TheTsungYing/claude-cache-bar
    claude plugin validate ./claude-cache-bar/plugins/cache-bar
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add TheTsungYing/claude-cache-bar && claude plugin install cache-bar@claude-cache-bar

Or ask Claude to set it up

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

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