DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to keep a long chat's cache warm while you step away with CTX Handoff Mod

Send small keep-alive requests during idle time, then resume the saved handoff or the same chat on return.

Short answer: Run claude plugin install ctx-handoff@ctx-handoff-mod if it is not installed yet; then type /handoff in the session to confirm that cache refresh is on; Before leaving a conversation you do not want refreshed, run /handoff away pause. All steps.

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

  1. Run claude plugin install ctx-handoff@ctx-handoff-mod if it is not installed yet
  2. Type /handoff in the session to confirm that cache refresh is on
  3. Before leaving a conversation you do not want refreshed, run /handoff away pause
  4. On return, run /handoff resume to start fresh from the saved summary, or type continue to stay where you were
  5. Run /handoff resume again later and restart the timer with resume if 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer