ClaudeCodeMod

All shelves / Mods / Usage

tokendoctor

By rsaryev

tokendoctor is a Claude Code usage mod by rsaryev.

Shows where your Claude Code tokens went, audits your settings with 33 checks, and changes a setting only after a dialog shows the change and you press Apply.

Draws

Install

The marketplace name is tokendoctor.

In your shell
claude plugin marketplace add rsaryev/tokendoctor
claude plugin install tokendoctor@tokendoctor
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.5.0
License
MIT
Repo stars
11
Last change
2026-10-26

What it can reach

  • Draws in the session
  • Reads usage or context figures

Updates are claude plugin marketplace update tokendoctor, then claude plugin update tokendoctor@tokendoctor, then a restart of Claude Code. To try it without installing, clone the repository and run claude --plugin-dir with its path. /tokendoctor:sessions and /tokendoctor:audit only read; /tokendoctor:optimize and /tokendoctor:apply change a setting. With no one to answer the dialog, as in a -p run, nothing changes, and hooks and permissions are never on the list. It reads user, project, and local settings, the MCP server names in ~/.claude.json, and your skill and agent folders, and cannot see managed settings. Reports speak in shares of cost, not dollars. A command hook appends each finished day's totals to ~/.claude/tokendoctor/history.jsonl. The status line fix needs jq.

The marketplace name is tokendoctor, and it lists this one plugin, from the repository. Where tokens go, and settings that waste them, are why this page files it under usage. leaks ranks the avoidable spend in the last 7 days of transcripts and draws a strip while a leak is happening. context-budget draws the session's context by category and asks before a settings file is written. This one is a doctor's visit rather than a gauge: a report of where tokens went, 33 checks of your settings against Claude Code's documentation, each linked to its page, and up to five proposed changes backed by your own numbers. Each change is shown in a dialog first, and a file it changes is backed up. The hooks module adds the optimize tools, listed behind ToolSearch until /tokendoctor:optimize loads them.

Demo

From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • tool.checkA Claude Code event
  • tool.callAround a tool call, where it can hold one

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Hooks 1

  • SessionStart · startupnode

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
rsaryev
Category
Usage
Marketplace
tokendoctor
Repo
rsaryev/tokendoctor
Version
0.5.0
License
MIT
Repo stars
11
Last change
2026-10-26
Language
JavaScript
Files
97

Other mods in Usage

catnapLippIncHas Claude compact at a clean break: from 50% of the context it asks Claude to finish the piece it is on, write a handoff, and compact, then carry on by itself.pitwallaxlaserDraws live cost, cache, and limits above the prompt and in a side panel, with a card per subagent you can stop, and fourteen themes that repaint Claude Code.jev-routerdominicricoAsks TypeSafe's Jev which Claude model and effort fit each prompt, step, and subagent, runs it there, and draws every pick in a band above the prompt.usage-statsomeerdvrnOpens a /usage-stats pane of this machine's Claude Code tokens over 7 days, 30 days, or all time, by day, project, and model, with Linear issues closed.claujev-modCivalskiHolds a commandDraws a status line of the checks and actions TypeSafe's Jev made today for the ClauJev plugin, with the effort Jev suggests, and can apply that effort.jev-orchestratorhiyokuSends each subagent's task to TypeSafe's Jev, which picks its model, effort, and tool profile, and draws the picks, tokens, and cost on the status line.vitalsnaicudDraws a framed live dashboard above the prompt: model, effort, context, plan limits with a forecast, cost, tokens and cache, subagents, shells, and tools.dispatch-gatewdsewdser-bitHolds a commandRefuses one tool call once the main session has made 8 requests in a row itself, and a subagent past 3 an hour, so Claude hands work out. A retry goes through.usage-baromeerdvrnDraws your 5-hour and 7-day plan limits under the prompt, used or left, with the git branch and file counts, the model, context, and the session's cost.limitsRyan-LTDraws a band above the prompt with the 5-hour and weekly limits, a pace warning, and context fill, and toasts at 75%, 90%, and 100%.context-guardmelodic-softwareShows a toast when the session's context crosses into a worse zone, smart, acceptable, or dumb, and can draw the zone and percent in a row above the prompt.rate-limit-guardmelodic-softwareShows a toast when the account's 5-hour or 7-day rate-limit window reaches 90% or 95% and when it resets, and can draw both windows in a row above the prompt.
All 183 in Usage