Free skill · Claude Code · v0.1.0 · MIT
Agent budget audit
See where your Claude Code tokens go, then get more done before you hit your usage limit. It measures first, writes a test for every change, and changes nothing until you say yes.
- You get: a dated table of where the tokens go, the waste ranked, a test for each fix, and a short list of changes to approve.
- You need: Claude Code and Node 18 or newer. No packages.
Install in Claude Code
Copy this and paste it into Claude Code:
Fetch https://
It adds 4 plain files, one of them a Node script, to ~/.claude/skills/agent-budget-audit/. Then, in the project you want to audit, ask: “audit where this project’s tokens go”.
What it found on our own projects
2–10%
of the first turn was the project's own instructions. The rest was the app and user-level setup: tool schemas, connector tool names, the skills list and MCP instructions.
41k → 106k
tokens: how much one project's first turn grew between May and November, while its CLAUDE.md stayed the same size.
18 of 25
of another project's recent sessions were scheduled tasks of 1 to 5 turns, each paying about 127k tokens just to start.
Measured with the skill’s script on three of our projects, 12 November 2026. Your numbers will differ: that is why it measures yours first.
How it works
Every turn re-reads the whole context, so cost is roughly the number of turns times the size of the context. The skill goes after both, in this order:
Measure
Reads your project's transcripts and prints one dated table: first-turn size, turns, tokens per turn, models, typed and automated prompts, and what the first turn is made of.
Find the waste
Ranks the levers by tokens saved per hour: a heavy start, idle turns, the big model on chores, long tool output, oversized docs, sessions that run too long.
Write the test
Before any change: a hypothesis, numeric predictions, a kill rule, and the command that reads the result from your next sessions.
Ask, then change
One numbered list, each change with its saving, risk, undo and a recommendation. It changes only what you say yes to, then tells you when to read the test.
It never does
- Change a file or a setting before you say yes to that numbered change
- Print secrets from settings, environment files, MCP config or hook commands
- Delete anything
- Make a user-wide change (one that touches every project) without a separate yes
- Send anything anywhere: the script only reads files already on your computer
Your part
- Say yes or no to each proposed change
- Keep your sessions until the readout; a deleted session drops out of the test
- Read the test after 10 to 25 sessions, when it tells you to
Questions
Does it help on a Pro or Max subscription?
It reports tokens, not dollars or plan usage. Fewer tokens per session generally means more work before you reach your limit, but how much depends on how your plan counts cached tokens, so the skill shows you the token numbers and lets the test speak.
Does it work in Cowork?
Not tried. It reads Claude Code's transcripts in ~/.claude/projects/. It was tested on transcripts from the Claude Code desktop app.
What does the script read, and what does it print?
Your local Claude Code transcripts. It prints counts, model names, tool names and worktree names, never the text of your messages. Mind the worktree and tool names if you share the output.
How do I remove it?
Delete its folder: rm -rf ~/.claude/skills/agent-budget-audit
Details
Tested on, and nothing wider is claimed
- Tested on one Apple Silicon Mac, macOS 26, Node 22.22, with Claude Code desktop app transcripts read on 2026-11-12 from three projects (4, 25 and 30 recent sessions, including worktrees, subagents, scheduled tasks and deleted sessions).
- The script was run in every mode.
- A fresh session did steps 1 to 4 on one project with an earlier version of this skill.
- It produced a full audit and the list of changes, changed nothing, and its notes shaped this version.
- Step 5 (making changes and reading a test) has not been run.
- Linux, Windows, the terminal CLI's own transcripts and Cowork were not tried.
Install by hand
curl -LO https://www.howtoco.work/skills/agent-budget-audit/agent-budget-audit.zip unzip agent-budget-audit.zip -d ~/.claude/skills
The files are plain Markdown and JavaScript. Read them before you run them.
v0.1.0 · 4 files · zip sha256 577b4b0c0c7b3793bd81f4459173d134a43fdade5c477035d7753e4d48a4ef9d
Started in Cowork, building in Claude Code now?
The code is half the job. The course teaches the other half: the hat each decision needs (product, design, marketing) and the words to direct AI in it, so you can build and market your product without hiring.