From cache-tax
A Claude Code mod that keeps the one-hour prompt cache warm during breaks and asks before a cold send, showing its estimated rewrite cost. Warming uses model requests and costs tokens. Requires Claude Code 2.1.287+.
11 events · 20 calls
Ships in cache-tax. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
env.getmodel.forkprompt.submitengine.createEach event it registers a hook on, with the matcher when it sets one
engine.createconfig.set{key=theme}ui.render{component=AbovePrompt}session.startsession.endclassic.SessionStartcommand.run{command=keepwarm}command.run{command=cache-tax}prompt.submitturn.stepturn.completesession.compactEvery mods API method its source calls, by namespace
aftereverynowlistregisterlistgetforkidmodelusageversiondeletegetsetaskinvalidatelogresolvestatusNO_COLORWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.ts (written ./register.ts)Read from the source, never run. Claude Code checks a mod again when it loads it and can refuse code this reading accepts; claude plugin validate shows its own list.
cache-tax@claude-code-mods is listed by karanb192/claude-code-mods — review the source before installing
npx claudepluginhub karanb192/claude-code-mods --plugin cache-tax