Files
gabrielvidalandClaude Opus 5.5 c8bfeecff2 feat(cache-score): prompt-cache score, status line and cold-cache nudge as a Claude Code plugin
tools/cache-score/: one Node file (no deps) that scans Claude Code
transcripts for messages sent into an expired prompt cache, prices the
re-writes in list $ and plan % (seeded from the hub's usage fits, then
self-calibrated from the status line's rate_limits), and scores the
context-weighted share of re-sent context that came from cache.

- report: score /100, cold returns, when you came back, costliest, other
  cache breaks, idle compactions, what compacting while warm would save
- status line on the CLI's prompt_cache field, 60 s refresh, keeps an
  existing status line above it
- UserPromptSubmit nudge: holds the first message into an expired 100K+
  context once; skips -p runs and app resumes via CLAUDE_CODE_ENTRYPOINT
- root .claude-plugin/marketplace.json lists it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 18:55:04 +01:00

435 B

description, argument-hint, allowed-tools
description argument-hint allowed-tools
Show your prompt-cache score for the last 30 days (pass e.g. --days 7) [--days N] [--list] Bash(node:*)

Here is the user's cache-score report. Show it to them verbatim inside one code block, with no commentary before it and at most two sentences after it on the single biggest thing they could change:

!node "${CLAUDE_PLUGIN_ROOT}/scripts/cache-score.mjs" --no-color $ARGUMENTS