Squeezr
Context compression for AI agents — squeezes maximum meaning out of your codebase into a minimum of tokens, so only what matters travels. One .NET binary, everything local.
shipped summonasync/squeezr
An agent "explores the codebase" by reading whole files and burning 30–80k tokens on grep navigation before writing a single line. The context window dies, quality drops, the bill goes up. That framing is the product's own — a positioning claim, not a benchmark.
Hybrid exact + semantic search over an indexed workspace, served as six native MCP tools:
repo_map— structure with type and member signatures, never bodies.code_search— exact identifiers and paraphrased queries in one call.symbol_lookup— signature, doc comment and body inside a token budget.find_references— real callers, captured by Roslyn at index time.expand_span— raw source lines, read live from disk.index_status— freshness and coverage, including whether the workspace is even the project you think you are in.
The trigram engine follows Zoekt and Russ Cox's code-search articles; smart-case behaviour is ripgrep's idea; symbol navigation is extracted by Roslyn with compiler accuracy.
Install
release
curl -fsSL https://raw.githubusercontent.com/summonasync/squeezr/main/scripts/install-release.sh | bash
linux
scripts/install.sh
windows
pwsh -File scripts\install.ps1
workspace
squeezr init --name <project>
squeezr add <path> --name <repo>
squeezr index
Why it is good
- Token-cheap by construction: map → symbol → references → span instead of whole files. The savings are the product.
- Exact and semantic in one call, so an exception name and a plain-English paraphrase both land.
- Freshness checked on read: modified files are reindexed inline or reported as stale, never served silently from an old index.
- Honest about its own coverage — it tells you when the repo you are asking about is not the repo it indexed.
- Multi-repo workspaces: sibling clones join one workspace with squeezr add, and every hit names its repo — so identical-looking symbols across two checkouts stay distinct.
Trade-offs
- The index has a build cost up front: CPU, disk, and a warm-up pass per repo.
- The semantic arm needs Qdrant + an embedding provider — Ollama or any OpenAI-compatible endpoint; no bundled local embedder since 1.3.0. Exact search alone is useful; semantic is not free.
- Roslyn-grade symbol precision means C# is first class: symbols, signatures, doc-comments and real callers. JS/TS/TSX get a tree-sitter layer; every other text is a sliding-window chunker — searchable, not symbol-aware.
- Adoption is the hard part, not the tech: agents must be allowed to call it. Tool allowlists and flow gates decide whether the index gets used at all.
- A watched index costs background CPU on every churn — bounded since 1.0.8 to what the change set costs, idle near zero — but a hot repo pays continuously.
Measured
1.3.0
current version — tag v1.3.0, 2026-11-16
3733/3733
serial suite green at 1.3.0 — CHANGELOG §1.3.0, 2026-11-16
7
MCP tools served by one binary — code_pack joined at 1.3.0