mcpField
C
cco

cco

github.com/egorfedorovAgent workflows125251 installsUpdated 1d ago
Repository

About cco

cco is a Context Optimizer skill for Claude Code that tracks token use and supports context-efficient coding workflows. Its commands provide session reports, project context tools, task tracking, and configuration utilities.

Key features

  1. 01View session budget and token savings
  2. 02Audit transcripts and session costs
  3. 03Report token return on investment
  4. 04Pack relevant files before reading
  5. 05Map projects and inspect Git context
  6. 06Track tasks across compaction

Use cases

  1. 01Review token spending across sessions
  2. 02Find context waste in a project
  3. 03Prepare a focused set of files for a task
  4. 04Track task cost and state while compacting

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/egorfedorov/claude-context-optimizer --skill cco

After installing, type/ccoin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

commands/
anatomy.md
audit.md
board.md
budget.md
claudemd.md
clean.md
coach.md
config.md
digest.md
doctor.md
export.md
git.md
orchestrate.md
overhead.md
pack.md
patterns.md
replay.md
report.md
roi.md
shield.md
task.md
templates.md
tools.md
wrapped.md

Details

From the project README

Context Optimizer

Needs Claude Code (or Cowork on your computer): this runs the plugin's local scripts. If node or ${CLAUDE_PLUGIN_ROOT} isn't available, as in claude.ai chat, don't try to run anything. Say so in one line and offer the fresh-start or token-check skill 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.

See where the tokens go

CommandWhat it showsScript
(none) / boardThis session: budget, $ spent, saved, waste, active task, next actionsnode ${CLAUDE_PLUGIN_ROOT}/src/dashboard.js board
auditYour real transcripts: where the money went and what CCO savednode ${CLAUDE_PLUGIN_ROOT}/src/audit.js <args>
wrappedA recap of your last week: spend, busiest day, priciest projects, one tipnode ${CLAUDE_PLUGIN_ROOT}/src/wrapped.js <args>
reportToken ROI across all tracked sessionsnode ${CLAUDE_PLUGIN_ROOT}/src/report.js full
roiMonthly savings by modelnode ${CLAUDE_PLUGIN_ROOT}/src/roi.js
digestEfficiency score and trend for the last N daysnode ${CLAUDE_PLUGIN_ROOT}/src/digest.js <args>
replayRecent session summariesnode ${CLAUDE_PLUGIN_ROOT}/src/replay.js <args>
toolsWhat each tool really costs in tokensnode ${CLAUDE_PLUGIN_ROOT}/src/tool-costs.js
overheadThe fixed context every session starts withnode ${CLAUDE_PLUGIN_ROOT}/src/overhead.js

Spend less

CommandWhat it does
orchestrate <task>Do a task with Haiku subagents doing the reading and test runs
taskTrack a task's cost and keep its state across /compact
pack <task>The files a task needs, with line ranges, before reading anything
anatomyA compact map of the project
gitContext suggestions from the git working tree
claudemdFind bloat in CLAUDE.md
coachGrade the last prompt and sharpen it
shield.contextignore rules from what was never used
templatesSaved context sets for recurring tasks

Settings and data

CommandWhat it does
configTune thresholds (re-read warnings, cache staleness, coach)
budgetContext budget and auto-compact settings
exportSave a report as Markdown or an offline HTML page
patternsShare learned file patterns with a team
cleanPrune or reset tracked data
doctorCheck the install end to end

Comments

Markdown supported