Skip to main content

Audit your Claude Code installation and clear context-window bloat. Local-only.

Project description

unclog

PyPI GitHub stars

Every agent, skill, and MCP server you've installed occupies your Claude Code context window on every turn. unclog scans your install, shows you what's costing tokens, and lets you handpick what to delete — locally, with no telemetry, no accounts, and no network calls.

# install
uv tool install unclog

# run
unclog

unclog scan output

What it shows

  • Every agent in ~/.claude/agents/, with its token cost.
  • Every skill in ~/.claude/skills/, with its token cost.
  • Every slash command in ~/.claude/commands/, with its token cost.
  • Every MCP server declared in ~/.claude.json (global and per-project), with its measured session-token cost when available.
  • A baseline — the total tokens loaded before you type a single message.

Remove what's costing you

unclog interactive curate flow

After the scan, one sectioned picker opens. Tick the agents / skills / commands / MCPs you want to remove, hit enter, confirm once, done. A post-apply line shows how many tokens you saved and the new baseline.

Picker keys: ↑↓ move · space toggle · a / A check section / all · n / N clear section / all · enter apply · q quit.

Actions are destructive. Deleted files are removed from disk — there is no undo command. MCP servers are a softer case: they're renamed to __unclog_disabled__<name> in your config, so you can revive one by hand-editing ~/.claude.json and removing the prefix.

Requirements

Python 3.11+, Claude Code ≥ 2.1.90, macOS or Linux.

Development

uv sync --all-extras --dev
uv run pytest
uv run ruff check src tests
uv run mypy src/unclog

License

MIT. See LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unclog-0.2.1.tar.gz (456.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unclog-0.2.1-py3-none-any.whl (45.7 kB view details)

Uploaded Python 3

File details

Details for the file unclog-0.2.1.tar.gz.

File metadata

  • Download URL: unclog-0.2.1.tar.gz
  • Upload date:
  • Size: 456.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for unclog-0.2.1.tar.gz
Algorithm Hash digest
SHA256 66a00b9b46e5291e68911db031abd189b01410a157dabeed62ea9da3aa36e26f
MD5 db1b9847665299d899b87ddb06ccb5b1
BLAKE2b-256 2c25a962ab4f9f13e2eea6d774055b69881312e470d2548b4ae33effc310ed2c

See more details on using hashes here.

File details

Details for the file unclog-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: unclog-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 45.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for unclog-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f371ecb569533f205aaf73ed9379842be20951da076511a0a2b8286132e5c63e
MD5 35cc7cf4dd3eefb0fd986680190b3557
BLAKE2b-256 b6e52116a650d95fb49e34c72a12cf0452b7ad0e4c8decead4317c79e0c12b79

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page