token-cost-cutter
v0.1.11
Published
Auto-optimize terminal outputs for Claude Code instantly
Maintainers
Readme
Token Cost Cutter (TCC)
Auto-optimize terminal outputs for Claude Code. Save 60–90% tokens with zero setup.
Quick Start
1. Install globally
# Via Bun
bun install -g token-cost-cutter
# Via NPM
npm install -g token-cost-cutter2. Connect to Claude Code
tcc init -gRestart Claude Code after running this.
How It Works
- Auto-Intercept — Runs silently when Claude executes shell commands.
- Optimize — Strips ANSI noise, deduplicates logs, removes empty lines.
- Save Tokens — Delivers compact output to Claude, reducing costs by up to 90%.
Check Your Savings
tcc gain # Total tokens and cost saved
tcc gain --history # Recent command breakdown
tcc gain --graph # 30-day ASCII savings chartAll data is stored locally in SQLite. Nothing leaves your machine.
Accuracy & Reliability
- Zero Loss — Only strips structural noise. Compile errors, test failures, and stack traces stay intact.
- Improves AI Accuracy — Clean data helps Claude isolate bugs faster instead of getting lost in massive logs.
- Fail-Safe Tee Mode — On failure, full raw output is saved to a temp file so Claude can access it instantly.
Links
- 🌐 Website: tcc.kodelyx.in
- 📦 NPM: token-cost-cutter
- 🐙 GitHub: kodelyx/token-cost-cutter
License
Apache License 2.0 — see LICENSE.
