Who it is forA developer deep in a large Claude Code session who needs to step away for a meeting, lunch or a short break and return to the same context.
The problemWhen the prompt cache expires, even a short message can trigger a rewrite of the old context, which costs tokens on the next send.
The outcomeThe session stays warm for the chosen window, and the user knows the next ping time and the last receipt when they return.
What you need first
- Claude Code 2.1.287 or later
- A one-hour cache (included subscription usage defaults to one hour; API-key, usage-credit and cloud-provider sessions default to five minutes and need promptCacheTtl set to "1h")
- Claude Code left running during the break
Steps
- Run
claude plugin marketplace add karanb192/claude-code-modsin a terminal. - Run
claude plugin install cache-tax@claude-code-mods, then restart Claude Code or run/reload-pluginsin an open session. - If you use API-key, usage-credit or cloud-provider billing, set promptCacheTtl to "1h" so the main cache lasts an hour.
- In a warm session, run
/keepwarm 90mbefore your break, or/keepwarmfor the six-hour default. - On return, run
/keepwarm statusto see the warming window, next ping and last receipt.
Prompt for your agent
In the karanb192/cache-tax repo, install the cache-tax plugin, then in a warm Claude Code session run /keepwarm 90m. Report the output of /keepwarm status, including the warming window and next ping time. Verify that the window shown matches the 90 minutes you requested.
Caveat. Pings cost tokens, and the mod reads every prompt you type, so choose a window you expect to return within.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for karanb192/cache-tax and "Keep Claude Code's cache warm during a break"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer