Hook-based token compressor for 5 AI CLI hosts (Claude Code, Copilot CLI, OpenCode, Gemini CLI, Codex CLI). Up to 95% bash compression, signature-mode for code reads, cross-call dedup, MCP server, self-teaching protocol. Zero runtime deps.
MCPpedia last refreshed this data
Squeez is an MCP server that hook-based token compressor for 5 AI CLI hosts (Claude Code, Copilot CLI, OpenCode, Gemini CLI, Codex CLI). Up to 95% bash compression, signature-mode for code reads, cross-call dedup, MCP server, self-teaching protocol. Zero runtime deps. It exposes 2 tools over stdio and sse, requires no API key, and scores 85/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"squeez": {
"args": [
"-y",
"squeez"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
End-to-end token optimizer for Claude Code, GitHub Copilot CLI, OpenCode, Gemini CLI, and OpenAI Codex CLI. Compresses bash output up to 95%, collapses redundant calls, and injects a terse prompt persona — automatically, with zero new runtime dependencies.
Run this in your terminal to verify the server starts. Then let us know if it worked - your result helps other developers.
npx -y 'squeez' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories - click any category to see the underlying evidence.
Malicious code in squeez (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (a953148095c35441147f1622c4810e0b946e5d120a74cfbe14f1771276a731d7) squeez@1.38.0 declares a postinstall hook ("postinstall": "node install.js") that runs automatically on npm install. install.js imports child_process, fs, https, and os; branches on process.platform; reads os.homedir(); performs fs.existsSync/readFileSync checks against paths under the user's home directory; and issues https.get requests to
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in developer-tools / ai-ml
XcodeBuildMCP provides tools for Xcode project management, simulator management, and app utilities.
🛡️ BLA (Blind LLM Agents) — Adversarial defense shield that protects binaries, Electron apps, JS bundles, Python, and WebAssembly against AI reverse-engineering agents like REA. Poison -> Exhaust -> Hallucinate.
The official MCP server implementation for the Perplexity API Platform
Unified real-time search engine skill for AI agents.
MCP Security Weekly
Get CVE alerts and security updates for Squeez and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
squeez decides what tool output reaches your AI coding agent's context — and shows you what that saved.
It sits in the hooks of seven agent CLIs (Claude Code, GitHub Copilot CLI, OpenCode, Gemini CLI, OpenAI Codex CLI, Pi, Hermes) and compresses command output, re-reads, screenshots and repeated results before the model reads them. Compression is reversible (anything dropped is one squeez_retrieve away), refuses net-loss rewrites, and fails open. One static Rust binary, zero runtime dependencies.
$ squeez receipt
squeez receipt — last 7 day(s)
sessions 27 (9951 min)
tokens avoided 323,964 (squeez chars/4 estimate)
cost avoided ≥ $1.30 at claude-opus-5-5 input $4.00/MTok (floor: cache re-reads not counted)
context avoided 0.3 × 1000K-token windows
curl -fsSL https://raw.githubusercontent.com/claudioemmanuel/squeez/main/install.sh | sh # recommended
npm install -g squeez # or: npx squeez — pre-built binary, Node ≥ 16
cargo install squeez # build from source, Rust stable
Each puts the binary at ~/.claude/squeez/bin/squeez and runs squeez setup, which registers the hooks in every host CLI it detects. Restart your CLI afterwards. Windows needs Git Bash.
squeez setup --host=claude-code,codex # register only these hosts (or SQUEEZ_HOSTS=…)
squeez uninstall [--host=<slug>] # remove hooks; sessions and config.ini are kept
squeez update [--check] # self-update, SHA256-verified
squeez doctor # health check: hooks, registration, config, host contract
| Host | Bash | Read/Grep limits | Session memory | Notes |
|---|---|---|---|---|
| Claude Code | ✅ wrap | ✅ hard | ✅ | Output rewrite for Read/Grep/MCP, sub-agent metering, compaction recovery |
| Copilot CLI | ✅ wrap | ✅ hard | ✅ | Memory in ~/.copilot/copilot-instructions.md |
| OpenCode | ✅ wrap | ✅ hard | ✅ | Plugin ~/.config/opencode/plugins/squeez.js; MCP calls skip hooks (sst/opencode#2319) |
| Gemini CLI | ✅ wrap | 🟡 soft (GEMINI.md) | ✅ | Rewrite schema pending (gemini-cli#25629) |
| Codex CLI | ✅ wrap | 🟡 soft (AGENTS.md) | ✅ | read_file/grep hooks pending (codex#18491) |
| Pi | ✅ wrap | ✅ hard | ✅ via skill | Extension ~/.pi/agent/extensions/squeez/ |
| Hermes | ✅ output hook | ❌ | ✅ | Opt-in: hermes plugins enable squeez-fallback |
Compresses what the agent reads
squeez wrap: a handler for 60+ programs (git, cargo, npm, pytest, jest, tsc, kubectl, terraform, …), 41 shipped filter rules, then smart-filter → dedup → log-template → relevance truncation. Risky commands (rm -rf, git push --force, …) run unwrapped under the host's own permission rules.identical to Read #N; read again after a small edit, it comes back as one diff hunk against the earlier read.