AgentIndex icon
AgentIndex
ToolsCategoriesTrendingNewCompare
Submit Tool
Home/
Code Assistant/
squeez
squeez logo

squeez

Active·★ 129·Apache-2.0·Updated 2026-05-18
★ Trending★ Code Assistant★ Dev Tooling

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.

squeez is an end-to-end token optimizer for AI CLIs that compresses bash output up to 95%, collapses redundant calls, and injects a terse prompt persona. It registers hooks automatically with zero new runtime dependencies, supporting multiple AI CLI hosts like Claude Code, GitHub Copilot CLI, OpenCode, Gemini CLI, and Codex CLI.

#ai-cli#bash-hook#claude-code#codex-cli#context-engineering#context-window#copilot-cli#gemini-cli
$ Install
$ curl -fsSL https://raw.githubusercontent.com/claudioemmanuel/squeez/main/install.sh | sh
↗ Visit site★ GitHub
01

Features

01Bash compression: Intercepts every command via PreToolUse hook and applies smart filter, dedup, grouping, and truncation for up to 95% reduction.
02Context engine: Cross-call redundancy detection using exact hash (FNV-1a) and fuzzy trigram-shingle Jaccard comparison (≥0.85 threshold).
03Summarize fallback: Outputs exceeding 500 lines are replaced with a ≤40-line dense summary; benign outputs have doubled threshold.
04Adaptive intensity: Scales compression limits based on session budget usage (Full below 80%, Ultra above).
05MCP server: Runs a JSON-RPC 2.0 server over stdio exposing 13 read-only tools for LLM interaction.
02

Compatibility

Claude Code
Claude Code
Verified via docs
Copilot CLI
Copilot CLI
Verified via docs
OpenCode
OpenCode
Verified via docs
Gemini CLI
Gemini CLI
Verified via docs
Codex CLI
Codex CLI
Verified via docs
03

Quick start

1
$ curl -fsSL https://raw.githubusercontent.com/claudioemmanuel/squeez/main/install.sh | sh
04

Use cases

↳Reduce token costs for AI CLI interactions, saving up to 92% on monthly API bills.
↳Compress verbose command outputs (e.g., git logs, build errors, Docker logs) to stay within context limits.
↳Optimize multi-turn sessions by eliminating redundant information and providing structured memory summaries.
05

Alternatives

Context7 logo
Context7★ 56.4k
MCP Server that provides up-to-date code documentation for LLMs and AI code editors.
vs →
awesome-cursorrules logo
awesome-cursorrules★ 39.8k
📄 Configuration files that enhance Cursor AI editor experience with custom rules and behaviors
vs →
context-mode logo
context-mode★ 16.0k
Context window optimization for AI coding agents. Sandboxes tool output, 98% reduction. 12 platforms
vs →
Auto-claude-code-research-in-sleep logo
Auto-claude-code-research-in-sleep★ 11.0k
ARIS ⚔️ (Auto-Research-In-Sleep) — Claude Code skills for autonomous ML research: cross-model review loops, idea discovery, and experiment automation via Codex MCP
vs →
agents-best-practices logo
agents-best-practices★ 1.1k
Provider-neutral Agent Skill for Codex, Claude Code, and agentic harness design.
vs →
open-agreements logo
open-agreements★ 34
Fill standard legal agreement templates and produce signable DOCX files.
vs →
onetool-mcp logo
onetool-mcp★ 19
🧿 One MCP for developers - no tool tax, no context rot. 100+ tools including Brave, Google, Context7, Excalidraw, AWS, Version Checker, Excel, File Ops, Database, Playwright, Chrome DevTools and many more.
vs →
md2wechat-skill logo
md2wechat-skill★ 2.6k
Markdown to WeChat CLI | 一键排版发布到微信公众号:支持 40+ 排版样式和专业主题 、AI 配图 、批量发布
vs →
See all alternatives →

Related searches

squeez AlternativesBest Code Assistant Tools 2026Open Source Code Assistantsqueez Tutorialsqueez Vs Competitorsai-clibash-hookclaude-code

Comments

Log in to leave a comment
  • K
    Kendall KimApr 9, 2026

    Good for developers who want to reduce API costs without changing their workflow.

  • E
    Emerson JacksonMar 28, 2026

    Works across 5 different AI CLI hosts for broad compatibility.

  • Logan Chen
    Logan ChenMar 12, 2026

    Hook-based token compressor for Claude Code, Copilot CLI, and 3 other AI CLI hosts.

  • E
    Ellis GarciaMar 11, 2026

    Hook-based compression is transparent — works automatically without prompt changes.

On this page
01Features02Compatibility03Quick start04Use cases05Alternatives
Stats
GitHub Stars★ 129
Last commit1w ago
StatusActive
LicenseApache-2.0
CategoryCode Assistant
Trend (30d)
+5.1↑ 0.8%
Links
Documentation↗Discussion↗Issues↗Releases↗

Deploy on DigitalOcean — Get $200 Free Credit

Ad
© 2026 AgentIndex.app|Built by a 10-year iOS Developer.
QYSGitHubBuy me a coffee ☕

Browse by Category

Code AssistantWorkflow AutomationRAG / Knowledge BaseMulti-AgentBrowser AutomationLLM InfraDev ToolingObservability

Not affiliated with Anthropic, OpenAI or Microsoft.