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

Claude Code Plugin Analyzes Token Waste and Anomalies Locally
A developer built a Claude Code plugin that diagnoses token waste by detecting six anomaly types from local session data. The tool analyzed 8,392 sessions and found 1,015 anomalies, with ExcessiveToolUse being the most common.

Integrating Local LLM Agents with ComfyUI for Natural Language Batch Image Generation
A developer shares how they wired their local OpenClaw agent to ComfyUI, enabling natural language commands for batch image generation workflows. The integration uses a custom agent skill that maps English requests to ComfyUI workflow JSON and handles API communication.

8 Advanced Claude Code Tips: Cost Saving, Context Management, Custom Commands
Practical tips from heavy daily use of Claude Code, covering git workflow automation, multimodal image input, API usage tracking, context compaction, session resumption, rule management, thinking triggers, and custom commands.

Using OpenAI Codex IDE with Local Ollama Models in VSCodium
OpenAI Codex IDE can be configured to work with local Ollama models in VSCodium using specific configurations in the config.toml file.