prompt-cache-control

by claude-code-templates · ★ 1 · updated 10 days ago

PanesBandsStatus lineCommandsvalidates

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 Nasrallah-Adel/claude-prompt-cache-control
/plugin install prompt-cache-control@nasrallah-cache-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.endturn.stepcommand.runui.closeui.pressui.render
API 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
Draws
AbovePromptPane
Reach
level 2 of 3 drives Claudewrites the prompt boxreads filesreads env varsdraws

Origin

How it got here
Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
Repository
github.com/Nasrallah-Adel/claude-prompt-cache-control
Path in repo
repository root
Source commit
c9025db the exact code the scan read
Author
claude-code-templates @Nasrallah-Adel
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.