claudecodemods.dev

All mods / jakerains/claudemods

prompt-cache-control

SAFE

★ 0 by Jake Rains (adapted from claude-code-templates by Daniel Ávila) Repository ↗ Mod source ↗

Context & compaction Terminal UI

Description

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.

What it can do

Reach level 1 — reads What does this mean? →

other: $.state.getother: $.state.setreads filesreads env varspersists statedraws
Raw API calls (17) +
  • $.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

Static check passed on Claude Code 2.1.295.

Install

$/plugin marketplace add jakerains/claudemods
$/plugin install prompt-cache-control

Check the repo for the exact name.

Details

Repository
jakerains/claudemods
Path in repo
prompt-cache-control
License
MIT
Last updated
Oct 6, 2026
First seen
Oct 10, 2026
Last scanned
Oct 10, 2026

Related mods — reach level 1

Capability data is machine-generated by static analysis and may be incomplete. A SAFE badge is not a guarantee — read the code before installing anything with broad access. Not affiliated with Anthropic.

Found a mistake in this listing or verdict? Report an issue →