All Claude Code modsjakerains/claudemods
prompt-cache-control
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 setting) and corrects itself from request timing. /cache opens a per-turn table.
In its last recorded footprint, prompt-cache-control reaches L1 (reads) by its classified calls and passed claude plugin validate on Claude Code 2.1.296.
- Events hooked: 7
- API methods referenced: 17
- Access from classified calls: L1, reads: reads files, reads env vars, persists state, draws
- Unclassified calls: 2 (
$.state.get,$.state.set), full access unknown - Last recorded footprint, revision
da45b88: Repository could not be scanned; showing the last known footprint. - Static scan, not a runtime test
Install hint
/plugin install prompt-cache-control --marketplace jakerains/claudemodsFrom the repository's own marketplace. Confirm the plugin name in the repository's README before installing. Mods need Claude Code 2.1.287 or later. The latest scan could not confirm this mod, so the command may be out of date.
Access
L1 Reads filesother: $.state.get, other: $.state.set, reads files, reads env vars, persists state, drawsValidation
not verifiedView the source on GitHub Back to the list
What the scan recorded
- Observed events
- Only what it hooks
- Hooks
session.start, session.end, turn.step, command.run {command=cache}, ui.close, ui.press, ui.render {component=AbovePrompt}, ui.render {component=Pane}- 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- Validation on 2.1.296
- not verified
- Last known result
- Passed on 2.1.296
- Validator output
- Repository could not be scanned; showing the last known footprint.
- Scanned revision
da45b88d6411- Marketplace passed
- claudemods
These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. How the scan works.
More from jakerains/claudemods
- context-gaugeOne line under the prompt: model, effort, repo/branch, context left, and on a Claude subscription the 5-hour…
- open-trayPOWERTRAY: a pane of things to look at or listen to (what Claude made this session, things related to what yo…
Badge for your README
Authors can show the latest scan result in their README. Each badge links to this page.
[](https://mods.aidojo.si/mods/jakerains--claudemods--prompt-cache-control/)
[](https://mods.aidojo.si/mods/jakerains--claudemods--prompt-cache-control/)