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 Verification Bottleneck and Browser Automation Plugin Solution
A developer reports that verification remains the slowest part of using Claude Code, requiring manual testing of features. They found a browser automation plugin that lets the agent verify real product flows before marking tasks complete.

Memctl: Open Source MCP Server for Persistent Memory in AI Coding Agents
Memctl is an open source MCP server that provides AI coding agents with persistent memory across sessions, machines, and IDEs. Built primarily with Claude Code in two weeks, it stores project context and serves it back in subsequent sessions.

Building an Agentic RAG for Obsidian with Claude and an Eval Harness to Detect Hallucinations
A developer built an agentic RAG system over an Obsidian vault to let Claude answer questions from engineering books, then created an eval harness using Claude Sonnet as a judge to detect when the agent was confidently wrong. Rubric iterations improved judge-human agreement from 39% to 94%.

TrustLog Dynamics: Python Daemon Uses Bond Math to Kill Rogue AI Agents
TrustLog Dynamics is a Python daemon that monitors AI agent API costs in real time and terminates processes using two quantitative finance methods: convexity detection for accelerating costs and zero-variance detection for mechanical loops.