Tokenscope — AI skill for Claude Code
Find the money your AI coding agent wasted: cache rebuilds, loops, re-reads and giant tool outputs, with fixes, plus a flame graph of token spend.
How to install Tokenscope
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ranjan-mohanty/tokenscope and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Tokenscope does
Find the money your AI coding agent wasted: cache rebuilds, loops, re-reads and giant tool outputs, with fixes, plus a flame graph of token spend. Claude Code, Codex, Gemini CLI, OpenCode, Cline, Roo, Copilot CLI and more. Zero dependencies, 100% local.
Alternatives in AI
- AI Marketing Skills — The marketing fundamentals that make AI actually make you money, written in my own voice, as a ready-to-instal 226 ★
- Waldzell MCP — Waldzell AI's monorepo of MCP servers 202 ★
- AI Toolkit — Professional-grade AI coding toolkit: 94 skills, 44 agents, multi-platform (Claude, Cursor, Windsurf, Copilot 167 ★
README
tokenscope
**Your AI coding agent wasted money last month. tokenscope shows exactly where.**
*ccusage tells you what you spent. tokenscope tells you what you wasted.*
`npx tokenscope`
Zero dependencies · runs 100% locally · Claude Code, Codex, Gemini CLI, OpenCode, Cline, Roo, Copilot CLI and more · MIT
[](https://github.com/ranjan-mohanty/tokenscope/actions/workflows/ci.yml) [](https://www.npmjs.com/package/tokenscope) [](https://www.npmjs.com/package/tokenscope) [](package.json) [](LICENSE) [](https://github.com/ranjan-mohanty/tokenscope/stargazers)

Recorded from the real CLI on synthetic logs (`npm run demo:gif`).
You know the bill. You don't know which part was **wasted**:
- your prompt cache expiring every time you spend 10 minutes reading the agent's answer, so a 500k-token context is re-written at cache-write price instead of read at cache-read price
- the agent running
npm testfive times in a row and getting the same failure back every time - the same 2,000-line file read 40 times without anyone editing it
- a 60k-token log
cat-ed into context, then paid for again on every later request
tokenscope reads the session logs your agents already keep on disk, finds these patterns, estimates what each one cost, and tells you how to stop it. Then it shows the full spend as a flame graph, so you can
Related Skills
Design Slop Skill
Claude Code skill that detects and fixes AI-slop web design: giant border-radius, glassmorphism, glowing borde
Tokenstretch
Free, open-source toolkit that cuts wasted AI coding credits. Checks your Claude Code, Codex, Gemini and Copil
ToolTax
Find wasted tokens, slow tools, duplicate calls, and expensive MCP servers in AI agent workflows.
Gald3r
AI dev framework: 22 agents, 100 core skills + 142 addon skill packs, 149 commands. Runs on 21 AI tools: Curso
FreeAI Gateway
Free LLM API keys in 60s — one OpenAI/Anthropic-compatible endpoint for Claude Code, Cline, Roo Code, Cherry S
AI Usage Inspector
Records every AI coding-agent prompt — tokens, model, context %, and cost — from Claude Code, Codex, Cursor, O
Related Agents
Google Ads Manager
Runs Google Ads work end to end - audits, wasted spend, search terms, keywords, bids, budgets, structure, and
Budget Optimizer
Finds wasted spend and winners across platforms, then reallocates budget by ROAS, tunes bids, and kills losers
Clawmem Curator
Maintains ClawMem memory health — lifecycle triage (pin/snooze/forget), retrieval health checks, dedup sweeps,