Skip to content
affaan-m avatar

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
View on GitHub

Own this skill? Claim it

What it does

  • Covers live context checks via /status in Codex and /context in 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 -y

Installs 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:

HarnessNative commandGuidance
Codex CLI/statusShows current token usage and remaining context capacity. Use /statusline and enable Context stats plus Token counters for a persistent footer meter.
Codex app/statusShows current thread context usage and rate limits.
Claude Code/contextShows the live context breakdown. Use /context all for expanded items.
Other or unknownNone verifiedState 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

Similar to Context Budget

More Memory & Context