/context-optimizer:cco [command] [args] (empty for the board, 'help' for all)from context-optimizer
Shows session cost, token usage, and savings in Claude Code. Provides commands like /cco board, /cco audit, /cco task, and /cco pack to track and reduce context spending.
Ships in context-optimizer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Needs Claude Code (or Cowork on your computer): this runs the plugin's local scripts. If
nodeor${CLAUDE_PLUGIN_ROOT}isn't available, as in claude.ai chat, don't try to run anything. Say so in one line and offer thefresh-startortoken-checkskill instead.
Arguments: $ARGUMENTS. The first word is the command; the rest are its
<args>. No command means board. help, or a command not in the table,
means: print the table below as a short menu and stop.
For a command, read its instructions in
${CLAUDE_PLUGIN_ROOT}/skills/cco/commands/<command>.md and follow them.
Those files write the plugin's path as ${CLAUDE_PLUGIN_ROOT}: use
${CLAUDE_PLUGIN_ROOT} in its place, and the user's <args> where they say
<args>. When the user typed only a command that just runs its script, run
the script from the table directly and skip reading the file.
| Command | What it shows | Script |
|---|---|---|
(none) / board | This session: budget, $ spent, saved, waste, active task, next actions | node ${CLAUDE_PLUGIN_ROOT}/src/dashboard.js board |
audit | Your real transcripts: where the money went and what CCO saved | node ${CLAUDE_PLUGIN_ROOT}/src/audit.js <args> |
wrapped | A recap of your last week: spend, busiest day, priciest projects, one tip | node ${CLAUDE_PLUGIN_ROOT}/src/wrapped.js <args> |
report | Token ROI across all tracked sessions | node ${CLAUDE_PLUGIN_ROOT}/src/report.js full |
roi | Monthly savings by model | node ${CLAUDE_PLUGIN_ROOT}/src/roi.js |
digest | Efficiency score and trend for the last N days | node ${CLAUDE_PLUGIN_ROOT}/src/digest.js <args> |
replay | Recent session summaries | node ${CLAUDE_PLUGIN_ROOT}/src/replay.js <args> |
tools | What each tool really costs in tokens | node ${CLAUDE_PLUGIN_ROOT}/src/tool-costs.js |
overhead | The fixed context every session starts with | node ${CLAUDE_PLUGIN_ROOT}/src/overhead.js |
| Command | What it does |
|---|---|
orchestrate <task> | Do a task with Haiku subagents doing the reading and test runs |
task | Track a task's cost and keep its state across /compact |
pack <task> | The files a task needs, with line ranges, before reading anything |
anatomy | A compact map of the project |
git | Context suggestions from the git working tree |
claudemd | Find bloat in CLAUDE.md |
coach | Grade the last prompt and sharpen it |
shield | .contextignore rules from what was never used |
templates | Saved context sets for recurring tasks |
| Command | What it does |
|---|---|
config | Tune thresholds (re-read warnings, cache staleness, coach) |
budget | Context budget and auto-compact settings |
export | Save a report as Markdown or an offline HTML page |
patterns | Share learned file patterns with a team |
clean | Prune or reset tracked data |
doctor | Check the install end to end |
commands/anatomy.md (opens in a new tab)commands/audit.md (opens in a new tab)commands/board.md (opens in a new tab)commands/budget.md (opens in a new tab)commands/claudemd.md (opens in a new tab)commands/clean.md (opens in a new tab)commands/coach.md (opens in a new tab)commands/config.md (opens in a new tab)commands/digest.md (opens in a new tab)commands/doctor.md (opens in a new tab)commands/export.md (opens in a new tab)commands/git.md (opens in a new tab)commands/orchestrate.md (opens in a new tab)commands/overhead.md (opens in a new tab)commands/pack.md (opens in a new tab)commands/patterns.md (opens in a new tab)commands/replay.md (opens in a new tab)commands/report.md (opens in a new tab)commands/roi.md (opens in a new tab)commands/shield.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub egorfedorov/claude-context-optimizer --plugin context-optimizer6 skills in this plugin
/doc-digestTurn a long document, PDF, transcript, spreadsheet or log into a compact working digest the conversation can continue from. Use when the user shares or pastes something long (several pages or more) and wants to discuss, analyze, compare or use it over more than one message, or asks to summarize a document so they can keep working with it./fresh-startContinue in a new chat without losing anything — writes a compact handoff to paste into a fresh conversation. Use whenever the user wants to move to a new chat or conversation, hits usage limits, says replies got slow or Claude forgets earlier details, or the conversation has grown long./project-contextTurn background the user keeps re-explaining or re-pasting into reusable instructions, so new chats start with it for free. Use when the user repeats the same context, rules, style guide, persona or reference text across messages or chats, says they are tired of explaining the same thing, or asks how to set up a Claude Project, custom instructions or a CLAUDE.md./sharpen-promptRewrite a vague request into a precise prompt — goal, context, scope, constraints, what done looks like, output format. Use when the user asks to improve, rewrite, sharpen or check a prompt./token-checkEstimate how many tokens a pasted text, an attached file or the conversation so far takes, what it means for the context window and usage limits, and how to cut it. Use when the user asks how big something is in tokens, why they keep hitting limits, or whether a file is too large to send.Other plugins' skills for the same job