Cache Keepalive — Development skill for Claude Code
Keeps an idle Claude Code session's prompt cache warm, so the session you come back to does not start cold.
How to install Cache Keepalive
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open federbenjamin/cache-keepalive and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Cache Keepalive does
Keeps an idle Claude Code session's prompt cache warm, so the session you come back to does not start cold.
Alternatives in Development
- Epic Publish — Publish a validated epic update back to the issue and local cache 243.5k ★
- Setup Context — Set up your Skill Memory — a pm-context.md every skill reads so outputs come back tailored to you 1.3k ★
- Arstart — AgentRecall session opener — status board (no args), project loader ( ), or cold-start bootstrap 370 ★
README
cache-keepalive
Keeps an idle Claude Code session's prompt cache warm, so the session you come back to does not start cold
A [Claude Code](https://docs.anthropic.com/en/docs/claude-code) plugin for people who leave a long session open, step away, and come back to it. Claude Code caches the conversation's prompt for an hour (five minutes on some plans). Once that cache expires, your next message rebuilds the whole conversation: slower, and it costs more usage. This plugin sends a short ping two minutes before the cache would expire, so the cache stays warm while you are away.
Install
Needs Claude Code; tested on 2.1.295.
claude plugin install cache-keepalive --marketplace federbenjamin/cache-keepalive
It starts in the next interactive session. There is nothing to configure.
Features
- Pings only while you are away. A ping goes out only when the session is idle and the cache is between two minutes and fifteen seconds from expiring. Each ping is
keepalive ping. Reply only: ok. - Capped per model. At most 12 pings in a row on Opus and Fable, 6 on Sonnet, Haiku and any other model. On the 1-hour cache, that keeps an Opus session warm for about 12 hours.
- Ends on a handoff. The last ping asks the agent to write a handoff while the cache is still warm, so a fresh session can pick up from it.
- Resets on your own prompt. Anything you type starts the count again.
- Stops when pinging cannot help. Two pings in a row that find the cache already cold stop the pings until you are back. So does a change of the logged-in account, since the cache belongs to the account.
- Shows what it does. The status line reads
keepalive 3/12while it pings, and says why when it stops.
Usage
Nothing to run: it works in every interactive session once installed.
Related Skills
Claude Prompt Cache Keepalive
Agent skill for Claude Code: keep the 1-hour prompt cache warm while you are away, with a ladder of background
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
Cc Cache Keepalive
Keep the most recently used Claude Code prompt cache warm without polluting the original session.
Claude Statusline Plus
Claude Code status line segments: whether your prompt cache is still warm and what a cold start costs, and whe
Cache Tax
Keep Claude Code’s prompt cache warm during breaks and show the estimated cost before a cold send.
Ctx Handoff Mod
Claude Code mod: auto handoff to a fresh conversation when context hits a threshold, keeps the prompt cache wa
Related Agents
Worker Apply Opus
Resumable implementation worker for non-SDD work units. Applies multi-file changes from a handoff, absorbs fol
Backup Disaster Recovery Engineer
Guarantee the organisation can come back from data loss, ransomware, or site failure. Invoke for itops-team wo
Relationship Mapper
Finds the warm path to an owner before anybody goes cold — direct and second-degree connections from the firm'