Skip to content
ccmods.app

prompt-cache-control

v0.2.0

Shows a prompt-cache meter above the prompt with hit rate and a countdown to expiry, and suggests /compact or /clear.

by @Nasrallah-Adel1Updated Broad accessGitHub

Installation

  1. Install from your shell (answer y to add the marketplace)

    $ claude plugin install prompt-cache-control --marketplace Nasrallah-Adel/claude-prompt-cache-control

Already in a session? Type this at the Claude Code prompt:

$ /plugin install prompt-cache-control --marketplace Nasrallah-Adel/claude-prompt-cache-control

Pick a scope and the mod is active right away. Needs Claude Code 2.1.287 or later, in a terminal. Full install guide

What does prompt-cache-control do?

  • Band above the prompt shows cache read, written and uncached tokens with a countdown to expiry
  • Names the cause of a cache miss: model changed, cache lapsed or prefix changed
  • /cache pane with a time-left bar, a read/wrote/new bar and a per-turn table
  • Clear button asks haiku for a session brief, runs /clear and submits the brief as the first prompt
  • Toasts at 60, 10, 3, 2 and 1 seconds before expiry for prompts of 20k tokens or more

What do you need?

  • Claude Code 2.1.287 or later (terminal)

What can this mod access?

Read from the mod's code with claude plugin validate on Claude Code 2.1.296, synced Oct 12, 2026. This is a capability list, not a security audit. Mods run with your permissions, so install only from authors you trust.

Broad access
  • Submits prompts or messages for you
  • Reads files
  • Reads environment variables or settings
  • Calls models on your plan (uses quota)
Hooks and engine calls (8 + 20)

hooks

  • command.run{command=cache}
  • session.end
  • session.start
  • turn.step
  • ui.close
  • ui.press
  • ui.render{component=AbovePrompt}
  • ui.render{component=Pane}

calls

  • $.clock.every
  • $.command.register
  • $.command.run
  • $.env.get
  • $.fs.exists
  • $.fs.list
  • $.fs.read
  • $.model.complete
  • $.prompt.fill
  • $.prompt.submit
  • $.session.cwd
  • $.session.id
  • $.session.usage
  • $.ui.close
  • $.ui.invalidate
  • $.ui.log
  • $.ui.open
  • $.ui.resolve
  • $.ui.status
  • $.ui.toast

How do you uninstall prompt-cache-control?

$ claude plugin uninstall prompt-cache-control

To switch it off without removing it, use claude plugin disable with the same name.

Do you maintain prompt-cache-control?

Add this badge to your README so users can jump to this page for the install command and access report.

Listed on ccmods.app
[![Listed on ccmods.app](https://ccmods.app/badge.svg)](https://ccmods.app/mods/prompt-cache-control)

cache-refresher

olddonkey/cache-refresher

3

Shows when the prompt cache expires and what a rebuild would cost, with an opt-in auto-refresh while you are away.

UICommandsWorkflowModerate access
$ claude plugin install cache-refresher --marketplace olddonkey/cache-refresher

cache-tax

karanb192/cache-tax

148

Keeps the prompt cache warm while you take a break and shows the estimated cost before a cold send.

UIPromptCommandsModerate access
$ claude --plugin-dir ./cache-tax

cache-ttl-statusline

JerrettDavis/ClaudeStatusLineWidgets

4

Status line with model, cost, context bar, prompt cache TTL, 5h/7d usage bars and git state, drawable as a native mod band.

UICommandsBroad access
$ claude plugin install cache-ttl-statusline --marketplace JerrettDavis/ClaudeStatusLineWidgets