JarvusInnovations

Claude Rewarm Guard — Development skill for Claude Code

Development community

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