prompt-cache-control

by Jake Rains (adapted from claude-code-templates by Daniel Ávila) · ★ 0 · updated 3 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 jakerains/claudemods
/plugin install prompt-cache-control@claudemods

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$.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 other: $.state.getother: $.state.setreads 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/jakerains/claudemods
Path in repo
prompt-cache-control
Source commit
d1f0b3a the 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.

★ 0BandsReskinsGuards

open-tray

jakerains/claudemods

A pane of things to look at or listen to: what Claude made this session, things related to what you are working on, and local servers. Project rules in .claude/tray.json or ~/.claude/open-tray/rules/.

★ 0PanesGuardsCommands