sqz

•
677
•

Optimizes AI coding agent context by compressing tool output and deduplicating repeated content before LLM injection.

AI coding agents frequently consume a large portion of their token budget on verbose and often redundant tool outputs, such as build logs, test results, or repeated file reads. sqz addresses this by transparently intercepting and compressing this output before it reaches the language model. It employs per-command formatters to extract and retain only the agent-critical information, like failing tests or assertions, and replaces content the model already has with concise 13-token references. Built in Rust, sqz operates deterministically without making any LLM calls, ensuring offline functionality and byte-exact recoverability of all compressed data.

Key Features

01Specialized formatters for 45+ common developer tools (git, cargo, npm, pytest, docker, etc.)
02Session-level deduplication using compact 13-token references
03Zero LLM calls, offline capability, and deterministic operation
04Pre-injection context compression for AI agents
05Broad compatibility with major AI coding agents (Claude Code, Cursor, OpenCode, Codex, Kiro, etc.)
06627 GitHub stars

Use Cases

01Maximizing the effective context window for complex development tasks
02Reducing token costs and API latency for AI coding agents
03Streamlining AI agent interactions by eliminating redundant information