claude-slim

Your Claude Code session burns thousands of tokens before you even say "hello."
Every session auto-loads every skill, agent, slash command, memory file, and plugin instruction into the system prompt — even the ones you never use. If you run OMC, marketplace plugins, or a custom skill stack, you're paying for context you'll never touch on every single turn. claude-slim measures that startup overhead and removes what you don't need.
No proxy, no compression, no changes to how Claude Code talks to the API — it reads ~/.claude/, tells you what each skill and plugin actually costs, and moves the dead weight aside reversibly.
/claude-slim
한국어 | 日本語 | 中文
See it in action
Where the bloat hides — what Claude Code actually sent at the start of one real session, read back from its own session log:
| Source | What it costs | |
|---|
| MCP tool names | ~10,700 tokens | 768 names. Tool search defers the schemas, not the names — one connector alone listed 160 |
| Skill listing | ~8,200 tokens | 213 skills, capped at 1% of the context window — 99 of them shown by name only |
| Instruction files | ~6,300 tokens | CLAUDE.md, @path imports, rules without paths:, the project's MEMORY.md |
| MCP server instructions | ~3,600 tokens | 10 servers, claude.ai connectors included |
| Agent catalog | ~2,200 tokens | 33 agents |
The skill listing has a budget: 1% of the context window (6,000 characters on a 200k model, 30,000 on 1M). Past it, Claude Code doesn't grow the prompt — it quietly drops descriptions, starting with the skills you use least. Those skills are still installed and still invocable, but the model only sees - skill-name, so it can't tell when to reach for them. On the install above, nearly half the skills were in that state.
That's slower responses. Hitting your usage cap faster. Paying for context you're not using — on every turn, of every session.
One command. Five steps.
/claude-slim
┌────────┐ ┌──────────┐ ┌─────────┐ ┌─────────┐ ┌────────┐
│ Scan │ → │ Classify │ → │ Propose │ → │ Clean │ → │ Report │
│ │ │ │ │ │ │ │ │ │
│measure │ │ broken │ │ you │ │ move to │ │before │
│ every │ │ dupes │ │ choose │ │.disabled│ │ vs │
│source │ │ bloat │ │ what │ │ dir │ │ after │
└────────┘ └──────────┘ └─────────┘ └─────────┘ └────────┘
Scan — Measures everything: local skills, plugin skills, CLAUDE.md, memory files, MCP servers. Token counts are measured with js-tiktoken, not guessed.
Classify — Finds the waste automatically:
| What it catches |
|---|
| Broken symlinks | Dead links from uninstalled skill packs |
| Duplicates | Same skill registered from multiple sources |
| Empty templates | Placeholder skills with no content |
| Oversized files | SKILL.md over 10KB |
| Unused skills | Local skills never invoked in your last N days of sessions (default 60d) |
| Agents & commands | ~/.claude/agents/ and ~/.claude/commands/ — measured and reported, never modified |
| Rules & imports | ~/.claude/rules/ and CLAUDE.md @path imports — measured and reported, never modified |
| Unused plugins | Plugins whose skill/mcp/cmd were never invoked in your last N days of sessions (default 60d). Tier 3, never auto-selected. |
| Unused MCP servers | User- and local-scope servers in ~/.claude.json whose tools were never called in your last N days. Tier 3, never auto-selected. Removed with claude mcp remove; the definition is kept for restore. |
| Oversized memory index | MEMORY.md over 5KB, or cut at the 200-line / 25KB startup cap so its tail never loads |
| Disabled plugins | Installed but disabled plugins still in cache |
| Stale projects | Project memory untouched for 90+ days |
| Temp caches | Failed plugin install remnants (temp_local_*) |
Propose — Three tiers, you decide: