SuperCompress v2
Query-aware context compression for AI applications and coding agents.
Cut coding-agent context ~64% in our B5 benchmark.
~400M Neural Keep on the hosted API · coding-agent plugin via MCP
Open weights (MIT) on Hugging Face
64.1% mean context cut on B5 (24 coding-agent cases) · 24/24 evidence passes · up to 96.6% @ ≥99% retention
(B5 coding-agent suite · evidence containment metric — not downstream LLM completion)
Get API key ·
Arena ·
Install ·
Benchmarks ·
Docs
vs Headroom ·
vs RTK ·
vs LLMLingua
Why it exists
Every LLM call ships a pile of context: RAG chunks, chat history, tool dumps, logs, JSON. Most of it is irrelevant to the current question — but the model still reads it, and you still pay for it.
| Usual “fix” | What actually happens |
|---|
| Truncate | Deletes the middle. The answer is often in the middle. |
| Summarize | Rewrites evidence. IDs, stack traces, and exact errors get soft. |
| Hope | Ship the full dump. Watch the bill climb. |
SuperCompress v2 compresses context against the query. It keeps answer-critical lines in their original wording and drops the rest — on our coding-agent benchmark (B5), 64.1% mean context reduction with 24/24 evidence-retention passes.
Product
SuperCompress is a compression layer in front of inference:
- Takes a long context + the current query
- Segments and scores blocks by relevance to that query
- Keeps entities, errors, definitions, nearby dependencies
- Returns a smaller prompt + token stats
The query is never compressed — only the surrounding context.
Two paths
| Neural v2 (recommended) | Compiler (fast/local) |
|---|
| Engine | ~400M query-aware cross-encoder | Lightweight local policy |
| Runtime | Hosted Fly CPU (Neural Keep) | Local CPU · millisecond-class |
| Best for | Highest-quality keep on agent dumps | Local preprocessing / speed |
| Benchmarks | Launch / B5 | Legacy section |
Two products
| Coding-agent plugin | API / Python |
|---|
| For | Cursor, Claude Code, Codex, and 40+ agent harnesses | Apps, RAG, agents, backends |
| Install | npm i -g supercompress-proxy && npx supercompress setup | pip install supercompress |
| What you get | MCP compress_context on big dumps | Compress before every model call |
| Login | Keep your normal agent login | API key from the dashboard |
Docs: coding agents (first 5 minutes checklist) · API quickstart
Repo map
| Path | What |
|---|
packages/proxy | Coding-agent plugin (npm) |
api/ | Hosted API + billing |
web/ | Site + docs HTML |
supercompress/ | Python package |
docs/REPO_LAYOUT.md | What belongs in OSS vs private |