Optimize command outputs.
Speed up Claude Code.

Zero-setup output compressor for Claude Code. Save 60%–90% tokens automatically.

Installation & Setup
# Install globally via Bun
$ bun install -g token-cost-cutter
# Install globally via NPM
$ npm install -g token-cost-cutter
# Connect hook to auto-optimize Claude Code
$ tcc init -g
Check Savings
# Show total tokens and costs saved
$ tcc gain
# View details of recent optimized commands
$ tcc gain --history
# Show a 30-day savings ASCII chart
$ tcc gain --graph

Visual SQLite reporting built-in

TCC records every saved token locally. Run stats commands to see real-time analytics directly in your terminal.

TCC Gain Stats

Built for speed and reliability

🎯

Zero Accuracy Loss

Keeps critical compile errors and test failures untouched while cleaning noisy log files.

🧠

Improves AI Accuracy

Fewer tokens mean Claude doesn't get distracted, leading to faster and more accurate bug fixes.

🛡️

Fail-Safe Tee Mode

Saves full raw logs in a temporary file if a command fails, so Claude never misses any details.