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 comes from the environment variables Claude Code honours (5 minutes by default, 1 hour with ENABLE_PROMPT_CACHING_1H). /cache opens a per-turn table. Needs function hooks (early access).

Claude Code

By claude-code-templatesLicense: MIT32.3k GitHub starsUpdated 4 hours ago

Directory evidence

Runtimes
Claude Code
Parsed components
0 skill or MCP entries
Source updated
Oct 2, 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 comes from the environment variables Claude Code honours (5 minutes by default, 1 hour with ENABLE_PROMPT_CACHING_1H). /cache opens a per-turn table. Needs function hooks (early access).",
  "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 ENABLE_PROMPT_CACHING_1H / FORCE_PROMPT_CACHING_5M (5 minutes when neither is set); 5m or 1h overrides 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": "One toast per cache entry when the countdown reaches the warning threshold (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)