← ClaudeAtlas

token-doctorlisted

Personal diagnosis of where your Claude Code + Cowork spend goes. Reads local transcripts, prints your conversation length distribution, marathon share, cache rebuild costs, and per-project diagnosis (good projects and problem projects) right in the terminal. Then offers a deeper dive that fans out parallel Haiku subagents over your most expensive (and most efficient) sessions and writes a tight Markdown report. Use when the user asks "why is my Claude spend so high", "where am I burning tokens", "diagnose my Claude habits", "audit my Claude usage", or asks for a personal token-cost diagnosis.
techwolf-ai/ai-first-toolkit · ★ 82 · Data & Documents · score 85
Install: claude install-skill techwolf-ai/ai-first-toolkit
# Token Doctor > **Platforms: Claude Code / Cowork and Codex.** `scripts/inventory.py` detects the host (via the `platform` stamp `install.sh` writes, or `AI_FIRST_PLATFORM`) and routes: Claude Code (`~/.claude/projects`) + Cowork transcripts, or Codex rollouts (`~/.codex/sessions`). Codex token usage comes from Codex's own per-response `token_count` events; cost uses OpenAI list rates in `pricing.py` (gpt-5.4 family; unknown models show token counts with no fabricated cost). **Antigravity** is unsupported: its IDE store is AEAD-encrypted at rest and its CLI store has no parseable turn/token content, so the skill prints a clear "not available" message and exits. Two-stage diagnostic. Stage 1 is fast and lands directly in the terminal so the user always walks away with their numbers. Stage 2 is opt-in, fans out subagents over hotspots, and writes a tight Markdown report. **Read this whole file before running.** ## When to run Trigger phrases: "diagnose my Claude habits", "why am I spending so much", "where are my tokens going", "audit my spend", "token doctor", "what's driving my Claude bill". Do NOT trigger for: - "what tasks do I do with Claude" → that's `task-profile`. - "where did I work on X" → that's `session-search`. The line is: token-doctor is about cost **shape**, not task inventory or recall. ## Prerequisites - Claude Code CLI transcripts: `~/.claude/projects/*/*.jsonl` - Claude Cowork transcripts (optional): `~/Library/Application Support/Claude/local-agen