Home / Claude Code mods / Cost & usage / prompt-cache-control

prompt-cache-control

prompt-cache-control is a Claude Code mod by Nasrallah-Adel that prompt-cache meter above the Claude Code prompt: how many tokens each request read from, wrote to and sent past the cache, a live countdown to the cache's expiry, and what to do about it.

Updated 2026-10-08

What is prompt-cache-control?

prompt-cache-control is a Claude Code mod by Nasrallah-Adel that prompt-cache meter above the Claude Code prompt: how many tokens each request read from, wrote to and sent past the cache, a live countdown to the cache's expiry, and what to do about it. It is listed under Cost & usage and has 4 GitHub stars.

TypeClaude code mod
AuthorNasrallah-Adel
RepositoryNasrallah-Adel/claude-prompt-cache-control
Popularity4 GitHub stars
CategoryCost & usage
SecurityReview before installing (76/100)
Rank#1,619 of 9,397 Claude Code mods; #269 in Cost & usage
Last commit2026-10-08
Stars this week+1
Hooks7 events
Seesonly the events it hooks
Draws onAbovePrompt, Pane

Is prompt-cache-control safe to install?

prompt-cache-control scores 76/100 on the MCPMods security check: Review before installing. Things to review: reads environment variables. It passed 4 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
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
No license detectedNote

API calls in its code

CallWhat it means
$.clock.every
$.command.register
$.command.rundrives Claude
$.env.getreads env vars
$.fs.existsreads files
$.fs.listreads files
$.fs.readreads files
$.model.completedrives Claude
$.prompt.fillwrites the prompt box
$.prompt.submitdrives Claude
$.session.cwd
$.session.id
$.session.usage
$.ui.closedraws interface
$.ui.invalidatedraws interface
$.ui.logdraws interface
$.ui.opendraws interface
$.ui.resolvedraws interface
$.ui.statusdraws interface
$.ui.toastdraws interface

How do I install prompt-cache-control?

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

Or ask Claude to set it up

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

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