From rc
Audits what consumes the agent's context window — installed agents, skills, rules, MCP tool schemas, and CLAUDE.md/AGENTS.md — estimates token cost, classifies each as always/sometimes/rarely needed, and recommends the highest-impact reductions. Use when sessions compact too early, when MCP/tooling feels heavy, or before adding more agents/skills. Do not use for application performance profiling or runtime memory analysis.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rc:rc-context-budget [config-root][config-root]sonnetThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The context window is a budget, not free space. Every always-loaded agent description, skill, rule, MCP tool schema, and `CLAUDE.md` line is spent on *every* turn — a 200k window can effectively start at 70k once enough tooling is enabled, forcing early compaction and degrading reasoning. This skill inventories that fixed overhead, estimates its token cost, and tells you what to trim. Read-only...
The context window is a budget, not free space. Every always-loaded agent description, skill, rule, MCP tool schema, and CLAUDE.md line is spent on every turn — a 200k window can effectively start at 70k once enough tooling is enabled, forcing early compaction and degrading reasoning. This skill inventories that fixed overhead, estimates its token cost, and tells you what to trim. Read-only: recommend, do not disable servers, edit configs, or delete skills yourself.
Discover and measure each contributor (skip what does not exist):
CLAUDE.md, AGENTS.md, and any always-on rules/.cursor/rules injected globally..claude/agents/**, .opencode/agent/**, and plugin-bundled agents/** — every agent's description is loaded whenever the orchestrator considers delegating (Task tool). Long descriptions cost on every invocation.*/SKILL.md. The description frontmatter is what loads for routing; the body loads only when the skill activates.description/argument-hint.tokens ≈ words × 1.3. Count words with wc -w.tokens ≈ tool_count × 500. Count tools from the server's manifest/inspect output, or estimate from its docs.Tag each contributor:
Then give the top 3 reductions ranked by tokens saved × likelihood-unused — do not just list everything — each with the concrete action and estimated saving. Never recommend trimming a security control (permission deny, a guardrail hook) to save tokens. The usual biggest levers, in order:
gh pr command instead of the GitHub MCP).CLAUDE.md. When this is the recommendation, hand the file to rc-agents-md: it owns the rent test (delta / frequency / economy), the scope ladder that says where a rule relocates instead of dying, and the Trim branch that executes the verdict. Note for the estimate: in Claude Code an @path import expands at load time — full rent — while a path mentioned in prose is read on demand.Print a table (contributor | type | est. tokens | class), the total fixed overhead, and the ranked top-3 reductions with estimated savings and the exact action for each. Note that estimates are approximate (±20%); the goal is relative ranking, not exact accounting.
npx claudepluginhub rodolfochicone/rc-project --plugin rcAudits Claude Code context window usage across agents, skills, rules, MCP servers, and CLAUDE.md. Detects bloat, redundancy, and recommends prioritized token-saving optimizations.
Audits Claude Code context window consumption across agents, skills, MCP servers, and rules. Identifies bloated or redundant components and generates prioritized token-saving suggestions.
Audits Claude Code context window consumption across agents, skills, MCP servers, and rules. Identifies bloat, redundant components, and produces prioritized token-savings recommendations.