A small, free command line tool. It reads your local Claude Code logs and estimates the part of your usage that each kind of token-saving tool reaches. Run it before you install such a tool, to see how much of your usage the tool works on.
Reach means the part of your usage that a kind of tool works on directly; it is not the amount the tool saves.
uvx --from git+https://github.com/fognoc/tokenreach tokenreach report
It needs Python 3.11 or later and has no dependencies. It reads ~/.claude/projects by default, and only files from the last 30 days. Use --days N or --path DIR_OR_FILE to change this. Add --full for every breakdown, or --json for all numbers as JSON.
This is not real usage. The repository includes a small made-up session, examples/sample.jsonl. Below is the output of tokenreach report --path examples/sample.jsonl, unchanged.
tokenreach: the part of your Claude Code usage each kind of token-saving tool reaches
Read: 1 log file; records 2026-11-20 to 2026-11-20; 41 API calls.
Skipped: 0 unreadable lines, 0 unreadable files.
Where the cost goes (token counts weighted by official price ratios; no dollar amounts)
Claude Code keeps the conversation so far in a cache; writing it there and reading it back are both billed.
Model output about 16%
Writing context into the cache about 33%
Reading cached context again about 51%
New input not from the cache about 0.0%
What each kind of tool reaches (estimates)
A tool result stays in the conversation and is sent again on every later call. Shares count those repeats.
Share of cost: the column to compare tools by.
Share of prompt: share of everything sent to the model on each call (new input plus cache).
Kind of tool Part it reaches Share of cost Share of prompt
output shorteners model output about 16% -
shell-output compressors shell output about 11% about 13%
file-read reducers Read tool results about 12% about 14%
tool-result reducers all tool results about 24% about 29%
fixed-prompt reducers system prompt, tool definitions, other about 58% about 69%
(remainder, not measured directly)
Notes
- Shares estimate the part each kind of tool reaches directly, not savings; side effects move results.
- Too few suitable records to measure characters per token; a default rate was used for ASCII text.
- Few records or a poor fit between characters and tokens: treat the prompt shares as rough.
Known tools (claims and third-party measurements) and all details: add --full
Your own logs will give different numbers.
Each token-saving tool works on one part of what you send and receive. A tool that compresses shell output works on shell output. A tool that shortens answers works on model output.
The percentage a tool reports can be a reduction of that part, not of your whole usage. Reach tells you how large that part is in your own work. It is not the amount the tool saves, and side effects can move a tool's real result up or down.
tokenreach estimates the size of each part from your own logs. It does not say whether a tool is good. It shows how large the part is that the tool reaches.
With --full, the report also lists a few known tools with what each project says about itself and what third parties measured, each with a source URL. These measurements come from other workloads, so they are shown next to your share and are not multiplied with it.
--debug.You do not have to trust this page. The package is a few short Python files in tokenreach/. To check for network code, search the import lines:
grep -n "^import\|^from" tokenreach/*.py
The free tool includes a short list of known tools. The data pack is a longer list: 20 tools, each with what its author claims and what third parties measured, with a source URL for every number. It is one file in the same format the tool already reads.
tokenreach report --full --data tools-full.toml
Tools in the file are added to the report, next to your own shares. The tool does not go online, so the data comes to you as a file.
Please read this before you buy:
Products:
Buy the data pack (2 USD) Not on sale yet.
Buy the data pack with 12 months of updates (5 USD) Not on sale yet.
Payment is handled by Creem, the seller of record. Full refund on request within 14 days. See the Terms of Service and the Privacy Policy.
Creem sends you a receipt email with a download link. The file is also in your Creem customer portal, linked from that email. If you bought the version with updates, each new update appears there as a new file.
Save the file, then run:
tokenreach report --full --data tools-full.toml
If the file does not arrive or something is wrong, email hello@fognoc.com.
Source: https://github.com/fognoc/tokenreach
License: MIT. See the LICENSE file in the repository.