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

How to keep Claude Code's cache warm during a break with Cache Tax

Arm a timed keepwarm window before stepping away so the next message does not pay a full cache rewrite.

Short answer: Run claude plugin marketplace add karanb192/claude-code-mods in a terminal; then run claude plugin install cache-tax@claude-code-mods, then restart Claude Code or run /reload-plugins in 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. All steps.

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

  1. Run claude plugin marketplace add karanb192/claude-code-mods in a terminal.
  2. Run claude plugin install cache-tax@claude-code-mods, then restart Claude Code or run /reload-plugins in an open session.
  3. If you use API-key, usage-credit or cloud-provider billing, set promptCacheTtl to "1h" so the main cache lasts an hour.
  4. In a warm session, run /keepwarm 90m before your break, or /keepwarm for the six-hour default.
  5. On return, run /keepwarm status to 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

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