Distil — AI skill for Claude Code
Measure what context compression actually costs an LLM agent: where a session's tokens go, and whether a rewrite pays for the prompt cache it invalidates.
How to install Distil
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open munhq/distil and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Distil does
Measure what context compression actually costs an LLM agent: where a session's tokens go, and whether a rewrite pays for the prompt cache it invalidates. Rust crate, MCP server and benchmark harness.
Alternatives in AI
- Manifest — Real-time cost observability for OpenClaw agents — track tokens, costs, messages, and model usage 4.1k ★
- Jcodemunch MCP — Cut AI token costs 95%+ on code exploration 2.6k ★
- Paritok 4b V1 — Non-destructive compression gateway for AI coding agents 1.4k ★
README
[](https://www.npmjs.com/package/@munhq/distil) [](https://registry.modelcontextprotocol.io/v0/servers?search=distil) [](https://smithery.ai/servers/munhq/distil) [](LICENSE-MIT)
[](cursor://anysphere.cursor-deeplink/mcp/install?name=distil&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBtdW5ocS9kaXN0aWwiXX0=) [](vscode:mcp/install?%7B%22name%22%3A%22distil%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40munhq%2Fdistil%22%5D%7D)
claude mcp add distil -- npx -y @munhq/distil
No account, no API key, nothing to configure. The package is a small wrapper that fetches the binary for your platform and verifies it against the published checksums; `install.sh` and a prebuilt binary remain for anyone without Node.
Measure what context compression actually costs, on real agent traffic.
Every tool in this space publishes a savings percentage measured on its own fixtures. What none publishes is the denominator: what share of a real session it is allowed to touch, and what that share costs once prompt-cache pricing is applied. `distil` measures both on transcripts an agent actually wrote.
**What is prior art, and what is not.** The cache arithmetic below is not a discovery. Anthropic's [context editing docs](https://platform.claude.com/docs/en/build-with-claude/context-editing) state that clearing tool results invalidates the cached prefix, and ship `clear_at_least` so a clear only fires w
Related Skills
Tokenslim
TokenSlim — spend fewer tokens on every LLM API call: prompt compression, 350-skill router, model cascade, sem
Furl Ctx
Context compression for AI agents — cut token usage costs with retrievable CCR compression. Rust core + Python
AI Timeline
See what AI coding agents actually do, across one session or thousands. Timelines, tool calls, tokens and cost
Lm Resizer
Rust-native context compression for Claude Code, Codex & MCP agents: filters & compresses noisy tool output (t
AI Readiness Review
Evaluate whether a new AI coding agent can successfully work on this repository using only the AI Knowledge Ba
Compressor
Reduce token usage in AI coding agents (Claude Code, Copilot, Cursor) with mode-switchable instruction packs a
Related Agents
X402 Archivist
Cache layer for x402 operations. Use proactively BEFORE any paid fetch (cache check) and AFTER any payment (ca
Sub Benchmark Runner
Dept 4 sub. Runs standard benchmark tasks to measure agent and model reliability. Reports only, no product cha
Agent TDD Crate Agent
Use when implementing one or more tasks in a specific Rust workspace crate with strict TDD discipline. Trigger