prompt-cache-control
by Jake Rains (adapted from claude-code-templates by Daniel Ávila) · ★ 0 · updated 11 Oct 2026
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 (keep going, compact or clear). The TTL follows Claude Code's own rules for your account (1 hour on a Claude subscription, 5 minutes on an API key, cloud provider or usage credits, plus the TTL variables and...
Install
/plugin marketplace add jakerains/claudemods/plugin install prompt-cache-control@claudemodsThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
session.startsession.endturn.stepcommand.runui.closeui.pressui.render- API calls
$.clock.every$.command.register$.env.get$.fs.read$.session.cwd$.session.usage$.state.get$.state.set$.store.get$.store.set$.ui.close$.ui.invalidate$.ui.log$.ui.open$.ui.resolve$.ui.status$.ui.toast- Draws
AbovePromptPane- Reach
- level 1 of 3 reads filesreads env varsreads mod statepersists statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/jakerains/claudemods
- Path in repo
prompt-cache-control- Source commit
da45b88the exact code the scan read- Author
- Jake Rains (adapted from claude-code-templates by Daniel Ávila) @jakerains
- License
- MIT
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
More from jakerains/claudemods
context-gauge
jakerains/claudemods
One line under the prompt: model, effort, repo/branch, context left, and on a Claude subscription the 5-hour and weekly usage left with a countdown to reset. /gauge swaps it for a colour-coded context breakdown above the prompt.
open-tray
jakerains/claudemods
POWERTRAY: a pane of things to look at or listen to (what Claude made this session, things related to what you are on, local servers), a player for a film's sound, plain-words recaps of the work (quick or detailed on request, quick ones on their own if you turn them on; flagged stale when they no longer hold), checklists Claude and you tick together (or one written from the conversation on...
Related mods
Other mods in Panes, close to this one by stars.