Context Budget
Routes live context checks to native meters and runs bounded, opt-in static audits.
- CCM score
- 71 of 100
- skills.sh installs
- 12.5K
- GitHub stars
- 312.6K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers live context checks via
/statusin Codex and/contextin Claude Code, without scanning files or running tools - Includes an explicit static audit limited to named install roots, capped at 50 entries per component class
- Enforces read-only inspection with no provider CLI launches, workspace enumeration, or temporary log writes
- Designed for users who need current context usage or want a selected JSONL record breakdown, not estimated usage
Install
$ npx -y skills add affaan-m/ecc --skill context-budget -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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. |
Details
- Repository
- github.com/affaan-m/ecc
- Categories
- Memory & Context, Agent Workflow & Planning
- First seen
- Jul 14, 2026
Questions
What does the context-budget skill do?
The context-budget skill routes live context checks to the native Codex or Claude Code meter, such as /status in Codex and /context in Claude Code, without scanning files. It also performs a bounded static audit of installed agents, skills, MCP servers and rules, but only when explicitly requested with --audit.
How do I install the context-budget skill?
Run npx -y skills add affaan-m/ecc --skill context-budget -y in your project. After that, the agent can answer context-budget requests about remaining capacity or installed context overhead.
Does context-budget show my remaining context window?
It does not compute live usage itself, because a skill cannot invoke a TUI slash command. It tells you to run the native command for your harness, /status in Codex or /context in Claude Code, and its audit token numbers are only estimates of static configuration overhead.
Where does context-budget rank among Memory & Context skills?
On the Memory & Context category page it ranks in the top 25, alongside handoff and several caveman skills. Its distinct focus is auditing installed components for eager discovery overhead and suggesting token-savings optimizations.
More from affaan-m/ecc
All 257- Nutrient Document Processing12.5K
- Autonomous Loops12.4K
- Architecture Decision Records12.4K
- Investor Materials12.4K
- Swiftui Patterns12.4K
- Pytorch Patterns12.3K
- Bun Runtime12.3K
- Ai First Engineering12.3K
- Flutter Dart Code Review12.2K
- Perl Security12.2K
- Regex Vs Llm Structured Text12.2K
- Compose Multiplatform Patterns12.2K
- Continuous Agent Loop12.2K
- Content Hash Cache Pattern12.1K
- Kotlin Testing12.1K
- Ai Regression Testing12.1K
- Browser Qa12.1K
- Design System12.1K
- Jira Integration12K
- Investor Outreach12K
- Documentation Lookup12K
- Remotion Video Creation12K
- Swift Actor Persistence12K
- Swift Protocol Di Testing12K
Similar to Context Budget
More Memory & Contextcost-trackingSkillaffaan-m/ecc8.6K installsReports Claude Code token usage and spend from the local cost-tracker log, with per-session and per-model breakdowns.
session-taxPluginccplugins/awesome-claude-code-plugins1K starsMeasure what your Claude Code setup costs on every session before you type anything - opening context, what loads, and how much of it never gets used.
workspace-surface-auditSkillaffaan-m/ecc10.7K installsRead-only audit skill that inventories repo, MCP, plugin, connector, and env surfaces, then recommends ECC-native next steps.
Lighthouse McpMCP serverpriyankark220 starsRuns Lighthouse performance audits on public URLs and returns scores and metrics for web pages.