Kompact — AI skill for Claude Code
LLM context compression proxy — 40-70% token savings, zero code changes.
How to install Kompact
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open npow/kompact and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Kompact does
LLM context compression proxy — 40-70% token savings, zero code changes.
Alternatives in AI
- WindsurfAPI — Turn Windsurf / Devin Desktop's 100+ AI models (Claude, GPT, Gemini, DeepSeek, Kimi, GLM, SWE) into OpenAI-, A 3k ★
- Paritok 4b V1 — Non-destructive compression gateway for AI coding agents 1.4k ★
- Snip — CLI proxy that reduces LLM token usage by 60-90% 425 ★
README
Kompact
[](https://github.com/npow/kompact/actions/workflows/ci.yml) [](https://pypi.org/project/kompact/) [](https://www.python.org/downloads/) [](https://mintlify.com/npow/kompact)
Context compression proxy for LLM agents. Sits between your agent and the LLM provider, compresses context on the fly, and cuts your token bill 40-70% — with zero code changes.
Save real money
For a team running 1,000 agentic requests/day with ~10K token contexts:
| Model | Without Kompact | With Kompact | Monthly Savings |
|---|---|---|---|
| Sonnet ($3/M) | $900/mo | $405/mo | $495/mo |
| Opus ($15/M) | $4,500/mo | $2,025/mo | $2,475/mo |
| GPT-4o ($2.50/M) | $750/mo | $338/mo | $412/mo |
Savings scale linearly. 10K requests/day = 10x the numbers above.
Get started in 30 seconds
pip install kompact # or: uv add kompact
kompact proxy --port 7878
export ANTHROPIC_BASE_URL=http://localhost:7878
# That's it. Your agent now uses fewer tokens.
No SDK changes. No prompt rewriting. Just point your base URL at the proxy.
Quality stays intact
Evaluated on [BFCL](https://gorilla.cs.berkeley.edu/) (1,431 real API schemas) — the standard benchmark for tool-calling agents. End-to-end through Claude, scored with [context-bench](https://pypi.org/project/context-bench/).
Quality impact vs no compression (closer to 0% = better):
| Model | Kompact | Headroom | LLMLingua-2 |
|---|---|---|---|
| Haiku | -2.6% | -3.0% | -23.4% |
| Sonnet | -3.9% | -3.5% | -20.6% |
| Opus | -0.5% | -0.5% | -27.3% |
Kompact and Headroom bo
Related Skills
Compressor
Reduce token usage in AI coding agents (Claude Code, Copilot, Cursor) with mode-switchable instruction packs a
Tim Harness
A full LLM coding agent in one browser page — 19 tools, token economy (84-90% savings), 4 visualization modes,
Bu Ketao
不客套 — Strip Chinese AI verbosity. 繁體中文 LLM 輸出壓縮規則集。~72% token compression, zero semantic loss.
Retok
Token-efficiency analyzer for AI coding agents (Claude Code, OpenAI Codex CLI): cost estimates, cache analysis
BladeX
Self-hosted memory-first proxy for AI agents. Cross-session & cross-agent memory + task ledger. Zero code chan
Furl Ctx
Context compression for AI agents — cut token usage costs with retrievable CCR compression. Rust core + Python
Related Agents
AI Cost Optimizer
Audits an LLM application or AI agent for token cost and rate-limit risk, using its usage logs and code, and r
Codemap Writer
Generate or refresh docs/CODEMAPS/ for the current repo. Use when the user runs /update-codemaps, when context
Cold Reviewer
Zero-context code reviewer. Reviews changes cold - no spec, no project knowledge, no domain context. Catches w