claudemods

All Claude Code modszadoli/claude-mods

prompt-cache-control

A Claude Code mod in zadoli/claude-mods

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 and /cache settings a pane of on/off toggles; /keepwarm pings the cache after idle stretches so it never lapses (ported from cache-tax).

prompt-cache-control reaches L2 (writes or runs) and passed claude plugin validate with warnings.

Install hint

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

From 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.

Access

L2 Writes or runswrites files, drives Claude, writes the prompt box, reads files, reads env vars, reads the prompt box, persists state, draws

Validation

Passed with warnings

Listed under Prompt cache mods for Claude Code, Context and usage meters for Claude Code.

View the source on GitHub Back to the list

What the scan recorded

Observed events
every prompt, compaction
Hooks
session.start, session.end, session.measure, turn.step, command.run {command=cache}, ui.close, ui.press, ui.render {component=AbovePrompt}, ui.render {component=Pane}, ui.render {component=Pane}, prompt.submit, session.compact, turn.complete, command.run {command=keepwarm}
API calls
$.clock.after, $.clock.every, $.command.register, $.command.run, $.env.get, $.fs.read, $.fs.write, $.model.fork, $.prompt.fill, $.prompt.read, $.prompt.submit, $.session.cwd, $.session.id, $.session.surfaces, $.session.usage, $.store.delete, $.store.get, $.store.keys, $.store.set, $.ui.ask, $.ui.close, $.ui.invalidate, $.ui.log, $.ui.open, $.ui.resolve, $.ui.status, $.ui.toast
Validation
Passed with warnings
Scanned revision
22920ae9230b
Marketplace passed
zadoli-mods

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. What a mod can access and how the scan works.

More from zadoli/claude-mods

Badge for your README

Reach badge for prompt-cache-control Validation badge for prompt-cache-control

Authors can show the latest scan result in their README. Each badge links to this page.

[![reach](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/zadoli--claude-mods--prompt-cache-control-reach.svg)](https://mods.aidojo.si/mods/zadoli--claude-mods--prompt-cache-control/)
[![validates](https://raw.githubusercontent.com/karanb192/awesome-claude-code-mods/main/badges/zadoli--claude-mods--prompt-cache-control-validates.svg)](https://mods.aidojo.si/mods/zadoli--claude-mods--prompt-cache-control/)