egorfedorov/claude-context-optimizer
117 stars · Last commit 2026-10-17
Claude Code plugin that tracks token usage, identifies wasted context, and saves 30-50% on API costs. Heatmaps, ROI reports, budget alerts, efficiency scores, git-aware suggestions — all local, zero config.
README preview
# Context Optimizer (CCO) **See what Claude costs you, and spend less of it.** Every message re-sends the whole conversation, so long chats and long coding sessions use up limits fast and recall early details worse. context-optimizer keeps the context small, moves cheap work to a cheap model, and shows you the numbers while you work. | Where | What you get | |---|---| | **claude.ai chat and desktop** | Skills Claude uses on its own: `fresh-start` hands a long chat over to a new one, `doc-digest` turns a long document into a working digest, `project-context` turns background you keep retyping into Project instructions, `token-check` sizes text and files, `sharpen-prompt` tightens a vague request | | **Cowork** | The same skills, plus two subagents on Haiku 5.5, about 40× cheaper than Opus: `scout` for reading and searching, `runner` for tests and builds | | **Claude Code** | Everything: a **live meter** under the prompt, the Haiku subagents, `/cco` (a session board, an audit of your own transcripts, task state that survives `/compact`, and more), read dedup, and budget and cache warnings | Runs locally, open source (MIT), no telemetry.  [](#installation) [](LICENSE) 