All shelves / Mods / Usage
tokensaver
By AGregDev
tokensaver is a Claude Code usage mod by AGregDev.
Puts Clawd in a pane and a band above the prompt, trims noisy shell output before Claude reads it, warns as the context fills, and routes subagents by tier.
Draws
Install
The marketplace name is claude-tokensaver.
/plugin install tokensaver --marketplace AGregDev/claude-tokensaverIt runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.4.0
- License
- MIT
- Repo stars
- 3
- Last change
- 2026-10-27
What it can reach
- Draws in the session
- Reads usage or context figures
- Sees tool calls
Claude Code v2.1.299 or later. Answer y to add the marketplace and pick a scope; the mod is active at once. From a shell: claude plugin install tokensaver --marketplace AGregDev/claude-tokensaver. In the desktop app, add the marketplace AGregDev/claude-tokensaver under + next to the prompt box, then Plugins. It works in the terminal, the desktop app's Code tab, VS Code, and Cursor, where quiet mode is on by default. Only Bash and PowerShell output is trimmed; file reads, searches, and errors never are. Clawd speaks up as the context crosses 70% and 85%, and auto-compact stays off until you set autoCompactAt. The cold-cache warning goes by the clock, 5 minutes unless you set cacheTtlMinutes. When handing the reading to a subagent would cost less, it adds one line to your prompt saying so; turn off contextHint to stop it. The first subagent of each type in a session is never rerouted. The savings figures are estimates at about 4 characters a token.
The marketplace, claude-tokensaver, holds only this plugin. Spending fewer tokens is why this page files it under usage. output-diet, by VedantAndhale, trims what Claude reads from a long shell, search, or subagent result and counts the savings on the status line. switchboard, by hamzafer, picks the model for each subagent that names none and draws each pick above the prompt. This one does both from rules, with no model call: it strips colour codes, progress bars, and repeated lines before the output is stored, scores each subagent's task to pick Haiku, Sonnet, or Opus, and retries one tier up when a result fails its checks. Risky or production-touching work always gets the top tier. Clawd's mood follows the session, and the pane shows a context meter and four savings tiles. The author says the mod makes no network call.
Demo
What it hooks into
session.startWhen a session startssession.attachA Claude Code eventui.closeWhen its pane closescommand.runWhen you run its slash command/tokensaver/tokensaver:status/tokensaver:dashboard/tokensaver:doctor/tokensaver:on/tokensaver:off/tokensaver:dry-run/tokensaver:help/tokensaver:compact/tokensaver:trimprompt.submitWhen you send a promptsession.appendWhen an entry is written to the transcriptsession.compactWhen the context is compactedagent.spawnWhen a subagent startstool.callAround a tool call, where it can hold oneAgentturn.stepAt each step of a turnturn.completeWhen a turn endssession.measureWhen usage is measuredui.renderDraws into the sessionAbovePromptSpinnerToolUsePane
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/tokensaverClawd, your token saver: status, compact, trim, on/off, dashboard, doctor
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- AGregDev
- Category
- Usage
- Marketplace
- claude-tokensaver
- Version
- 0.4.0
- License
- MIT
- Repo stars
- 3
- Last change
- 2026-10-27
- Language
- TypeScript
- Files
- 75