ClaudeCodeMod

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.

In Claude Code
/plugin install tokensaver --marketplace AGregDev/claude-tokensaver
Open the repo

It 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

The author's drawing of Clawd's pane, made by the mod's own renderer over sample figures: Clawd says 31.2k tokens eaten so far, about 412.0k re-sends avoided; a context meter at 42%, 84.0k of 200.0k, with a hatched 23.0k Clawd kept out and marks at 50, 70, and 85%; and tiles for noise eaten, re-sends avoided, 138.0k freed by compacting, and 13.1k routing and delegation.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • session.attachA Claude Code event
  • ui.closeWhen its pane closes
  • command.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:trim
  • prompt.submitWhen you send a prompt
  • session.appendWhen an entry is written to the transcript
  • session.compactWhen the context is compacted
  • agent.spawnWhen a subagent starts
  • tool.callAround a tool call, where it can hold oneAgent
  • turn.stepAt each step of a turn
  • turn.completeWhen a turn ends
  • session.measureWhen usage is measured
  • ui.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
Repo
AGregDev/claude-tokensaver
Version
0.4.0
License
MIT
Repo stars
3
Last change
2026-10-27
Language
TypeScript
Files
75

Other mods in Usage

colorwheelAlexeyHRDesignDraws a band in the desktop app with your 5-hour and 7-day limits on its edges and the context as weather, and redraws replies with full-width diagrams.model-pickeralfredtmDraws a band above the prompt when a session opens that lists the models by digit, and runs /model for the one you press; 0 keeps the current one.context-meterAndrewDongminYooDraws the measured context fill above the prompt past 50%, and skips an auto-compact set off when an advisor request makes the session read twice as full.effort-cycleAnercoSteps the effort level of the agent in view with Ctrl+↑ and Ctrl+↓, and draws it as a colored meter in the footer and in each subagent's tasks list row.dotclaudeCarloArnoneHolds a commandOpens a Workspace pane of live context, rate-limit, and cost traces with ten panels, and refuses Claude's file edits until your message approves.dashbandEgonLeitnerDraws how long the prompt cache has left, the context fill, and the 5-hour and weekly limits against their pace, in the footer and as a band above the prompt.codemodeejklockGives Claude one tool that runs a JavaScript script calling the session's own tools, so only the output returns, and draws its nested calls live in the row.sidebarFayequePDocks a stats sidebar beside the chat: tasks, context, tokens, the limits or cost a session used, cache hit rate and expiry, output speed, and git.subagent-statusline-desktopGerardoFC8Draws the subagent statusline as a band above the prompt in the desktop app: model, effort, cost, context, running subagents, and the 5-hour and weekly limits.pulselineGregoryHoDraws a band above the prompt when a tool fails three times in a row, a call runs past a minute, or autocompact is a few turns off; /pulseline opens a ledger.session-radaribrahimkobeissyDocks a sidebar of limits, context, subagents, MCP servers, skills, background shells, and the task list, with a toast when a shell or agent ends.token-speedliuyejinghongDraws a line above the prompt for the main agent and each running subagent: model, effort, context fill, and the last and 24-hour output speed from Magpie.
All 183 in Usage