What do you want to do?
3 use cases
-
Keep Claude Code's cache warm during a break
Arm a timed keepwarm window before stepping away so the next message does not pay a full cache rewrite.
- Cache Tax
- Claude Code
- Software and DevOps
- Intermediate
View prompt
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.
-
See the rewrite price before a cold send
Get a warning with the estimated cost when a message would rewrite an expired cache, then choose to resend or start fresh.
- Cache Tax
- Claude Code
- Software and DevOps
- Intermediate
View prompt
In the karanb192/cache-tax repo, with the cache-tax plugin installed, run /cache-tax in a resumed Claude Code session. Report the cache estimate and cold-write tally, and state whether the guard is set to warn or refuse. Verify that the guard mode matches the value you set with /cache-tax guard.
-
Keep every session warm with always mode
Turn on always mode so each turn leaves at least six hours of warm window across sessions.
- Cache Tax
- Claude Code
- Software and DevOps
- Advanced
View prompt
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.
How to use Cache Tax
- Check you have what it needs: 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.
- Open karanb192/cache-tax on GitHub and read the README and license.
- 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.
These steps come from our top use case, Keep Claude Code's cache warm during a break, which also has a copy-paste agent prompt.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeCache Tax alternatives · Best AI repos for Software and DevOps
About this repo
- Who it is forDevelopers who use Claude Code in long sessions and want to avoid paying to rewrite a large cached context after a break.
- Why it is hot
- LanguageTypeScript
- Sourcegithub.com/karanb192/cache-tax · Back to Hot repos
Requirements
- 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
Maintain Cache Tax? Add the Featured on Deduped badge
Paste this into your README:
[](https://dedupedai.com/use-cases/karanb192-cache-tax/?ref=badge)
Questions about Cache Tax
What is Cache Tax?
Cache Tax is a Claude Code mod that keeps the prompt cache warm during breaks and shows the estimated rewrite cost before a cold send. It is an open-source project on GitHub: https://github.com/karanb192/cache-tax.
Who is Cache Tax for?
Developers who use Claude Code in long sessions and want to avoid paying to rewrite a large cached context after a break.
What can I do with Cache Tax?
3 use cases so far, for example: Keep Claude Code's cache warm during a break; See the rewrite price before a cold send; Keep every session warm with always mode. Each has steps and a copy-paste agent prompt.
What do I need to run Cache Tax?
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.
What are alternatives to Cache Tax?
Other hot AI repos in Software and DevOps: Harness2, iFixAi, Orca, Diagram Design, AI Memory.
Is Cache Tax safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.