Claude Rewarm Guard — Development skill for Claude Code
Warns before Claude Code silently rebuilds an expired prompt cache — and reports what idle-resume re-warms have already cost you.
How to install Claude Rewarm Guard
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open JarvusInnovations/claude-rewarm-guard and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Rewarm Guard does
Warns before Claude Code silently rebuilds an expired prompt cache — and reports what idle-resume re-warms have already cost you.
Alternatives in Development
- Investigate Performance — Investigate a Nimbalyst performance problem (freeze, lag, idle CPU, slow op, memory growth) with measured evid 1.6k ★
- Projectmem — Open-source coding agent memory 766 ★
- Voice Guard — Use to check ONE already-written piece of copy against a voice guide before it ships — it spawns ONE fresh sib 130 ★
README
claude-rewarm-guard
Claude Code caches your conversation prefix so each turn re-reads it at 10% of the input price instead of re-sending it at full price. That cache has a **1-hour TTL** on the main thread. Walk away for lunch, come back, and type one more message: the entire prefix — every file you read, every tool result — is silently rebuilt at *cache-write* rates, 2× input.
A 400k-token Opus session costs about **$3.80** to re-warm. Nothing tells you this happened. The turn just looks normal.
This package warns you first.
⚠️ Cache re-warm guard: this session holds ~412k cached tokens (claude-opus-4-8) and has
been idle 3.2h — past the 1-hour cache TTL, so this prompt rebuilds the whole prefix at
write rates ≈ $3.91. Re-send with WARMOK to proceed, or /clear (or a fresh session) to
avoid the rebuild.
Then you decide: pay it deliberately, or start fresh for free.
Install
npx claude-rewarm-guard install
It copies three hooks into `~/.claude/hooks/rewarm-guard/` and wires them into `~/.claude/settings.json`. Nothing else in your settings is touched, and the runtime is self-contained — it keeps working after the npx cache is cleared.
npx claude-rewarm-guard uninstall # removes both, cleanly
What did this already cost me?
Before you install anything, ask what idle-resume re-warms have *already* cost you. The answer is sitting in your local transcripts.
npx claude-rewarm-guard report
Idle-resume cache re-warms — all local history, 212 sessions
Re-warm events 96
Tokens rebuilt 38.4M
Avoidable cost $412.60
Share of cache writes 34% (of $1204.18 total)
By model
claude-opus-4-8 71 events 29.1M $276.45
claude-sonnet-5 25 events 9.3M $136.15
At your current threshold (costFloor $1.00, idle 50m), the gate would have
warned on 88 of these 96 events — $398.90 of $412.60 (97%).
The last line is the point: it pric
Related Skills
Afk Timer
Claude Code mod: shows how long you've been AFK and warns when the prompt cache has likely expired, so you can
Agentmeter
Explains coding-agent usage: reads the local session logs of Claude Code and Codex CLI and reports context siz
Cornerman
A free, open-source plugin for Claude Code. Before you /clear, Claude writes a short handover you can read and
Cost Lens
Claude Code mod: see where tokens and dollars go, catch cold-cache rebuilds, pick cheaper models.
Herdr Auto Warm Cache
A herdr plugin that keeps an idle agent's prompt cache warm before the one-hour TTL expires — 20x cheaper than
Cache Tax
Keep Claude Code’s prompt cache warm during breaks and show the estimated cost before a cold send.
Related Agents
Cad Resume
Rebuilds the state of interrupted work from GitHub and the local and remote checkouts after a session ended (t
Cost Estimator
Estimates Cloudflare Workers costs before deploying. Reads wrangler.toml, counts D1 tables/rows, estimates KV/
Visor Perf
Measures the CPU and memory cost of a Visor change with scripts/perf.sh (before vs after, optional sample of h