Squeez banner
claudioemmanuel claudioemmanuel

Squeez

AI community

Description

Hook-based token compressor for 5 AI CLI hosts (Claude Code, Copilot CLI, OpenCode, Gemini CLI, Codex CLI). Up to 95% bash compression, signature-mode for code reads, cross-call dedup, MCP server, self-teaching protocol. Zero runtime deps.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

squeez β€” hook-based token compressor for AI CLIs

squeez

[![CI](https://github.com/claudioemmanuel/squeez/actions/workflows/ci.yml/badge.svg)](https://github.com/claudioemmanuel/squeez/actions/workflows/ci.yml) [![npm](https://img.shields.io/npm/v/squeez.svg)](https://www.npmjs.com/package/squeez) [![Crates.io](https://img.shields.io/crates/v/squeez.svg)](https://crates.io/crates/squeez) [![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE) [![DCO](https://img.shields.io/badge/contributions-DCO_signed--off-green.svg)](CONTRIBUTING.md#license--contributor-sign-off) [![Changelog](https://img.shields.io/badge/changelog-πŸ“‹-blue.svg)](CHANGELOG.md)

End-to-end token optimizer for seven AI CLI hosts β€” Claude Code, GitHub Copilot CLI, OpenCode, Gemini CLI, OpenAI Codex CLI, Pi, and Hermes. Compresses bash output up to **95%**, collapses redundant calls, preserves exact identifiers through every summary, refuses net-loss compressions, and injects a terse prompt persona β€” automatically, with zero new runtime dependencies.


πŸ“° What's new

Latest first. Full history in [CHANGELOG.md](CHANGELOG.md).

v1.46.0 β€” shipped filter pack + native `git status`

The filter DSL could always cover the long tail `GenericHandler` can't compress β€” it just shipped empty, so every user started from a blank `filters.ini`. This release fills it, adds a native `git status` path, and makes two guards that were only ever measured in benchmarks run for real.

  • 41 built-in filter rules (assets/filters_builtin.ini) β€” pip/uv/poetry, bundle/composer/rubocop/phpstan, dotnet/swift/gcc, mypy/basedpyright/golangci-lint, shellcheck/hadolint/yamllint/markdownlint/pre-commit, systemctl/journalctl/rsync/ping/ansible-playbook and more. Every rule ships an inline self-test that CI gates on. Project and user rules still shadow any buil