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

0Latency: A Persistent Memory Layer for AI Agents via MCP
0Latency is an MCP server that adds persistent memory to Claude and other AI agents, storing memories across sessions to prevent context loss. It works natively with Claude Desktop, Claude Code, claude.ai, GPT, Gemini, Cursor, and any MCP-compatible agent.

Helix: Open-Source Framework Turns Claude into Personal AI Agent for macOS
Helix is an open-source framework that connects Claude via Claude Code in Terminal to macOS through four MCP server plugins, enabling Claude to control applications, maintain persistent memory, run scheduled tasks, and operate with local voice processing.

Claude 4.6 Opus Reasoning Distilled to 14GB for Apple Silicon via MLX Quantization
A developer has quantized a Qwen 3.5 27B model distilled from Claude 4.6 Opus reasoning trajectories from 55.6GB to 14GB using MLX for Apple Silicon, achieving ~16 tokens/sec on an M4 Pro while maintaining the model's analytical reasoning capabilities.

Identity and Reputation Layer for OpenClaw Agents
A developer team built MCP-I and IdentiClaw to solve identity loss in multi-step agent workflows, plus knowthat.ai as a reputation registry. They donated the MCP-I spec to the Decentralized Identity Foundation.