Skip to content

cache-tax 2.3.1

Latest

Choose a tag to compare

@karanb192 karanb192 released this 22 Oct 05:45
e4940af

On Team and Enterprise accounts, Claude Code's built-in security plugin takes the classic.SessionStart event first and passes it on beneath Cache Tax, so Cache Tax never saw a /clear, a resume or a session start. 2.3.1 no longer depends on that event.

Update an existing install with claude plugin update cache-tax@claude-code-mods, then restart Claude Code.

What works again on those accounts

  • /clear stops the window and resets the guard for the new conversation.
  • A resumed session gets the cold warning before its first send, priced with that session's own model and context.
  • always, and a window restored after a restart, arm at session start.
  • A window carried into a resumed conversation moves to the new session, so /keepwarm off stops it.

Also, on every account

  • Rewinding a few messages is no longer read as a compaction.
  • The summary a compaction writes is never counted as a cold write, and never arms keepwarm.
  • After an in-process resume, the guard prices with the new conversation's model.

Known limit

When the security plugin hides a compaction, a ping or send before the next request still sees the old context size. The README's Limits section has the details.

Reported with a debug log by @QuentinSuckling in #31. 160 tests, up from 137.