whereismyai
Squeeze
Squeeze is a command-line tool that reduces coding agent token usage by shrinking tool output while keeping crucial changes.
Squeeze reads tool output on standard input and prints the smallest text that carries every change, failure, or decision. It is built specifically for coding agents that pay for every byte they read, helping to save money and preserve context window space. It parses the format and keeps essential changes, failures, and decisions instead of blindly truncating or cutting text. It works with any agent that runs shell commands and needs no special platform integration or plugins. Supported formats include terraform show -json, terraform validate -json, tflint --format json, checkov -o json, trivy, pytest, go test -json, and generic text.
Squeeze at a glance
Key features
- Parses tool output to keep changes, failures, and decisions
- Strips out secrets and sensitive values from output
- Outputs plain text with no color codes or control characters
- Operates as a simple Unix pipe between tools and agents
- Provides optional JSON output containing compression ratios
- Saves unmodified input to a raw directory when requested
- Supports exit codes for failures, conditions, and errors
Use it for
- Reducing token consumption for coding agents reading test outputs
- Filtering large infrastructure plan outputs to save context window space
- Stripping sensitive values from tool outputs before model consumption
- Parsing test and lint results down to essential failure details
Alternatives to Squeeze
- jevgrep — Reduces coding agent costs by providing targeted, relevant repository context.
- RTK — Reduces AI context output noise by 56 to 90 percent with zero configuration.
- JFrog Boost — Lowers token usage for AI coding agents through input filtering.
- Lcc — Cuts token counts significantly without losing exact session details.
- Unspin — Shows live progress, step names, and ETAs for coding agent shell commands instead of a spinner.
- Stop That Shit — Enforces task boundaries to stop unnecessary AI agent actions.
- Freebuff — Access multiple coding AI models for free without subscriptions.
- Lessloc — Reduces AI coding agent code output by up to 36 percent and costs by 26 percent.
- Agent Purge — Manage system prompts for multiple coding agents from one place.
- Hazzel — Brings inspectable safety mechanisms, local model support, and zero subscriptions.
- Agent Archive — Hand off coding sessions between Claude Code, Codex, and Cursor across machines.
- Command Code — Repairs open model tool calls and learns developer patterns automatically.
All Squeeze alternatives