prompt-cache-control

by claude-code-templates · ★ 0 · updated 3 days ago

PanesBandsStatus lineCommandsPromptvalidates

0

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 prompt-cache-control

Install

/plugin marketplace add zadoli/claude-mods
/plugin install prompt-cache-control@zadoli-mods

Then run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.

View source on GitHub

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.endsession.measureturn.stepcommand.runui.closeui.pressui.renderprompt.submitsession.compactturn.complete
API calls
$.clock.after$.clock.every$.command.register$.env.get$.fs.read$.model.fork$.session.cwd$.session.id$.session.surfaces$.session.usage$.store.delete$.store.get$.store.keys$.store.set$.ui.close$.ui.invalidate$.ui.log$.ui.open$.ui.resolve$.ui.status$.ui.toast
Draws
AbovePromptPane
Can see
every promptcompaction
Reach
level 2 of 3 drives Claudereads filesreads env varspersists 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/zadoli/claude-mods
Path in repo
plugins/prompt-cache-control
Source commit
daf29df the exact code the scan read
Author
claude-code-templates @zadoli
License
A license file GitHub could not identify — read it in the repository before reusing code.
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 zadoli/claude-mods

context-band

zadoli/claude-mods

A row above the prompt with the working directory, its git branch and the skill loaded since your last message.

★ 0BandsGuardsPrompt