cache-warmer 插件:让 Claude Code 休息后不必重写整个缓存
原文标题:Made a plugin so Claude Code doesn't rewrite the whole cache after you take a break
作者发布 cache-warmer 插件,解决离开 Claude Code 超过 5 分钟后下一条提示词要按全价重写 prompt cache、长会话成本累积且首次回复变慢的问题。
If you step away from Claude Code for more than 5 minutes, your next prompt pays full price to rewrite the prompt cache. On a long session that adds up, and the first reply after a break is slower too.
cache-warmer fixes that. Right before the cache expires it sends one tiny refresh, so when you come back your prompt reads the cache instead. It only refreshes when it actually saves money, it caps how many times it does it while you're idle, and the refresh never shows up in your conversation. No telemetry.
Idea comes from the cache warmer in Pi. Clawd pops up above the prompt when it refreshes, which I'm weirdly happy about.
claude plugin marketplace add paulbkim-dev/claude-code-cache-warmer claude plugin install cache-warmer@claude-code-cache-warmer
Repo: https://github.com/paulbkim-dev/claude-code-cache-warmer
Write-up: https://blog.paulbkim.dev/cache-warmer/
Feedback welcome.
来源:Reddit · ClaudeCode / Codex / VibeCoding · reddit.com