Squeez
Optimizes AI CLI interactions by compressing token usage, deduping context, and injecting prompt personas for improved efficiency.
Squeez is an end-to-end token optimizer designed to significantly reduce token consumption for popular AI CLIs, including Claude Code, GitHub Copilot CLI, OpenCode, Gemini CLI, and OpenAI Codex CLI. It achieves this by compressing bash output by up to 95%, intelligently collapsing redundant calls, and automatically injecting a terse prompt persona. Operating with zero new runtime dependencies, Squeez enhances efficiency and lowers costs by ensuring that only essential context is passed to the language model, featuring advanced techniques like signature-mode for code reads, cross-call deduplication, and a self-teaching protocol.