What is prompt-cache-control?
prompt-cache-control is a Claude Code mod by zadoli 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 no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | zadoli |
| Repository | zadoli/claude-mods |
| Popularity | no public popularity data yet |
| Category | Cost & usage |
| Security | Review before installing (68/100) |
| Rank | #5,243 of 5,272 Claude Code mods; #1,027 in Cost & usage |
| Last commit | 2026-10-14 |
| Hooks | 11 events |
| Sees | compaction, every prompt |
| Draws on | AbovePrompt, Pane |
Is prompt-cache-control safe to install?
prompt-cache-control scores 68/100 on the MCPMods security check: Review before installing. Things to review: reads environment variables; watches every prompt or event. 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.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes no files or config | Pass |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Drives Claude (model calls, prompts) | Note |
| Passes claude plugin validate | Pass |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.clock.every | |
$.command.register | |
$.env.get | reads env vars |
$.fs.read | reads files |
$.model.fork | drives Claude |
$.session.cwd | |
$.session.id | |
$.session.surfaces | |
$.session.usage | |
$.store.delete | keeps its own state |
$.store.get | keeps its own state |
$.store.keys | keeps its own state |
$.store.set | keeps its own state |
$.ui.close | draws interface |
$.ui.invalidate | draws interface |
$.ui.log | draws interface |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.status | draws interface |
$.ui.toast | draws interface |
How do I install prompt-cache-control?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/zadoli/claude-mods claude plugin validate ./claude-mods/plugins/prompt-cache-control
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add zadoli/claude-mods && claude plugin install prompt-cache-control@zadoli-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/zadoli/claude-mods/tree/main/plugins/prompt-cache-control. Run claude plugin validate on it first and show me what it can access before you enable it.
More from zadoli/claude-mods
This repository has 2 Claude Code mods on MCPMods.
- context-band: A row above the prompt with the working directory, its git branch and the skill loaded since your last message. (Low risk)