cco-budget

Installation
SKILL.md

Context Budget Manager

Manage the token budget for Claude Code sessions. Model-aware — picks the right effective context window and prices per model. The session's REAL model is read from the transcript by the budget hook; config.model is only the fallback. Everything from Sonnet 4.6 up is 1M; Haiku 4.5 is 200K.

Parse $ARGUMENTS:

status (or no arguments)

Show current budget config + auto-compact settings:

cat ~/.claude-context-optimizer/config.json 2>/dev/null
echo "---"
cat ~/.claude-context-optimizer/budget-config.json 2>/dev/null

If no config exists, show defaults (200K working budget on a 1M window, opus-5 fallback model, warn at 50/70/85/95%).

Installs
184
GitHub Stars
111
First Seen
Mar 23, 2026
cco-budget — egorfedorov/claude-context-optimizer