Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By davila7v0.1.0MITIn 1 marketplace
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. When Claude Code will compact an idle conversation by itself, it counts down to that too. /cache opens a per-turn table.
Trending plugins
7-day copy clicks
Code that runs inside Claude Code on every session, as you, unsandboxed.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Cache lifetimettl
How long the cache lives after a request: auto follows Claude Code's own rules (FORCE_PROMPT_CACHING_5M, CLAUDE_CODE_PROMPT_CACHE_TTL, the promptCacheTtl setting, ENABLE_PROMPT_CACHING_1H, then 1 hour on a Claude subscription and 5 minutes on an API key, cloud provider or usage credits) and corrects itself from request timing; 5m or 1h pins it
One of auto, 5m, 1h
stringdefault auto
Band above the promptband
Show the meter as a row above the prompt
booleandefault true
Toast near expirytoast
Toasts as the cache lapses: at the warning threshold, then at 10, 3, 2 and 1 seconds, once per cache entry each (only for prompts of 20k tokens or more)
booleandefault true
Status line entrystatus
Also pin a short entry (hit rate and countdown) under the prompt
booleandefault false
Idle compactionidleCompact
When Claude Code will compact a large conversation by itself before its 1-hour cache lapses (Claude Code 2.1.290+), count down to that moment in the band and say when it happened
booleandefault true
Warn before expiry (s)warnSeconds
Seconds left on the countdown at which the band turns yellow and a toast reminds you the cache is about to lapse
numberdefault 60
Large context (tokens)compactAtTokens
From this prompt size up, an expired cache suggests /compact (or /clear) before you pay to write the whole prefix again
numberdefault 100000
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it reads files; reads environment variables (CLAUDE_CODE_IDLE_COMPACT_MIN_TOKENS, CLAUDE_CODE_PROMPT_CACHE_TTL, CLAUDE_CONFIG_DIR, DISABLE_AUTO_COMPACT, DISABLE_COMPACT, DISABLE_PROMPT_CACHING, DISABLE_PROMPT_CACHING_HAIKU, DISABLE_PROMPT_CACHING_OPUS, DISABLE_PROMPT_CACHING_SONNET, ENABLE_PROMPT_CACHING_1H, FORCE_PROMPT_CACHING_5M, HOME).
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
7-day copy clicks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Generated from the plugin's indexed repository (davila7/claude-code-templates) — no native marketplace selected
npx claudepluginhub p/davila7-prompt-cache-control-cli-tool-components-mods-observability-prompt-cache-controlPlugins from other owners that cover similar ground