Squeez tool compresses bash output 90%+ to extend Claude Code context window

Squeez is a background hook that automatically compresses raw bash output before it reaches Claude Code, addressing context window overflow during longer tasks.
Problem and solution
When using Claude Code for extended tasks, raw bash output from commands like ps aux, docker logs, and git log can fill the context window with thousands of tokens of unnecessary noise. This causes the model to lose track of ongoing work mid-session. Squeez compresses this output automatically without changing your workflow.
Performance and installation
The tool achieves an average reduction of 92.8% across 19 common commands. This compression helps sessions last longer and maintains response coherence further into tasks.
Installation options:
- One-line install:
curl -fsSL https://raw.githubusercontent.com/claudioemmanuel/squeez/main/install.sh | sh - Available on npm and crates.io
How it works
Squeez runs as a background hook that intercepts bash output before it reaches Claude Code. It identifies verbose command output and applies compression algorithms to reduce token usage while preserving essential information. The tool specifically targets common development commands known to generate excessive output.
📖 Read the full source: r/ClaudeAI
👀 See Also

Multi-Agent Trading Council System Using GPT-5.1 and Claude 4.6
A developer built a multi-agent trading system using ZagiHQ for orchestration with three parallel data-gathering agents and three LLMs (GPT-5.1, Claude 4.6 Opus, Claude 4.6 Sonnet) that must agree on trades. The system filters out setups through disagreement and requires manual approval.

sourcecode: Open-Source CLI to Compress Large Java/Spring Monorepos for Claude
sourcecode CLI reduces a ~4k-file Java/Spring monorepo from ~3M tokens to 1.7k tokens (compact mode). Currently focuses on context compression, git hotspot detection, and symbol lookup.

Open-source Specialist Dispatch adapter delegates complex tasks to Claude Code
expert-dispatch is a ~500-line bash script that lets a cheap AI assistant delegate complex coding tasks to Claude Code CLI. It uses commands like dispatch-cc run to send tasks and maintains per-project directories with CLAUDE.md for persistent context.

Knowledge Raven: A Searchable Knowledge Base Plugin for Claude
Knowledge Raven is a tool that lets Claude search your documents from sources like Confluence, Notion, Google Drive, Dropbox, and GitHub via a Claude Desktop plugin or MCP server, providing semantic search, keyword search, and full document retrieval.