Context Bloat — Security skill for Claude Code
Audit and optimize token bloat in AI agent repositories.
How to install Context Bloat
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open deivycom21-cell/context-bloat and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Context Bloat does
Audit and optimize token bloat in AI agent repositories.
Alternatives in Security
- Octoboss Clean Contexts — You are the Octoboss — a cross-tentacle orchestrator 1.4k ★
- Imcodes — The IM for agents 960 ★
- Data Viz Audit — Audit a data visualization for chart type selection, accessible color palette, annotations, and anti-patterns 309 ★
README
context-bloat
[](LICENSE) [](https://www.python.org/) [](#privacy--offline) [](https://github.com/deivycom21-cell/context-bloat/actions/workflows/ci.yml) [](https://pypi.org/project/context-bloat/)
Audit and optimize token bloat in AI agent repositories.
Works with **Claude Code**, **Cursor**, **Windsurf**, **OpenCode** and any tool that reads agent instruction files at startup.
Why
Every agent rule file (`CLAUDE.md`, `.cursorrules`, etc.) loads into the context window **before your first prompt**. A bloated setup can burn 5-15% of a 200k-token window on boilerplate alone. `context-bloat` measures the damage and helps you fix it.
Install
# one-shot, no install needed
uvx context-bloat scan .
# permanent install
pipx install context-bloat
# or with uv
uv tool install context-bloat
Usage
context-bloat [--json] [--share] [--no-funnel] [path]
Commands:
scan [path] Audit context bloat (default command, default path: .)
fix [path] Generate optimized copies of rule files
Running `context-bloat` with no arguments is the same as `context-bloat scan .`.
Supported files
| File / Pattern | Agent |
|---|---|
CLAUDE.md |
Claude Code |
.claude/commands/*.md |
Claude Code |
.cursorrules |
Cursor |
.cursor/rules/*.mdc |
Cursor |
.windsurfrules |
Windsurf |
AGENTS.md |
OpenCode / generic |
Related Skills
Context Audit
Audit how much input-token bloat the read-guard removes on this repo
Agent Token Audit
Zero-dependency read-only script to audit Claude Code & Codex token burn, latency, and context bloat
Unclog
Audit MCP servers, skills, and CLAUDE.md bloat eating your Claude Code context window.
Context Gardening
Audit CLAUDE.md, its linked docs, and .claude/memory/ against the patterns from "A good AGENTS.md is a model u
11 Portfolio And GitHub Auditor
Load when the owner asks to audit their GitHub profile, pinned repositories, or portfolio website before apply
Tokendiet MCP
Zero-dependency Open-Core MCP server, CLI & GitHub Action to audit MCP JSON Schema token weight, simulate mult
Related Agents
Mb Context Doctor
Diagnoses CLAUDE.md and .claude/ bloat. Runs token counts, identifies what's redundant or stale, and proposes
Agent Harness Optimizer
Context window, token budget, and agent harness optimization specialist. Analyzes transcript bloat, tunes prom
Context Memory Manager
Context Window & Token Optimization Specialist. Manages token budgets, compresses prompts (RTK/Caveman), imple