
Context Budget
This audits token overhead across your entire Claude Code setup: agents, skills, MCP servers, rules, and CLAUDE.md files. It estimates consumption per component, flags heavy files and redundant logic, then ranks optimizations by potential savings. Most useful when sessions feel sluggish or you're about to add more components and need to know if you have headroom. The big insight here is that MCP servers dominate overhead (each tool schema runs about 500 tokens), so a bloated MCP config costs more than all your skills combined. Run it after adding anything new to catch context creep before it degrades output quality.
- skills.sh installs
- 4.6K
- GitHub stars
- 229.1K
- last updated
- Jul 14, 2026
Install
$ npx -y skills add affaan-m/everything-claude-code --skill context-budget --agent claude-codeInstalls into .claude/skills of the current project.
Files
Context Budget
Use the provider's native meter for live session usage. Keep the separate, estimated installation audit behind an explicit opt-in.
Default: Live Context
Treat an invocation with no audit request as a live-context request. This includes requests for the current window, remaining capacity, headroom, token usage, or a context breakdown.
For this default path:
- Do not call or use tools.
- Do not scan or read files.
- Do not run shell commands, provider CLIs, debug logging, or MCP discovery.
- Reply with only the native command and one short explanation.
Route by the active harness:
| Harness | Native command | Guidance |
|---|---|---|
| Codex CLI | /status | Shows current token usage and remaining context capacity. Use /statusline and enable Context stats plus Token counters for a persistent footer meter. |
| Codex app | /status | Shows current thread context usage and rate limits. |
| Claude Code | /context | Shows the live context breakdown. Use /context all for expanded items. |
| Other or unknown | None verified | State that ECC cannot read live provider state and ask which harness is active. |
Sponsors
Details
- Repository
- github.com/affaan-m/everything-claude-code
- First seen
- Apr 16, 2026
More from affaan-m/everything-claude-code
All 256- Crosspost4.6K
- Energy Procurement4.6K
- Fal Ai Media4.6K
- Kotlin Exposed Patterns4.6K
- Logistics Exception Management4.6K
- Mcp Server Patterns4.6K
- Production Scheduling4.6K
- Quality Nonconformance4.6K
- Videodb4.6K
- Agent Eval4.5K
- Claude Devfleet4.5K
- Dmux Workflows4.5K
- Perl Patterns4.5K
- Perl Security4.5K
- Perl Testing4.5K
- Returns Reverse Logistics4.5K
- Team Builder4.5K
- X Api4.5K
- Design System4.4K
- Nuxt4 Patterns4.4K
- Browser Qa4.3K
- Jira Integration4.3K
- Rules Distill4.3K
- Click Path Audit4.2K