By egorfedorov
Track, analyze, and optimize Claude Code context usage across sessions — detect token waste, auto-compact oversized context, rank files by task relevance, and enforce budget limits to reduce costs and speed up responses.
Generate a compact project map so Claude understands the codebase without opening every file
Configure token budget limits, auto-compact settings, and view current budget status (model-aware — Opus 4.8 default, full 1M context at standard price)
Analyze CLAUDE.md files for token bloat and suggest optimizations
Clean up old tracking data and reset statistics
Analyze the user's last prompt for clarity, scope and specificity — give a quality score and concrete suggestions to make the next prompt produce better results
Modifies files
Hook triggers on file write and edit operations
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Stop burning tokens on weak prompts and redundant reads.
Tuned for Claude Opus 4.8 — full 1M context at standard price.
The average Claude Code session wastes 30-50% of tokens on files that are read but never actually used. Every Read call consumes context — whether the file was relevant or not.
package.json Claude reads "just in case"? 120 tokens, every time.At $5/M input tokens (Opus 4.8), a developer spending $100/month is lighting $30-50 on fire on irrelevant context.
context-optimizer silently tracks every file read, edit, and search. It learns which files are actually useful and which are waste. Over time, it builds a profile of your coding patterns and tells you exactly where your tokens go — and how to stop wasting them.
v4.1 answers one question: does it really save tokens, or just say it does? It makes the optimizer honest and stops it from spending the context it's meant to protect.
/cco now reports net = tokens saved by the cache
minus the tokens CCO's own messages injected. Savings are counted by each
file's real size (a re-read of a 30-line file no longer credits "18K saved").
If the optimizer is ever net-negative, the dashboard says so.bigFileDigest).v4.0 makes the plugin Opus 4.8-aware, adds a flagship Context Control Center, and corrects the model facts.
/cco)/cco is now a single, live dashboard instead of just a heatmap:
CONTEXT CONTROL CENTER opus-4.8 · 1M
────────────────────────────────────────────────────────────
Budget ▓▓▓▓▓▓▓░░░ 142K / 200K (71%) $0.84
Saved +58K tokens by cache → 1.41x effective (12 reads blocked)
Waste ▓▓░░░░░░░░ 18% (3 cold files)
Prompt last grade: B (add a file path to be specific)
────────────────────────────────────────────────────────────
▶ Task #4 refactor login flow · ~31K · $0.155
✓ #3 add OAuth provider · ~22K
────────────────────────────────────────────────────────────
⚡ Free ~22K: drop legacy/old_api.ts, vendor/build.js → /compact
📦 Pack minimal context: /cco-pack "refactor login flow"
One screen ties together budget %, $ spent, tokens saved (effectiveness multiplier), waste, last prompt grade, the active task's cost, and ready-to-run actions — all from data the optimizer already tracks. Nothing to configure.
/cco-task)Track tokens and cost per task, not just per session:
$ /cco-task add "refactor login flow" # start a task
$ /cco-pack "refactor login flow" # load only the files it needs
…work…
$ /cco-task done # freezes the task's token/$ total
While a task is active, session tokens are attributed to it, so /cco shows
exactly what each task costs. One active task per project; starting a new one
finalizes the previous one automatically.
npx claudepluginhub egorfedorov/claude-context-optimizerPersonal task tracker — invisible kanban that tracks your work automatically
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Multi-model consensus engine integrating OpenAI Codex CLI, Gemini CLI, and Claude CLI for collaborative code review and problem-solving.
Curate auto-memory, promote learnings to CLAUDE.md and rules, extract proven patterns into reusable skills.
Memory compression system for Claude Code - persist context across sessions
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Editorial "Web Designer" bundle for Claude Code from Antigravity Awesome Skills.