npow

Kompact — AI skill for Claude Code

AI community

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

  • Opencodex — Universal provider proxy for OpenAI Codex & Claude Code — use any LLM (Claude, Gemini, Grok, DeepSeek, Ollama… 12.3k ★
  • 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 ★

README

Kompact

[![CI](https://github.com/npow/kompact/actions/workflows/ci.yml/badge.svg)](https://github.com/npow/kompact/actions/workflows/ci.yml) [![PyPI](https://img.shields.io/pypi/v/kompact.svg)](https://pypi.org/project/kompact/) [![Python 3.10+](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://www.python.org/downloads/) [![Docs](https://img.shields.io/badge/docs-mintlify-18a34a?style=flat-square)](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