Skip to content
Development
Command

/context-budget

Analyze context window usage across agents, skills, MCP servers, and rules to find optimization opportunities. Helps reduce token overhead and avoid performance warnings.

From plugin
awesome-claude-notes
26460 skills29 agents60 commands7 hooks
Install
> /plugin marketplace add loulanyue/awesome-claude-notes
> /plugin install awesome-claude-notes@awesome-claude-notes

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/context-budget

Context preview

What this command does when you run it.

Analyze context window usage across agents, skills, MCP servers, and rules to find optimization opportunities. Helps reduce token overhead and avoid performance warnings.

Command definition

context-budget.md
description: Analyze context window usage across agents, skills, MCP servers, and rules to find optimization opportunities. Helps reduce token overhead and avoid performance warnings.

Context Budget Optimizer

Analyze your Claude Code setup's context window consumption and produce actionable recommendations to reduce token overhead.

Usage

/context-budget [--verbose]
  • Default: summary with top recommendations
  • `--verbose`: full breakdown per component

$ARGUMENTS

What to Do

Run the **context-budget** skill (`skills/context-budget/SKILL.md`) with the following inputs:

1. Pass `--verbose` flag if present in `$ARGUMENTS` 2. Assume a 200K context window (Claude Sonnet default) unless the user specifies otherwise 3. Follow the skill's four phases: Inventory → Classify → Detect Issues → Report 4. Output the formatted Context Budget Report to the user

The skill handles all scanning logic, token estimation, issue detection, and report formatting.

Navigation

  • [Command → Agent / Skill Map](../docs/COMMAND-AGENT-MAP.md)
  • [Agents index](../AGENTS.md)
  • [Contexts directory](../contexts)
  • [Contributing guide](../CONTRIBUTING.md)
Ships withawesome-claude-notes

Community-maintained distribution of reusable AI coding agents, commands, skills, hooks, and cross-harness workflows.

Get the whole plugin