Who it is forA developer who runs several long Claude Code sessions over a workday and does not want to arm keepwarm in each one.
The problemSetting keepwarm by hand in every session is easy to forget, and an unwarmed session costs a full rewrite on the next message after a break.
The outcomeEach session that reaches the cache keeps a warm window of at least six hours from its last turn, and the setting persists across sessions.
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
- Install the plugin and confirm the cache lifetime setting as described in the first use case.
- In a warm session, run
/keepwarm alwaysto keep every session warm until six hours after its last turn. - Run
/keepwarm statusin a session to confirm the window and next ping. - When you no longer want warming, run
/keepwarm off, which stops every session from its next turn and turns always off.
Prompt for your agent
In the karanb192/cache-tax repo, with the plugin installed, run /keepwarm always in a Claude Code session and then /keepwarm status. Report the warming window and next ping. Verify that the window reaches at least six hours after the last turn.
Caveat. Always mode keeps pinging across sessions, so it spends tokens even on sessions you no longer use, and the README says pings cost tokens including uncapped output.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for karanb192/cache-tax and "Keep every session warm with always mode"
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