cache-maxxer

Reviewed at commit b33cdd6

Shows the prompt cache's countdown and hit rate above the input box, explains every cache break and cache expiry, and can keep the cache warm to cut Claude…

Made by
Soham Patankar
What we checked

Shows the prompt cache's countdown and hit rate above the input box and explains each time the cache was rebuilt or expired. An optional keep-warm switch (off by default) sends a one-word request on your own Claude Code account shortly before the cache lapses, which uses a few tokens. Once a day it reads Anthropic's public pricing page to update its price table; no conversation data is sent.

Review details

Static review of the source at the pinned commit; not run. Registers session.start (registers /cache-maxxer, seeds settings from $.store, starts the price refresh and ticker), classic.SessionStart (clear, resume, fork), session.end, session.compact, classic.PostModelSwitch, turn.start, turn.complete, turn.step (passes the stream through and only reads token usage), ui.render for AbovePrompt (terminal and desktop bands) and command.run for /cache-maxxer (more, less, hide, show, warm, keep on|off). Keep warm, when on, calls $.model.fork with a fixed prompt asking for one word, before the cache expires, only while no turn runs and until the idle cap (default 3h) passes; this reuses the conversation as context on the user's own account and uses tokens. The band also offers Warm now and Compact ($.session.compact) buttons that the user presses. Programs: /usr/bin/find under CLAUDE_CONFIG_DIR/projects (or ~/.claude/projects) to locate the session transcript, /usr/bin/tail -c 262144 on it to read the cache lifetime, and /bin/mkdir and /bin/rmdir for a daily claim folder in CLAUDE_CONFIG_DIR/cache-maxxer (the only files it creates). The price refresh does one $.http.fetch GET of https://platform.claude.com/docs/en/about-claude/pricing.md at most once a day (setting live_prices, default on), sends no user data, validates the parsed table before use and falls back to the built-in prices on any failure. $.store keeps keep warm, expanded, hidden and the price table. No eval, no dynamic code, no other network calls. Pricing figures are estimates. The transcript is only parsed for cache write fields. No npm dependencies. CODE_OF_CONDUCT.md and SECURITY.md are not loaded by code and were not read.

What it uses
  • Reads your prompts: no
  • Sees tool calls: no
  • Blocks or changes tool calls: no
  • Reads or writes files: yes
  • Runs programs on your machine: yes
  • Calls the model (uses tokens): yes
  • Sends data over the network: yes
  • Stores data: yes
  • Shows something on screen: yes
Hooked events
Screenshot of cache-maxxer

Shows the prompt cache's countdown and hit rate above the input box, explains every cache break and cache expiry, and can keep the cache warm to cut Claude Code cost

Made this mod? Add a badge to your README

modsforClaude badge for cache-maxxer

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/cache-maxxer.svg)](https://modsforclaude.com/mods/cache-maxxer/)

← All mods