All 124 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.

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