Agent Plugins Marketplace
← All plugins

prompt-cache-control

v0.1.0

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.

Claude Code

By claude-code-templatesLicense: MIT32.4k GitHub starsUpdated 2 months ago

Directory evidence

Runtimes
Claude Code
Parsed components
0 skill or MCP entries
Source updated
Oct 4, 2026
Manifest status
Canonical path parsed

The directory validates manifest shape and source location. It does not execute the plugin or provide a security endorsement. Review the indexing methodology →

Install prompt-cache-control for Claude Code

Installs for the current user
claude plugin marketplace add IchenDEV/agent-plugin-mkt
claude plugin marketplace update agent-plugin-marketplace
claude plugin install prompt-cache-control@agent-plugin-marketplace

Paste and run these commands in a terminal with Claude Code. They add and refresh the PluginsMP catalog, then install this plugin.

The installer fetches third-party code from the source repository shown on this page. This directory validates manifest structure and source location, but does not perform a security audit; review the manifest, components, and source before installing.

Get the source manually
git clone https://github.com/davila7/claude-code-templates

Clone the source repository, then follow its setup instructions to add the plugin to a compatible client. The plugin root is cli-tool/components/mods/observability/prompt-cache-control/.

Plugin files

cli-tool/components/mods/observability/prompt-cache-control/
└── .claude-plugin/plugin.json

Plugin manifests1

cli-tool/components/mods/observability/prompt-cache-control/.claude-plugin/plugin.json
{
  "name": "prompt-cache-control",
  "version": "0.1.0",
  "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.",
  "author": {
    "name": "claude-code-templates",
    "url": "https://www.aitmpl.com"
  },
  "repository": "https://github.com/davila7/claude-code-templates",
  "license": "MIT",
  "keywords": [
    "mod",
    "function-hooks",
    "observability",
    "prompt-caching",
    "cost"
  ],
  "userConfig": {
    "ttl": {
      "type": "string",
      "title": "Cache lifetime",
      "description": "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",
      "default": "auto",
      "options": [
        "auto",
        "5m",
        "1h"
      ]
    },
    "warnSeconds": {
      "type": "number",
      "title": "Warn before expiry (s)",
      "description": "Seconds left on the countdown at which the band turns yellow and a toast reminds you the cache is about to lapse",
      "default": 60
    },
    "compactAtTokens": {
      "type": "number",
      "title": "Large context (tokens)",
      "description": "From this prompt size up, an expired cache suggests /compact (or /clear) before you pay to write the whole prefix again",
      "default": 100000
    },
    "band": {
      "type": "boolean",
      "title": "Band above the prompt",
      "description": "Show the meter as a row above the prompt",
      "default": true
    },
    "status": {
      "type": "boolean",
      "title": "Status line entry",
      "description": "Also pin a short entry (hit rate and countdown) under the prompt",
      "default": false
    },
    "toast": {
      "type": "boolean",
      "title": "Toast near expiry",
      "description": "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)",
      "default": true
    }
  }
}

If you maintain this plugin, link to this source-backed listing from your README so users can review its manifest and indexed components.

[prompt-cache-control on Agent Plugins Marketplace](https://pluginsmp.com/plugins/prompt-cache-control)