TokenPincherGet started

Claude Code /compact alternative: TokenPincher

Claude Code's built-in /compact command is free and does a real job — it summarizes your chat history when the context window fills up. TokenPincher does something different: it automatically compresses tool output and logs before they hit the model, lossless by default, on every request, with no manual step.

Install TokenPincher
npx tokenpincher init

Feature comparison

Feature/compactTokenPincher
CostFree, built into Claude CodeFree tier, paid plans for more
TriggerManual — you run /compactAutomatic, runs on every request
ScopeSummarizes chat historyCompresses tool output and logs, not just chat
FidelitySummarized context is lossyLossless by default (truncates only past 400 lines)
SetupNone, already in Claude CodeOne-line install (CLI or MCP)
ProofNo savings reportBuilt-in stats screen, tokens + $ saved

Why /compact isn't the full answer

/compact only runs when you tell it to (or when Claude Code forces it near the context limit), and it works by summarizing — which means some detail is genuinely lost. It also only touches chat history, not the tool output and logs that make up most of an agentic coding session's token spend.

What TokenPincher adds

TokenPincherruns automatically on every request instead of waiting for you to notice your context is full. It targets tool output and logs — the biggest source of token spend in Claude Code — and compresses lossless by default rather than summarizing. The two aren't mutually exclusive: you can use /compact for chat history and TokenPincher for everything else. Read the reduce Claude Code token usage overview or the full guide for more. Also using Codex? See the Codex page.

Try TokenPincher

Install
npx tokenpincher init