























Every MCP, skill, hook, and CLAUDE.md line you've installed occupies your context window on every turn. unclog scans your Claude Code install, measures the bloat, and offers a reversible fix.
# install
uv tool install unclog
# run
unclog
| Category | What unclog surfaces |
|---|---|
unclog never writes without a confirmed prompt. After the report, one sectioned picker opens with:
Picker keys: ↑↓ move · space toggle · a / A check section / all · n / N clear section / all · enter apply · q quit. A full snapshot is written to ~/.claude/.unclog/snapshots/<id>/ before any change.
unclog restore # restore the most recent snapshot
unclog restore <id> # restore a specific one
unclog restore --list # enumerate every snapshot
unclog # scan global + every known project, report, fix
unclog --project <path> # narrow the audit to a single project
unclog --report # scan + report, skip the fix flow
unclog --json # structured output (schema unclog.v0.1)
unclog --no-probe-mcps # skip the live MCP probe (keeps the scan read-only)
unclog --list-claude-md # diagnostic: list every auto-injected context file with token counts
unclog --yes # apply every auto-checked finding
unclog --verbose # restore the full pre-picker chrome (scan-meta, tips, also-running)
unclog --no-animation # disable the post-apply baseline countdown
unclog --plain # ASCII-only, CI-safe
NO_COLOR=1 or a non-TTY pipe auto-enables --plain. The default mode trims chrome once you've seen it; pass -v/--verbose to bring it back.
tiktoken. No telemetry, no accounts, no network.unclog runs, prints, optionally applies, exits.Python 3.11+, Claude Code ≥ 2.1.90, macOS or Linux. (Windows: v0.2.)
uv sync --all-extras --dev
uv run pytest
uv run ruff check src tests
uv run mypy src/unclog
MIT. See LICENSE.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。