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.

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