squeez
by claudioemmanuel·★ 121·Score 49
squeez is an MCP server that provides token compression and optimization for AI CLI hosts via hooks.
Overview
squeez is a sophisticated token optimization tool that reduces context usage in AI CLI environments through multiple compression techniques. It implements hooks for major AI hosts including Claude Code, Copilot CLI, OpenCode, Gemini CLI, and Codex CLI, offering up to 95% bash compression, cross-call deduplication, and adaptive intensity based on session pressure. The project includes a built-in MCP server with 13 read-only tools that allow LLMs to query session memory directly, providing a rich context engine that tracks file access patterns and tool usage.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose Squeez when working with multiple AI CLI hosts and need significant token compression, particularly for bash-heavy workflows.
When NOT to choose this
Avoid Squeez if you primarily use AI assistants that don't support hook-based integration or if you need write capabilities beyond compression.
Tools this server exposes
12 tools extracted from the READMEsqueez_filterCompress input from stdin using squeez's filtering algorithm
squeez_compress_mdCompress markdown files in-place using squeez's algorithm
squeez_benchmarkRun benchmarks to test squeez's compression effectiveness
squeez_protocolPrint the auto-teach payload that helps LLMs learn squeez's protocol
squeez_calibrateAuto-tune squeez configuration based on benchmark results
squeez_budget_paramsOutput JSON budget parameters for a specific tool
squeez_agent_costsTrack and analyze sub-agent token costs
squeez_session_summaryGet a structured summary of the previous session
squeez_token_trackingTrack token usage across tool calls
squeez_cross_call_dedupeCheck for and remove redundant content across tool calls
squeez_memory_file_statsAnalyze memory files for compression opportunities
squeez_config_analyzerAnalyze squeez configuration for optimization opportunities
Note: Tool names inferred from command examples and documentation. While the README mentions exposing 13 read-only tools via MCP server, specific tool names aren't clearly listed in a dedicated tools section. Tools were created based on the comma
Comparable tools
Installation
Installation
Three methods — all produce the same result:
curl (recommended)
curl -fsSL https://raw.githubusercontent.com/claudioemmanuel/squeez/main/install.sh | shnpm / npx
npm install -g squeez
npx squeezcargo
cargo install squeezMCP Server Setup
No special MCP setup is required as squeez includes its own MCP server. Run with:
squeez mcpClaude Desktop Integration
Add to Claude Desktop config:
{
"mcpServers": {
"squeez": {
"command": "squeez",
"args": ["mcp"]
}
}
}FAQ
- Which AI CLI hosts does squeez support?
- squeez supports Claude Code, GitHub Copilot CLI, OpenCode, Gemini CLI, and OpenAI Codex CLI, with additional support for Pi through a TypeScript extension.
- How much token compression can I expect?
- squeez can reduce bash output by up to 95%, with compression rates varying by scenario. Benchmarks show reductions between 99% for repetitive outputs to 22% for markdown files.
Compare squeez with
Last updated · Auto-generated from public README + GitHub signals.