Who it is forA developer who leaves a large Claude Code conversation for an hour or more and dreads the full-price reread on return.
The problemAfter an idle break, the next message rereads the whole conversation at full price because the cache has expired.
The outcomeThe cache is kept warm for up to about 4 hours, and on return you choose to start fresh from the saved summary or stay where you were.
What you need first
- Claude Code 2.1.287 or later (the README says it is tested up to 2.1.302)
- A Claude subscription sign-in, or an API key, Bedrock or Vertex setup with the cache refresh turned off
- Access to the Claude Code plugin commands in a terminal
Steps
- Run
claude plugin install ctx-handoff@ctx-handoff-modif it is not installed yet - Type
/handoffin the session to confirm that cache refresh is on - Before leaving a conversation you do not want refreshed, run
/handoff away pause - On return, run
/handoff resumeto start fresh from the saved summary, or typecontinueto stay where you were - Run
/handoff resumeagain later and restart the timer withresumeif you paused it
Prompt for your agent
In Claude Code with ctx-handoff-mod installed, check the cache refresh status for <conversation> using `/handoff`. Expected output: a line reporting how many refreshes were used this idle period. Verify the status line before stepping away.
Caveat. On an API key, Bedrock or Vertex the cache lasts only 5 minutes, so the README says to run `/handoff refresh off` in those setups.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for cablate/ctx-handoff-mod and "Keep a long chat's cache warm while you step away"
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