Analysis updated 2026-07-25
Find which projects waste the most tokens in Claude Code sessions.
Get a Context Score for each project showing cache, errors, and repeated reads.
Generate a CODEMAP.md file so your AI agent can navigate code without opening full files.
Spot unused MCP servers and error loops that quietly burn through your token budget.
| avivavi/tokenscope | agentigris/agentfund | alange/tinyclaude | |
|---|---|---|---|
| Stars | 5 | 5 | 5 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | easy | hard | moderate |
| Complexity | 2/5 | 5/5 | 3/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires Node 18 or higher but has no other dependencies, run instantly with npx.
TokenScope is a tool for people using Claude Code who want to understand where their token budget actually goes. Claude Code is an AI coding assistant, and every time you interact with it, the conversation consumes tokens, which cost money. Claude Code already saves records of these sessions to your disk as JSON files. TokenScope reads those files and gives you a clear picture of what happened, rather than trying to predict what a task might cost in advance. The tool runs locally on your machine with no dependencies, requiring only Node version 18 or higher. You can run it without installing anything by using the npx command. It gives you an overview of all your projects, flags the biggest sources of wasted tokens, and can break down individual sessions for a specific project. It also generates a file called CODEMAP.md, which is a lightweight map of your repository that an AI agent can read instead of opening entire files. A central feature is the Context Score, a zero to one hundred grade for each project based on five measured signals. These include cache efficiency, error rate, repeated file reads, and other forms of waste. Importantly, spending a lot of tokens does not guarantee a low score. The grade only drops for actual waste, not for spending that serves your work. Each component of the score also shows an estimated dollar impact, so you can see which problems are costing you the most real money. TokenScope also provides specific, evidence-backed recommendations. For example, if it notices you reading the same file three or more times in a session, it flags that as a repeated read. If a single file read consumes over fifteen thousand tokens, it flags that too. It identifies error loops where failed tool calls pile up, and it can spot configured MCP servers that you never actually use. Each finding comes with your own numbers as proof, along with suggested fixes you can paste directly into your configuration files. You can also teach TokenScope about your specific workflow by placing a small configuration file in your project. If your work involves verification steps that look expensive but are intentional, you can tell the tool to suppress certain advice. This keeps the recommendations relevant to how you actually work.
TokenScope reads Claude Code session logs from your disk and shows where your AI token budget is being wasted. It gives each project a context score, flags costly patterns like repeated file reads, and suggests fixes you can apply immediately.
Mainly TypeScript. The stack also includes TypeScript, Node.js, npx.
The license for this repository is not specified in the available documentation.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.