v2 is a 400M-parameter engine that keeps the context that answers the query and cuts the rest. Open source (MIT). API, and an agent plugin for 40+ harnesses.
Install, get a key, compress your first prompt โ in under 5 minutes.
Python API, HTTP endpoints, response fields, error codes, and client usage.
Wire SuperCompress into OpenAI, LangChain, Express.js, Vercel AI SDK, and more.
Call the hosted API or pip install locally โ no servers to manage.
How the learned policy works: features, training, inference, and compiler mode.
Layman + technical notes for every function in compress-engine.js.
Methodology for estimating energy and carbon savings from token reduction.
Install the proxy โ one command to compress context for Cursor, Windsurf, Claude Code, and more.
SuperCompress v2 is a 400M-parameter, query-aware context engine โ Neural Keep is live on the hosted API. It looks at the full context, keeps what is relevant to answering the query, and cuts the rest. On the coding-agent benchmark it cut context 64.1% on average, held the required evidence in 24/24 cases, and took one dump from 16,647 tokens to 5,148. One case reached 96.6% reduction at โฅ99% evidence retention.
It is strongest on coding-agent dumps: tool output, logs, diffs, and stack traces. Unlike truncation (which blindly drops the tail) or summarization (which rewrites IDs and errors), SuperCompress keeps the original lines that answer the current question. The query itself is never compressed.
| Metric | Value |
|---|---|
| Engine | ~400M Neural Keep (hosted, live) ยท query-aware |
| Coding-agent benchmark | 64.1% mean cut ยท 24/24 evidence held ยท 16,647 โ 5,148 tokens |
| Best case on that suite | 96.6% reduction at โฅ99% evidence retention |
| Access | API and an agent plugin for 40+ harnesses |
| Hosted price | Launch promo (live): 5M free tokens/month, then $0.10 per 1M tokens |
| License | MIT โ free for commercial use |
SuperCompress is designed for production AI features where context grows over time and token costs scale linearly with usage:
In compiler mode (the default), SuperCompress:
The full pipeline takes ~60ms on a single CPU core โ no GPU, no model download, no extra LLM calls.