headroom
llms.txt74k starsChanged 3 months agoApache-2.0View on GitHub
Context optimization layer for LLM applications. Compress tool outputs, logs, files, and RAG chunks before they reach the model. Same answers, 60–95% fewer tokens. Library, proxy, and MCP server. Apache 2.0, local-first. Headroom is shipped as a Python package (headroom-ai), a TypeScript package (headroom-ai), an OpenAI + Anthropic-compatible HTTP proxy (headroom proxy), and an MCP server (headroom_compress, headroom_retrieve, headroom_stats tools). All four modes use the same compression pipeline: per-content-type compressors (JSON, code, logs, diffs, text) feed into a Compress-Cache-Retrieve (CCR)…
- Installs packages
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about headroomlabs-ai/headroom
- microsoft/vscode“Allow Copilot Chat to be proxied by endpoint.”GitHub · Jun 24, 2026 · 18 reactions
- anthropics/claude-code“[FEATURE] Remote Control: allow localhost proxies (loopback exception or opt-in for …”GitHub · Jul 11, 2026 · 11 reactions
- @adityamitra.bsky.social“been using headroom (github.com/headroomlabs...) for a while now and savings are modest #github #opensource …”Bluesky · Jun 30, 2026 · 11 likes
- A Hacker News story“Headroom - compress AI agent input for reduced token usage w/out harming output”Hacker News · Jul 21, 2026 · 10 points
- @github-trending.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 headroomlabs-ai / headroom ⭐ 75,989 (+317) 🗒 Python Compress tool …”Bluesky · Oct 19, 2026 · 6 likes
The biggest 5 of 68 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 68
Talked about on GitHub, Bluesky and Hacker News (68 times).
On GitHub · 50
- Jun 24, 2026Allow Copilot Chat to be proxied by endpoint. — microsoft/vscode18 reactions · 8 comments
- Jul 11, 2026[FEATURE] Remote Control: allow localhost proxies (loopback exception or opt-in for ANTHROPIC_BASE_URL=http://127.0.0.1:*) — anthropics/claude-code11 reactions · 5 comments
- Jun 22, 2026rtk: No such file or directory (os error 2) — sgaabdu4/claude-code-tips2 reactions · 10 comments
- Nov 25, 2026chore(deps):(deps-dev): bump the development-dependencies group across 1 directory with 2 updates — daggerstuff/pixelated1 reaction · 4 comments
- Nov 25, 2026chore(deps):(deps-dev): bump the development-dependencies group with 3 updates — daggerstuff/pixelated1 reaction · 5 comments
45 more on GitHub
- Nov 17, 2026headroom: 0.42.0 -> 0.44.0 — NixOS/nixpkgs1 reaction · 4 comments
- Oct 24, 2026seo: add /coding-agent-rate-limits guide (Runway), document `supercompress limits` + `runway_check` in docs, index it, add 0.5.39/0.5.40 notes, update Headroom repo links (G16, R33) — Supercompress/Supercompress1 reaction · 1 comment
- Oct 18, 2026seo: accurate sitemap lastmod, fix retired-slug internal links, link /alternatives cluster, docs canonical, cite independent studies — Supercompress/Supercompress1 reaction · 1 comment
- Sep 18, 2026Path/glob-based exclusions for file optimization and context tracking — jfrog/boost1 reaction · 5 comments
- Sep 11, 2026fix(headroom-mcp): bake LiteLLM prompt-caching patches — rcamarda390/fib_docker1 reaction
- Jul 23, 2026Windows Security (NotSigned) False Positive (?) Quarantines Binary as Trojan — ast-grep/ast-grep1 reaction · 5 comments
- Jul 20, 2026Curation improvements 2026-07-20 — RyanAlberts/best-of-Agent-Harnesses1 reaction
- Jul 2, 2026menubar: Run `headroom proxy` to save input + output tokens — getagentseal/codeburn1 reaction · 1 comment
- Jun 22, 2026question: Can this support headroom proxy? — kaitranntt/ccs1 reaction · 2 comments
- Nov 29, 2026⚠️ Failed to create server discovery PR — fuzzylabs/awesome-secure-mcp-servers0 reactions
- Nov 28, 2026chore(deps): bump headroom-ai from 0.22.4 to 0.45.0 — Zod0808/Respicare0 reactions · 1 comment
- Nov 28, 2026chore(deps): bump the npm-updates group across 1 directory with 3 updates — jweezy119/Pabandi0 reactions · 2 comments
- Nov 27, 2026chore(deps): bump the npm-updates group with 4 updates — jweezy119/Pabandi0 reactions · 3 comments
- Nov 26, 2026chore(deps): bump the minor-and-patch group with 4 updates — mcowger/plexus0 reactions · 2 comments
- Nov 25, 2026deps: Bump the npm-minor-patch group across 3 directories with 11 updates — clanker25/headroom0 reactions
- Nov 23, 2026chore: bump the npm-minor-and-patch group across 1 directory with 16 updates — ewelina-wierzbicka/cine-circle0 reactions · 1 comment
- Nov 23, 2026Context tool scout: 2026-11-23 — sturdynut/Ullage0 reactions
- Nov 23, 2026chore(deps): bump headroomlabs-ai/headroom from 0.44.0 to 0.45.0 in /apps/9router — halvorot/homelab-docker0 reactions
- Nov 22, 2026⚠️ Failed to create server discovery PR — fuzzylabs/awesome-secure-mcp-servers0 reactions
- Nov 22, 2026● relit: headroomlabs-ai/headroom — Wrap E2E — fitzyracing1/darks0 reactions · 1 comment
- Nov 19, 2026Supports large model data compression? — yetone/magpie0 reactions
- Nov 18, 2026feature: enhance the *dedup* tool output feature to work at the span-level — rossoctl/context-guru0 reactions
- Nov 17, 2026build(deps): bump headroom-ai from 0.42.0 to 0.44.0 in /python — ExaDev/claude-code-action0 reactions · 2 comments
- Nov 16, 2026chore(deps): bump the production-dependencies group across 1 directory with 2 updates — jmcombs/pi-extensions0 reactions · 1 comment
- Nov 16, 2026chore(deps): bump headroom-ai from 0.40.0 to 0.44.0 in /papers/AI-Engineering/context-efficiency-methods/supporting/benchmark — Koality-Assured/koality-whitepapers0 reactions
- Nov 16, 2026Bump headroom-ai from 0.43.1 to 0.44.0 in /plugins/opt-in/headroom-trim/server in the uv group across 1 directory — deadmade/dead-agent-skills0 reactions · 1 comment
- Nov 15, 2026deps: Bump the npm-minor-patch group across 3 directories with 11 updates — yunusdemir2009/ozetler-headroom0 reactions
- Nov 15, 2026⚠️ Failed to create server discovery PR — fuzzylabs/awesome-secure-mcp-servers0 reactions
- Nov 14, 2026chore(deps): bump headroom-ai from 0.22.4 to 0.44.0 — Zod0808/Respicare0 reactions · 2 comments
- Nov 14, 2026Merge main into fix/openclaw-preserve-assistant-text-blocks — 123XieC/headroom0 reactions · 1 comment
- Nov 13, 2026build(deps): bump headroom-ai from 0.42.0 to 0.43.1 in /python — ExaDev/claude-code-action0 reactions · 3 comments
- Nov 13, 2026chore(deps):(deps-dev): bump the development-dependencies group across 1 directory with 6 updates — daggerstuff/pixelated0 reactions · 8 comments
- Nov 10, 2026Add headroom — gitaroktato/harness-engineering-technology-landscape0 reactions
- Nov 10, 2026Add `headroom` for context compression — gitaroktato/harness-engineering-technology-landscape0 reactions · 1 comment
- Nov 10, 2026chore(deps): bump headroomlabs-ai/headroom from 0.43.1 to 0.44.0 in /apps/9router — halvorot/homelab-docker0 reactions
- Nov 9, 2026chore(deps): bump headroom-ai from 0.42.0 to 0.43.1 in the production-dependencies group — jmcombs/pi-extensions0 reactions · 1 comment
- Nov 9, 2026chore(deps): bump headroom-ai from 0.40.0 to 0.43.1 in /papers/AI-Engineering/context-efficiency-methods/supporting/benchmark — Koality-Assured/koality-whitepaperssays it tested it0 reactions · 1 comment
- Nov 9, 2026Upstream moved — T-Celor/the-dam0 reactions
- Nov 8, 2026Bump headroom-ai from 0.42.0 to 0.43.1 in /plugins/opt-in/headroom-trim/server in the uv group — deadmade/dead-agent-skills0 reactions · 1 comment
- Nov 8, 2026deps: Bump the npm-minor-patch group across 3 directories with 10 updates — yunusdemir2009/ozetler-headroom0 reactions · 1 comment
- Nov 8, 2026⚠️ Failed to create server discovery PR — fuzzylabs/awesome-secure-mcp-servers0 reactions
- Nov 6, 2026chore(deps): bump headroomlabs-ai/headroom from 0.42.0 to 0.43.1 in /apps/9router — halvorot/homelab-docker0 reactions
- Nov 4, 2026deps: bump the dev-dependencies group across 1 directory with 2 updates — SerayaEryn/claude-search-compress0 reactions
- Nov 3, 2026● relit: headroomlabs-ai/headroom — Init E2E — fitzyracing1/darks0 reactions · 2 comments
- Nov 3, 2026build(deps): bump headroom-ai from 0.37.0 to 0.42.0 in /python — ExaDev/claude-code-action0 reactions · 5 comments
On Bluesky · 15
- Jun 30, 2026been using headroom (github.com/headroomlabs...) for a while now and savings are modest #github #opensource #claudecode #codex #aitools — @adityamitra.bsky.social11 likes and reposts · 2 replies
- Oct 19, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 headroomlabs-ai / headroom ⭐ 75,989 (+317) 🗒 Python Compress tool outputs, logs, files, and RAG… — @github-trending.bsky.social6 likes and reposts · 2 replies
- Oct 19, 2026今日のGitHubトレンド headroomlabs-ai/headroom AIエージェントがLLMに送信するログやファイル、会話履歴などのデータを圧縮し、トークン数を削減するツールです。 回答の精度を維持したまま、コストの削減と遅延の抑制を実現します。… — @dailygithubtrends.bsky.social3 likes and reposts
- Jun 29, 2026Esta es la herramienta que promete solucionar uno de los mayores problemas de los agentes con IA: El consumo de tokens. Headroom comprime… — @mouredev.com3 likes and reposts
- Oct 22, 2026🗜️ Headroom squeezes logs, tool outputs and RAG chunks before your agent reads them, so you burn fewer tokens for the same answers. 🔗… — @prosperflowio.bsky.social2 likes and reposts
10 more on Bluesky
- Jul 11, 2026I've used the caveman tool to reduce that kind of output, and it's ok but more about the meme Recently started exploring this tool instead… — @mcmullarkey.bsky.social2 likes and reposts
- Oct 21, 2026今日のGitHubトレンド headroomlabs-ai/headroom Headroomは、AIエージェントがLLMに送信するログやファイル、会話履歴などのデータを、LLMに届く前にローカルで圧縮するツールです。… — @dailygithubtrends.bsky.social1 likes and repost
- Aug 5, 2026🚀 GitHub Intelligence Drop cline (TypeScript • 🟢) ⭐ 65.6K → https://github.com/cline/cline headroom (Python • 🟢) ⭐ 64.8K →… — @githubfeed.bsky.social1 likes and repost
- Jul 21, 2026github.com/headroomlabs... - Headroom compresses everything your AI agent reads - tool outputs, logs, RAG chunks, files, and conversation… — @robrich.bsky.social1 likes and repost
- Jul 3, 2026Lada chwila wielcy panowie od #LLM zaczną wymagać płacenia nie za miesiąc użytkowania, tylko za zużyte tokeny. Co zatem trzeba zrobić:… — @wildasoftware.bsky.social1 likes and repost
- Jun 29, 2026「60〜95%削減」、私はまず“どの入力で?”を見ます🌿 元ポストは headroom を、ログ・ファイル・RAGチャンクを圧縮してトークン消費を60〜95%減らすツールとして紹介していました。… — @mint-echosphere.bsky.socialsays it tested it1 likes and repost · 1 reply
- Jun 22, 2026Started using a compressor proxy on both input and output with codex, and I’m really enjoying the ~50% reduction in tokens I’ve burned… — @angellozan.livesays it tested it1 likes and repost
- Oct 20, 20265. Headroom compression tool reduces token usage by up to 95% LINK 6. DeepSeek Open-Sources DeepInfer High-Performance Inference Engine LINK — @hackobar.bsky.socialsays it tested it0 likes and reposts · 1 reply
- Oct 19, 2026I hid one error in 1,000 fake log entries and tried Headroom's lossless mode. 38,010 tokens became 16,065, compared with JSON without spare… — @genesisclaw.bsky.social0 likes and reposts · 1 reply
- Sep 26, 2026Headroom: compresses everything your agent reads (tool outputs, logs, files), 100% locally, no API key. My real run: 47,712 chars down to… — @theundergroundai.bsky.socialsays it tested it0 likes and reposts · 1 reply
On Hacker News · 3
- Jul 21, 2026Headroom - compress AI agent input for reduced token usage w/out harming output10 points · 2 comments
- Jun 22, 2026Headroom – The context compression layer for AI agents3 points
- Sep 4, 2026Headroom: Save Tokens from Reversible Compression1 point
In this repositoryOne other file it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
The file
We split this llms.txt into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Run the proxy: headroom proxy --port 8787 then point any client at http://127.0.0.1:8787
≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
# Headroom > Context optimization layer for LLM applications. Compress tool outputs, logs, files, and RAG chunks before they reach the model. Same answers, 60–95% fewer tokens. Library, proxy, and MCP server. Apache 2.0, local-first. Headroom is shipped as a Python package (`headroom-ai`), a TypeScript package (`headroom-ai`), an OpenAI + Anthropic-compatible HTTP proxy (`headroom proxy`), and an MCP server (`headroom_compress`, `headroom_retrieve`, `headroom_stats` tools). All four modes use the same compression pipeline: per-content-type compressors (JSON, code, logs, diffs, text) feed into a Compress-Cache-Retrieve (CCR) store so compression stays reversible — the LLM can ask for the original whenever it wants. The canonical, always-current documentation index lives at the docs site below. If you can fetch one URL, fetch that one; the entries here are a hand-curated subset. ## Canonical docs (start here) - [Live llms.txt (full doc index)](https://docs.headroomlabs.ai/llms.txt): Auto-generated index of every doc page with descriptions. - [Live llms-full.txt (every doc page concatenated)](https://docs.headroomlabs.ai/llms-full.txt): One Markdown blob containing every doc page. Use when you can spend the tokens for full context. - [Docs site](https://docs.headroomlabs.ai/docs): Human-browsable docs with search. - [GitHub repo](https://github.com/headroomlabs-ai/headroom): Source, issues, releases. - [PyPI package](https://pypi.org/project/headroom-ai/): Python install. - [npm package](https://www.npmjs.com/package/headroom-ai): TypeScript install. ## Install (copy-paste-runnable) - Python: `pip install headroom-ai` (add `[all]` for every optional extra) - TypeScript / Node: `npm install headroom-ai` (or `pnpm add headroom-ai`, `bun add headroom-ai`) - Docker local: `docker run --rm -p 127.0.0.1:8787:8787 ghcr.io/headroomlabs-ai/headroom:latest --host 0.0.0.0` - Run the proxy: `headroom proxy --port 8787` then point any client at `http://127.0.0.1:8787` - Wrap an agent in one command: `headroom wrap claude` (also: `codex`, `copilot`, `cursor`, `aider`, `opencode`, `cline`, `continue`, `goose`, `openhands`, `openclaw`, `vibe`, `omp`) ## Entry points - [Quickstart](https://docs.headroomlabs.ai/docs/quickstart): 5-minute end-to-end (install → compress → call the model). - [Installation](https://docs.headroomlabs.ai/docs/installation): All install paths, extras, Docker tags, env vars. - [Proxy server](https://docs.headroomlabs.ai/docs/proxy): Run as a local HTTP proxy in front of OpenAI / Anthropic / Gemini. - [MCP server](https://docs.headroomlabs.ai/docs/mcp): `headroom_compress`, `headroom_retrieve`, `headroom_stats` for Claude Code / Cursor / any MCP host. - [API reference](https://docs.headroomlabs.ai/docs/api-reference): Python + TypeScript `compress()` API. ## How it works - [How compression works](https://docs.headroomlabs.ai/docs/how-compression-works): Three-stage pipeline + automatic content routing. - [SmartCrusher](https://docs.headroomlabs.ai/docs/smart-crusher): Statistical JSON / array compression (70–90% on tool outputs). - [Code compression](https://docs.headroomlabs.ai/docs/code-compression): AST-aware via tree-sitter (preserves imports, signatures, types). - [Text & log compression](https://docs.headroomlabs.ai/docs/text-and-logs): Search results, build logs, diffs. - [CCR (reversible)](https://docs.headroomlabs.ai/docs/ccr): Compress-Cache-Retrieve — originals never deleted; LLM retrieves on demand. ## SDK / framework integrations - [Anthropic SDK](https://docs.headroomlabs.ai/docs/anthropic-sdk): `withHeadroom(anthropic)` wrapper. - [OpenAI SDK](https://docs.headroomlabs.ai/docs/openai-sdk): `withHeadroom(openai)` wrapper. - [Vercel AI SDK](https://docs.headroomlabs.ai/docs/vercel-ai-sdk): Middleware + `withHeadroom()`. - [LangChain](https://docs.headroomlabs.ai/docs/langchain): Chat models, memory, retrievers, agents. - [Agno](https://docs.headroomlabs.ai/docs/agno): Model wrapping + observability hooks. - [Strands](https://docs.headroomlabs.ai/docs/strands): Model wrapping + hook-based tool output compression. - [LiteLLM](https://docs.headroomlabs.ai/docs/litellm): Single callback; works with all 100+ LiteLLM providers. ## Memory & cross-agent state - [Persistent memory](https://docs.headroomlabs.ai/docs/memory): Per-project SQLite + HNSW vector store. No cross-project bleed (GH #462). - [SharedContext](https://docs.headroomlabs.ai/docs/shared-context): Compressed inter-agent context handoffs. - [Failure learning](https://docs.headroomlabs.ai/docs/failure-learning): Offline analysis writes corrections to `CLAUDE.local.md` (default, gitignored) or `CLAUDE.md` (shared) / `AGENTS.md` / `GEMINI.md`. ## Operations - [Configuration](https://docs.headroomlabs.ai/docs/configuration): Env vars, config file, per-call overrides. - [Benchmarks](https://docs.headroomlabs.ai/docs/benchmarks): Token-savings numbers across content types. - [Troubleshooting](https://docs.headroomlabs.ai/docs/troubleshooting): Common failure modes and fixes. - [Limitations](https://docs.headroomlabs.ai/docs/limitations): What Headroom won't do well today. ## Licensing Apache 2.0. Use commercially, modify, redistribute. Data stays on the user's machine when running the library, proxy, or MCP server locally. Anonymous telemetry is **off by default** (opt-in); enable with `HEADROOM_TELEMETRY=on` or `headroom proxy --telemetry`.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

