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

✍️ OpenClawRadar📅 Published: April 16, 2026🔗 Source
Squeez tool compresses bash output 90%+ to extend Claude Code context window
Ad

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
Ad

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

Ad

👀 See Also