Distil measures what your coding agent's context tooling actually costs you —
in dollars per solved task and in changed decisions: any compressor, your provider's own compaction, and its own.
uv tool install distil-llm && distil setup
Other installs (curl, Homebrew, pipx, Windows): Install your way
distil wrap -- claude # run your agent through distil (or let `distil setup` make it always-on)
distil savings # what it saved you, from your own traffic
distil doctor # if something looks off
distil audit --compressor anthropic-context-editing --cap-usd 1 # did it change what your agent does, and what it cost? (opt-in, capped)
distil audit report # helped, hurt, or can't tell yet, per compressor
Distil also compresses (lossless by default, every byte recoverable), and holds that compressor to the same measurements.
What the measurements say today (2026-10-06; every figure links to its artifact)
- On short coding tasks no compressor is shown to save money. SWE-bench Lite, 298 tasks, same model and grader: distil is at parity with no compression ($0.0393 vs $0.0387 per solved task). RTK looked 20.7% cheaper per task until we found that its arm read other arms' prompt cache; re-priced as a cold run it is −6.5% [−13.1%, +0.1%], not significant. Selective Context and Anthropic context editing are not cheaper. Headroom has not run there yet. Scoreboard →
- Long sessions: inconclusive. A 7-task long-horizon pilot (median 63–69 steps) shows no cost difference for distil or RTK; on the 6 tasks without one crashed attempt, distil cost 9.7% more than plain. Run →
- Why. An offline simulator that reproduces the provider's bill within 2.5% on runs it never saw finds that lossless policies change cost by less than 0.2%, and that lossy compression saves money only if the agent does not take extra steps to make up for what was removed. Measuring that is the next live A/B. Simulator → · Why RTK looked cheaper →
- On the maintainer's own metered Claude Code traffic (13,191 requests, September 2026) distil removed an estimated 8.3–9.2% of the bill, cache priced in, its own spend netted out (source, method). That is a same-trajectory estimate: it assumes the agent behaved the same, which is exactly what the A/B above has to check.
Why trust the measurements