All 123 Dependencies

Every package headroom depends on, ranked by repo health score.

Headroom is a context compression layer that sits between your AI agent and the LLM provider. Every piece of content your agent ingests — tool outputs, log files, RAG chunks, codebase searches, and conversation history — is automatically compressed before being sent, slashing token costs by 60–95% without degrading the quality of the model's responses.

The library ships three integration modes that can be mixed and matched: an inline Python or TypeScript `compress()` function you add to any existing LLM call; a transparent HTTP proxy that intercepts requests from any language with zero code changes; and a command-line agent wrapper (`headroom wrap claude|codex|cursor|aider`) that bootstraps the proxy and launches the agent in one step. An MCP server exposes compression, retrieval, and statistics as tools any MCP-native client can call.

Beyond simple compression, Headroom includes a cross-agent memory store that deduplicates context across Claude, Codex, and Gemini sessions; a `headroom learn` command that mines failed agent sessions and writes corrections back to `CLAUDE.md` or `AGENTS.md`; and a Reversible Compression (CCR) system that caches originals locally so the LLM can call `headroom_retrieve` whenever it needs the unabridged version.

Output token reduction is also supported: the proxy can inject a terseness instruction that reduces model verbosity and uses effort routing to dial down thinking depth on routine steps like file reads and passing tests — cutting what the model writes back in addition to what you send.

33 unidiff 0.4 42 clsx 2.1.1 43 prometheus =0.14.0 49 tomli >=2.0.0 52 tiktoken-rs 0.11 outdated 53 aho-corasick 1 53 DashMap 6 53 Jinja >=3.0.0 54 HTTPX >=0.24.0 55 PyYAML >=6.0 56 AutoGen AgentChat >=0.7 56 tokio-tungstenite 0.24 outdated 57 xlrd >=2.0.1 58 humantime 2 58 tracing 0.3 outdated 59 Criterion.rs 0.5 outdated 62 pin-project-lite 0.2 62 rich >=13.0.0 64 crc32fast 1 64 rayon 1 65 Proptest 1 66 tsup ^8.0.0 66 url 2 67 ollama-python >=0.4.0 68 tiktoken >=0.5.0 69 lru 0.18 70 orjson >=3.9.14 70 sha2 0.10 outdated 71 http-body 0.1 outdated 72 hf-hub 0.4 outdated 73 tempfile 3 74 bytesize 1 outdated 74 dotenv ^17.3.1 75 Radix UI 1.3.0 outdated 75 flate2 1 75 hyper-util 0.1 76 async-trait 0.1 76 BLAKE3 1 76 toml 1.1 76 tree-sitter (Python) >=0.25.2,<0.27 77 http 1 78 python-zstandard >=0.20.0 79 FastEmbed-rs 5 outdated 79 fastembed >=0.4.0 79 regex 1 82 botocore >=1.41.0 82 tower-http 0.7 83 class-variance-authority 0.7.1 83 tomlkit >=0.13.0,<1.0 84 Magika 1 84 Magika >=0.6.0 84 mypy >=1.0.0 84 reqwest 0.12 outdated 85 uuid 1 86 RapidOCR >=1.4.0,<2 86 tree-sitter-language-pack >=0.10.0,<1.0 outdated 86 Watchdog >=4.0.0 87 qdrant-client >=1.9.0,<2.0 87 tailwind-merge ^3.5.0 87 Tokenizers 0.22 outdated 88 Click >=8.3.3 88 ort 2.0.0-rc.12 88 Strands Agents >=0.1.0 89 ast-grep >=0.30.0,!=0.44.1 89 python-sdk >=1.28.1 89 rusqlite 0.32 outdated 89 sentencepiece >=0.1.99 90 Tailwind CSS ^4.3.2 90 FastAPI >=0.100.0 90 Fumadocs Core 16.11.1 outdated 90 Gunicorn >=21.0.0 90 icu 2.2 90 Ruff 90 Tailwind CSS ^4.2.2 90 websockets >=13.0 91 boto3 >=1.41.0 91 CrewAI >=1.0 91 pytest-asyncio >=0.21.0 91 Recharts ^3.9.2 91 Uvicorn >=0.23.0,<1.0 92 AI SDK ^3.0.64 outdated 92 AI SDK ^3.0.51 outdated 92 AI SDK ^1.0.0 outdated 92 AI SDK ^6.0.149 outdated 92 futures 0.3 92 futures 0.3 92 LangChain DeepSeek >=1.3.3,<4.0 outdated 92 LangChain DeepSeek >=0.2.0 92 LangChain DeepSeek >=1.1.14,<2.0 outdated 92 LiteLLM >=1.40 92 lucide-react ^1.7.0 92 Mem0 >=2.0.0,<3.0 92 Pillow >=12.3.0 92 postcss ^8.5.16 92 redis-rs 0.27 outdated 92 sentence-transformers >=2.2.0,<6.0 outdated 93 Anthropic TypeScript SDK ^0.106.0 outdated 93 accelerate >=0.20.0 93 agno >=1.0.0 93 hyper 1 93 Pydantic >=2.0.0 93 Starlette >=0.27.0 93 Tokio 0.1 outdated 93 Tokio 0.7 outdated 93 Vitest ^4.1.5 outdated 94 OpenTelemetry Prometheus Exporter >=1.24.0 outdated 94 OpenTelemetry Prometheus Exporter >=1.24.0 outdated 94 OpenTelemetry Python SDK >=1.24.0 95 Anthropic Python SDK >=0.18.0 95 Datasets >=2.14.0 95 ONNX Runtime >=1.16.0 95 OpenAI ^6.33.0 outdated 95 scikit-learn >=1.3.0 95 Transformers >=5.5.0,<6.0 96 huggingface_hub >=1.5.0,<2.0 96 Next.js 16.2.10 outdated 96 NumPy >=1.24.0 96 OpenAI Python SDK >=2.14.0 96 pytest >=7 96 PyTorch >=2.12.1 97 TypeScript ^5.9.3 outdated 98 React ^19.2.7 98 React DOM ^19.2.7

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers

Search