Skill Development

tokendoctor

A Claude Code plugin that reads your sessions, shows where tokens go and suggests settings changes you can undo.

  • 44 GitHub stars
  • ⚖️ MIT

Last verified: write-up checked

claude plugin marketplace add rsaryev/tokendoctor
tokendoctor — skill preview

What it is

Tokendoctor answers a plain question: where did my Claude Code tokens go? It reads your session history, shows the spending and proposes settings changes, with an undo command if a change makes things worse. The honest detail is in the benchmarks. The headline says up to 38% less, but on a week of test work the medians were 11 to 21% lower and single runs went from 40% lower to 17% higher, so the result depends on the task. Treat it as a tool for measuring your own usage rather than a promised saving. It has limits you should know about: it cannot see managed settings, and its deny rules are best-effort for search tools. The MIT repo is small, with 44 stars on November 6, 2026.

Who it's for

  • Claude Code users who keep hitting usage limits
  • Developers paying per token who want to find waste
  • Anyone curious what their sessions actually spend tokens on

Requirements

Requirements

  • Claude Code
  • Session history on your machine to analyse

Setup

  1. Step 1

    bash
    claude plugin marketplace add rsaryev/tokendoctor
  2. Step 2

    bash
    claude plugin install tokendoctor@tokendoctor

إضافة لـ Claude Code تقرأ جلساتك وتبيّن أين تذهب الرموز وتقترح تغييرات في الإعدادات يمكن التراجع عنها.

Examples

Audit your setup

Prompt
prompt
/tokendoctor:audit

Expected output: Checks your setup for token waste.

Open the dashboard

Prompt
prompt
/tokendoctor:dashboard [days]

Expected output: Shows spending over a chosen number of days.

Apply optimizations

Prompt
prompt
/tokendoctor:optimize [focus]

Expected output: Proposes changes, optionally for one focus area.

Pros & cons

Pros

  • Pro:Changes can be undone
  • Pro:Publishes mixed benchmark results instead of only the best one
  • Pro:MIT licence

Cons

  • Con:The up to 38% saving is the author's own measure
  • Con:Single benchmark runs range from 40% lower to 17% higher cost
  • Con:Cannot see managed settings, and deny rules are best-effort for search tools