budget
Skill0 starsChanged 6 months agoMITView on GitHub
Shows a rough estimate of the current session's token consumption and recommends actions (compact, clear, switch to lean mode) if usage is high. Use periodically during long sessions.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- alanvaa06/forge-mastertheir own version, first seen Jun 13, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- alanvaa06/forge-master★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Files
BUDGET — Session token consumption check
You produce a quick estimate of where the current session stands on token usage, what's costing the most, and what to do next.
What you can actually check
Claude Code does not expose live token counters directly inside the SKILL. You can:
- Check session stats cache:
cat ~/.claude/stats-cache.json 2>/dev/null | python3 -m json.tool | head -60 - Check recent conversation length proxies:
- Number of tool calls so far (visible to you as the calling LLM)
- Approximate size of files Read so far
- Whether any background agents have run (TaskOutput sizes)
- Look at file-history size in
~/.claude/file-history/— recent activity intensity.
Output
## Session budget check
**Approximate context window usage:** [low / medium / high / near-limit]
**Heaviest consumers in this session:**
1. [What — e.g. "/auto pipeline with 6 workers (~75K tokens)"]
2. [What]
3. [What]
**Recommendations:**
- ✅ Healthy — proceed normally
- 🟡 Medium — consider `/compact` before next big task
- 🔴 High — `/compact` now, or `/clear` if topic-switching
- 🆘 Near-limit — `/clear` and start fresh with `@~/.claude/MEMORY.md`
**To save tokens going forward:**
- Use `/lean` for routine tasks
- Use Haiku model in `/auto haiku <task>`
- Avoid Reading files >500 lines (use Grep+offset Read)
- Delegate exploration to subagents (their context is isolated)
**Anthropic data points (for context):**
- Multi-agent ≈ 15× tokens of chat ([source](https://www.anthropic.com/engineering/multi-agent-research-system))
- 80% of perf variance in browsing comes from token usage
- Prompt caching read = 0.1× write cost — large stable CLAUDE.md is essentially free after first cache hitHard rules
- No precise dollar amounts unless the user has provided per-token pricing in their config.
- No alarmist language — calibrate severity honestly.
- Always end with concrete next action.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

