/tokendoctor:sessionsfrom tokendoctor
Measures token spend from local Claude Code session transcripts over a given number of days. Analyzes cost shares, context usage, and tool-level breakdowns to recommend settings that reduce spending.
Ships in tokendoctor. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Measure token spend from this machine's session transcripts over the last $ARGUMENTS days (30 if
none given).
tokendoctor-sessions --json --days <n> and tokendoctor-replay --json --days <n>. Both
are read-only and read only usage figures, timestamps, tool names and file paths from the
transcripts, never message text.late-compaction to autoCompactWindow,
subagents-on-top-model to CLAUDE_CODE_SUBAGENT_MODEL and the Explore override. Offer
/tokendoctor:audit to check and fix them. Never edit files from this skill.usage and draw your own conclusions from it: which tools fill the context (calls and
characters of output, main thread and subagents apart), Bash calls that only printed a file
(fileReads) or slept in a loop (waits), the files read most often, and how large subagent
runs grow (requests, how many passed 200K context). Recommend what would cut the spend you see,
in plain words with the number behind it. A recommendation is either a setting or an instruction:
/tokendoctor <name> <value> line, which applies it as typed
(/tokendoctor alone lists them). Among them: bash-output <n> caps what one Bash call puts
in context, slide on, window <n>, subagents <model>;CLAUDE.md).
Offer /tokendoctor:optimize to apply several at once: it shows each change and applies only
what the person approves. Leave choices the person made on purpose (in memory or settings) to
them, with what they cost.tokendoctor-sessions --by day (or
--by week, with --days <n>) and compare the periods before and after. Days older than the
transcripts come from the history the plugin's SessionStart hook records.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub localixai/plugins --plugin tokendoctor5 skills in this plugin
/applyApply one tokendoctor audit fix after showing the exact change. Moved to /tokendoctor fix <id>, which needs no model call./auditAudit this Claude Code setup for settings that waste tokens or silently do nothing./dashboardBuild and open a local dashboard of where your Claude Code tokens went, from every transcript on this machine./optimizeLook at token metrics, propose setting changes that cut waste, and apply the ones the person approves.Other plugins' skills for the same job