tare README

The project's README from github.com/kelviq/tare. As one markdown file: README.md.

tare

Ask Claude Code where your usage went.

You hit a usage limit and don't know why. Your quota drains faster than it used to. You suspect something is eating tokens in the background. The records that answer all of this are already on your computer — Claude Code keeps a log of every request it makes. tare teaches Claude Code to read its own logs, so you can just ask.

No dashboards, no commands to learn. Install once, then ask in plain English.

Tare: the weight of the container, subtracted to find what's inside. Most of what a session costs is the container — context re-sent again and again — and that's exactly what these tools subtract.

Read full story - https://www.kelviq.com/blog/claude-code-usage-limits-where-tokens-go/

Install

One command, in any terminal:

npx skills add kelviq/tare -g -y --copy --agent claude-code

That's it. Nothing else to set up — no accounts, no packages, no configuration. Start a new Claude Code session and it's live — type / and check that tare appears. If it doesn't, see the troubleshooting note — on machines where Claude Code has never installed a skill before, the installer can miss it. (Other ways to install — by hand, for a whole team, or as a Claude Code plugin — are in INSTALL.md.)

Then just ask

Open Claude Code and ask your question the way you'd ask a person. These all work — the words don't have to match, complaining about your limits is enough:

When you hit a limit

Why did I hit my usage limit yesterday?

I got locked out ten minutes into my evening session — how is that possible?

Did I hit the 5-hour limit or the weekly cap?

Why am I burning through my quota so much faster this week?

Where your tokens go

Where did my tokens actually go this week?

Which of my projects is eating my quota?

Which model is costing me the most?

What's the most expensive file Claude keeps re-reading?

How much did that giant session yesterday actually cost me?

Are my MCP servers adding a lot to my context?

How much overhead do subagents and skills add?

Before you start something big

How full is my 5-hour window right now?

Is it safe to start a big refactor now, or should I wait for my window to clear?

Checking for things you forgot

Is something running Claude Code in the background?

Was Claude Code active while I was asleep?

I set up an automation last month — what is it costing me?

Tuning your setup

I started using /clear between tasks — did it actually help? Compare this week to last.

Did the latest Claude Code update change my usage?

What would my usage cost if I were paying for the API directly?

What one change would save me the most?

Reports and sharing

Make me a usage report I can open in my browser.

Give me a summary I can post publicly — with nothing private in it.

Export my usage to a spreadsheet.

Prefer typing commands? /tare runs the full diagnosis, and takes variants for the common asks — asking in plain words always works too:

/tare full diagnosis — where tokens went and why
/tare usage at-a-glance panel — like /usage, with attribution
/tare window how full is the 5-hour window — safe to start?
/tare report [days] build the HTML report and open it
/tare tools [days] what is filling my context
/tare week compare this week with last
/tare share [days] redacted summary safe to post publicly
/tare why did I hit the limit yesterday any question works as the argument
image

What you get back

Not a wall of numbers — a cause. The answer to "why did I hit my limit yesterday?" looks like this:

99% of yesterday's usage came from a tool you're running, not from you. Something spawned 1,553 short Claude Code sessions in your website project — 9,022 requests, up to 51 sessions running at once. Your own hands-on work that day was 93 requests. Each fresh session rebuilds its context from scratch, which is the most expensive way to spend tokens...

...followed by the evidence, what to check, and what to change. And when everything is actually fine, it says that: usage proportionate, no anomaly, here's what's normal for you.

Real output lives in examples/ — a shareable summary produced by /tare share, and the HTML report.

What it knows that a raw token count doesn't

Private by design

Everything runs on your machine and nothing leaves it. The scripts make no network connections at all. When you ask for a shareable summary, it contains totals, dates and tool names only — no prompts, no file paths or contents, no commands, no session or account identifiers — so you can post it publicly or send it to a colleague and ask "what am I missing?"

Don't take that on faith: SECURITY.md states exactly what each file reads, writes and sends, and shows how to verify every claim yourself with one grep.

Requirements

Demo

https://github.com/user-attachments/assets/358ecacb-972b-4452-9633-e530af3d5490

For developers

Everything the skill does, you can also do by hand: three dependency-free Python scripts with recipes for scripting, cron, CSV export, live per-request telemetry and more — see CLI.md.

Issues and PRs welcome. Useful directions: a live TUI, Windows paths, aggregating anonymised summaries across users to spot patterns no single person can see, and better token estimation for tool results.

MIT licensed.

tare (kelviq/tare)

Searching Database…

296 ·GitHub
这是什么?tare 是一个工具,让你用日常语言直接问 Claude Code 你的 token 用量花在了哪里,它通过读取 Claude Code 已经保存在你机器上的会话日志,诊断你为什么触发了用量上限。
这是 Claude Code 技能,还是带仪表盘的独立应用?它是一个 Claude Code 技能(另外为开发者提供可选的独立 Python 脚本)——没有仪表盘,也没有需要学的新命令;你只需安装它,然后直接向 Claude Code 提问。
需要先装好 Python 或什么软件包吗?你需要 macOS 或 Linux 上的 Claude Code,以及 Python 3.9+——每台 Mac 都预装了 Python,所以不需要额外安装任何东西。
它能配合其他编程智能体或在 Windows 上用吗?不能——它目前只读取 Claude Code 自己的日志,读不了其他编程智能体的日志;Windows 支持只被列为未来方向,现在还用不了。
我现在能在 Windows 上运行它吗?还不能——它只为 macOS 或 Linux 上的 Claude Code 构建和支持;Windows 路径是一个待改进方向,并不是现有功能。
我的用量数据会离开我的电脑吗?不会,一切都在本地运行,脚本不会发起任何网络连接;可分享的摘要只包含总量、日期和工具名称,绝不包含提示词、文件路径或账号标识。
tare 提供哪些斜杠命令?“/tare”运行完整诊断,另有“/tare usage”(一览面板)、“/tare window”(查看 5 小时限额窗口用了多少)、“/tare report”(生成 HTML 报告)和“/tare share”(脱敏的公开摘要)等变体。
为什么不能直接相信 Claude Code 已经显示的 token 数?Claude Code 的日志格式会把每个 API 响应重复记录多次,在 tare 测试所用的数据上,这使原始总数虚高了 86%;tare 会对日志去重以得到正确的数字。
我能自己验证 tare 的隐私声明,而不是光相信它吗?可以——SECURITY.md 准确记录了每个文件读取、写入和发送的内容,并给出一条单行 grep,你可以自己运行来验证这些声明。
“tare”这个名字是什么意思?Tare(皮重)指从总重中减去的容器重量,用来求出实际内装物——比喻剥除在大多数会话成本中占大头的重复上下文开销。
Creator
kelviq
Size
0.1 MB
Stars
296
Updated
CommitAug 28
Age
2mo
Commits · 90 Days