Token-Saver

Keep the signal. Stop rereading the same failures.
Token-Saver compresses the terminal output your AI coding assistant reads —
git diff, pytest, npm install, terraform plan, kubectl, docker — to
leave more room for the code, instructions, and next decision. Compression runs
locally, without another model call or an output upload.
New in v3: Delta. Run your tests,
edit, run again: see which failures are new, changed, or unchanged. Fresh
diagnostics keep their full details; repeated ones can become a short inventory,
with details available on demand. Delta is an experimental, opt-in feature in
3.0.0 for supported pytest and Ruff commands in Claude Code.
36 specialized processors cover git, pytest, jest, cargo, go, docker,
kubernetes, terraform, pulumi, helm, ansible, aws, gcloud, and more. Their rules
reduce progress logs and boilerplate, with failure fixtures and optional quality
contracts checking important diagnostics.
Ordinary compression runs automatically in Claude Code and Antigravity
CLI after installation. Codex can use an explicit wrapper with
project instructions. Results depend on the command and output;
already concise or unsupported output may stay unchanged.
Why developers use Token-Saver:
- 💸 Less output to process — many benchmark scenarios save 60-99% of estimated output tokens; billing impact depends on your usage and provider.
- 🔁 See what changed — opt-in Delta compares repeated pytest/Ruff runs and keeps retained details one command away.
- 🪟 Bigger effective context — fit more real work into the same context window.
- 🎯 Tested preservation — failure fixtures check important diagnostics; add quality contracts for your own workflows.
- 🔌 Install once, forget it — works automatically in the background, no prompts to change.
- 🛡️ Local compression — pure regex/parsing with no network calls in the compression path.
Table of Contents
Before & After
| Command | Raw Output | Compressed | Savings |
|---|
git diff (5 files, 20 context lines each) | 2,270 tokens | 546 tokens | 76% |
git diff --stat (25 files) | 526 tokens | 21 tokens | 96% |
git log --oneline (50 entries) | 568 tokens | 117 tokens | 79% |
pytest (500 tests, 2 failures) | 6,744 tokens | 307 tokens | 95% |
pytest (200 passed, 30 warnings) | 3,543 tokens | 80 tokens | 98% |
jest (50 suites, all passing) | 570 tokens | 32 tokens | 94% |
npm install (220 packages) | 3,843 tokens | 4 tokens | 99.9% |
pip install -r requirements.txt (30 packages) | 1,797 tokens | 88 tokens | 95% |
cargo build (120 crates) | 934 tokens | 21 tokens | 98% |
docker build (20 steps) | 1,682 tokens | 207 tokens | 88% |
curl download (100 progress lines) | 2,122 tokens | 0 tokens | 100% |
ruff check (110 violations, 4 rules) | 1,475 tokens | 186 tokens | 87% |
eslint (55 violations, 2 rules) | 1,292 tokens | 144 tokens | 89% |
tree (350+ lines) | 1,840 tokens | 136 tokens | 93% |
find . -name '*.py' (205 results) | 1,294 tokens | 217 tokens | 75% |