Skip to content
Development
Command

/context-budget

Audit context window token consumption across all loaded components and recommend optimizations

From plugin
coco
79642 skills53 agents42 commands3 hooks
$ npx -y skills add coco-research/coco --agent claude-code

Command definition

context-budget.md
description: "Audit context window token consumption across all loaded components and recommend optimizations"
allowed-tools:
  - Read
  - Bash
  - Glob
  - Grep

/context-budget — Token Consumption Audit

Run the context-budget skill to analyze token overhead across agents, skills, rules, MCP servers, and system prompts.

Usage

/context-budget              # Full audit
/context-budget --quick      # Summary only (top 5 savings)
/context-budget --verbose    # Include per-file breakdown

What It Does

1. Scans all component directories (agents/, skills/, rules/, MCP configs) 2. Estimates token count per component (words × 1.3 for text, × 1.5 for code) 3. Classifies each as Always/Sometimes/Rarely needed 4. Produces prioritized savings report with actionable recommendations

When to Run

  • Before adding new skills or agents
  • When session quality degrades mid-conversation
  • After installing a new system bundle (GSD, Brain, Team)
  • As part of `/team:ship` pre-flight checks
@coco-research
Ships withcoco

495 personas across 13 departments, 229 skills[^installed] and 388 commands in the full catalog (coco 1.9.0, 2026-10-21). Agent skills, slash commands and subagents for Claude Code, Cursor, Codex and other AI coding agents.

796200 skills53 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
796
Star history of coco-research/coco on GitHub, a chart by star-history.com

Other commands on coco.

goal

goal

Command

Set, check, or complete the persistent project goal stored in .goal.md. Trigger as /coco-goal or /coco:goal.

@coco-research@coco-researchInstall Command
mermaid

mermaid

Command

Use when the user asks for a diagram or chart: flowchart, sequence, state, class, ER, or XY chart, as SVG, HTML, or terminal…

@coco-research@coco-researchInstall Command
read

read

Command

Show latest emails from a specific person. Usage: /email-read alice

@coco-research@coco-researchInstall Command
reply

reply

Command

Draft a reply to a specific email. Usage: /email-reply Project Phase 2 Contract Data

@coco-research@coco-researchInstall Command
save

save

Command

Save matching emails to a project folder for sync processing. Usage: /email-save alice to emails/

@coco-research@coco-researchInstall Command
search

search

Command

Search emails by subject keywords. Usage: /email-search github webhook

@coco-research@coco-researchInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command