Claude Code mod

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.

Context & usage mods Plugin marketplace Source

Install

Inside Claude Code
/plugin marketplace add jakerains/claudemods
/plugin install prompt-cache-control@claudemods

Mods install like plugins. Run /reload-plugins or start a new session to load it.

What it can access

Reach
L1Reads: reads files, reads env vars, reads mod state, persists state, draws
Draws in
AbovePromptPane
Hooks
session.startsession.endturn.stepcommand.runui.closeui.pressui.render

From a static scan of the mod's code by awesome-claude-code-mods. It shows what the code asks for, not a security review.

How Claude Code mods work

  • A mod is a plugin with a JavaScript or TypeScript module that runs inside Claude Code (version 2.1.287 or later). It can draw panes beside the transcript, a band above the prompt, buttons and toasts, restyle the spinner and tool rows, and watch or rewrite tool calls and prompts.
  • It installs like any plugin: add its marketplace with /plugin marketplace add owner/repo, then /plugin install name@marketplace.
  • Check what a mod can reach before installing: it runs with your permissions. Reach goes from drawing only, to reading files, to writing files or running processes, to the network. Run claude plugin validate on a clone to list its hooks and calls without running it.
  • Turn one off from the Installed tab in /plugin, or start Claude Code with --safe-mode to skip every customization for a session.
Claude Code docs

Details

Folder
prompt-cache-control
Marketplace
claudemods
Author
Jake Rains (adapted from claude-code-templates by Daniel Ávila)
License
MIT
Last updated
11 October 2026

FAQ

What is 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. It is a mod for Claude Code, from jakerains/claudemods on GitHub.

What can the prompt-cache-control mod access?

Its widest reach is "reads" (reads files, reads env vars, reads mod state, persists state, draws). It draws in AbovePrompt, Pane. Like any mod, it runs with your permissions.

How do I install prompt-cache-control?

Inside Claude Code (v2.1.287 or later), run /plugin marketplace add jakerains/claudemods and then /plugin install prompt-cache-control@claudemods.

More context & usage mods

pro-limits

rodbegbie/rod-claude-mods

Gauges for the 5-hour and weekly Claude usage limits above the prompt, toggled with /pro-limits

Context & usage mods/plugin install

prompt-cache-control

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

Context & usage mods/plugin install

powerup

betobetico/powerup

/powerups: las lecciones de Claude Code en un panel con botones, en el terminal y en la app de escritorio. Sin tokens: el plugin responde a cada clic sin pasar por el modelo. Las lecciones se descargan con tu clave de acceso y se renuevan cada semana. Mod (function hooks); Claude Code 2.1.284 o posterior.

Context & usage mods/plugin install

prompt-cache-forecast

DominikvD/prompt-cache-forecast

Token Weather plus Prompt-Cache: Kontextfüllung und darunter, wie viele Tokens gerade im Prompt-Cache liegen und wann er abläuft.

Context & usage mods/plugin install

power-bottom

brianSchanbacher/power-bottom

A cross-platform Claude Code status line inspired by Trail of Bits' statusline script: model, folder, branch, context bar, cost, time, cache hits, live agents

Context & usage mods/plugin install

prompt-cache-watch

ramankrishna/prompt-cache-watch

Shows how much of each request the prompt cache served, and tells you when the cache was rebuilt and the likely reason.

Context & usage mods/plugin install

Browse the most popular Claude Code mods, all context & usage mods, or the skills and MCP server directories.