AgentIndex icon
AgentIndex
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Submit Tool
ToolsMCP ServersHOTCategoriesTrendingNewBest ListsCompareGuides
Home/
Memory & Context/
headroom
headroom logo

headroom

Active·★ 78.0k·Apache-2.0·Updated 2026-10-27
★ Most Popular★ Essential

Headroom compresses what an AI agent reads, including tool outputs, logs, RAG chunks, files and conversation history, before it reaches the model. A content router picks a specialised compressor for each type (JSON, source code via the AST, or prose via a small local model), and the originals are cached locally so the model can retrieve the full text when it needs it. Compression runs on your machine; content is not sent anywhere to be compressed.

It is useful wherever context size drives cost or quality: coding agents reading long logs and test output, agents calling APIs that return large JSON, and RAG pipelines. The project's own figures are about 20% fewer tokens for coding agents and 60–95% for JSON-heavy content. You can use it as a Python or TypeScript library, as a local proxy with no code changes, as an MCP server, or by wrapping an agent such as Claude Code, Codex, Cursor or Aider with a single command. It also offers cross-agent memory and a `learn` command that turns failed sessions into instructions in files such as CLAUDE.md or AGENTS.md.

Getting started: install the CLI with `uv tool install --python 3.13 "headroom-ai[all]"` or pip, then run `headroom wrap claude` (or another agent) or `headroom proxy --port 8787`. `headroom doctor` checks the setup and `headroom dashboard` shows live savings.

This write-up is based on the project's README and public repository data. We have not hand-tested the tool. Data as of 2026-10-24.

License
Apache-2.0
Latest release
v0.41.0 · 2026-10-14
Last commit
2026-10-24
Contributors
348
Forks
6,038
Open issues and PRs
531
First published
2026-01-07

Source: GitHub, npm and PyPI public APIs.

#Context Compression#Token Optimization#AI Agents#LLM Integration#Local-first#Reversible#Proxy#Developer Tooling
$ Install
$ pip install "headroom-ai[all]"
↗ Visit site★ GitHub
01

Features

01In-app library for compression (Python/TypeScript)
02Zero-code-change proxy mode
03One-command agent wrapping for various AI agents
04Cross-agent shared memory and auto-deduplication
05Reversible compression (CCR) with original content retrieval
02

Why choose it

+Several integration modes (library, proxy, MCP server, one-command agent wrapping) cover most setups without code changes.
+Content-aware compression for JSON, code and prose, with reversible retrieval of the originals.
+Runs locally, so content is not sent to a third party for compression.
+Apache-2.0 licensed, with diagnostics and a live savings dashboard.
03

Trade-offs

!Savings depend heavily on content: around 20% for typical coding-agent traffic is far less than the headline numbers for JSON.
!Wrapping agents or routing traffic through a proxy adds a component that can affect latency and needs to be kept running.
!Lossy compression can occasionally drop details the model needed; it then has to call the retrieval tool, so verify answer quality on your own tasks.
05

Maintenance check

ActiveChecked: 2026-10-24
Last commit
2026-10-24
Commits, last 90 days
100+
Releases, last 90 days
15
Latest release
v0.41.0 (2026-10-14)
Open issues
531
Recent issues with at least one comment
5/22
Commits per week, last 12 weeks
Commits per week, last 12 weeks: 76, 124, 77, 32, 30, 46, 24, 134, 141, 180, 54, 59

Oldest week on the left; the latest four weeks are orange. Source: GitHub commit activity.

Status rule: archived on GitHub = Archived; last commit within 90 days = Active; 91 to 365 days = Slowing; older = Stale. All figures come from the GitHub API on the date shown.

04

Who it fits

Pick it if
  • Long tool output, logs, JSON responses or RAG chunks are driving up cost or hurting answers.
  • You want compression without code changes: run it as a local proxy, an MCP server, or by wrapping Claude Code, Codex or Cursor.
  • Compression must run locally, with originals cached so the model can retrieve the full text.
Look elsewhere if
  • Your agent's problem is missing or outdated docs, not too much context: a docs server fits better.
  • You cannot add a component that must keep running and may add latency.
  • Your tasks cannot tolerate lossy compression: verify answer quality on your own work first.
06

How it differs

ref-tools-mcp logovs ref-tools-mcp★ 1.2k

Ref trims documentation it fetches from its hosted index. Headroom compresses any content the agent reads, locally.

Full comparison →
jcodemunch-mcp logovs jcodemunch-mcp★ 2.8k

jCodeMunch avoids reading whole code files by fetching symbols. Headroom compresses tool output, logs and JSON after they are produced.

Full comparison →
07

Compatibility

Python
Runtime
Verified via docs
TypeScript
SDK
Verified via docs
Docker
Container
Verified via docs
macOS
OS
Verified via docs
Linux
OS
Verified via docs
Windows
OS
Verified via docs
08

Quick start

1
$ pip install "headroom-ai[all]"
09

Use cases

↳Reduce LLM token usage and API costs for AI agents.
↳Enable shared context and memory across multiple AI agents.
↳Optimize coding agents by compressing tool outputs, logs, and RAG chunks.
↳Maintain full data fidelity with reversible context compression.
10

Alternatives

⚡Top VS:
VSjcodemunch-mcp★2.8k→VSref-tools-mcp★1.2k→VSprojectmem★870→VScaura★506→
jcodemunch-mcp logo
jcodemunch-mcp★ 2.8k
Cut AI token costs 95%+ on code exploration. The leading MCP server for precise, symbol-level GitHub code retrieval via tree-sitter AST. Works with Claude Code, Cursor & any MCP client. 313B+ tokens saved.
VSCompare→
ref-tools-mcp logo
ref-tools-mcp★ 1.2k
Helping coding agents never make mistakes working with public or private libraries without wasting the context window.
VSCompare→
projectmem logo
projectmem★ 870
Local-first AI coding memory for AI agents. Records issues, attempts, fixes and decisions, then warns your agent before it repeats an approach that already failed. Native MCP server for Claude Code, Cursor, Antigravity and Codex. 100% local, no cloud, no telemetry. MIT.
VSCompare→
caura logo
caura★ 506
Caura (formerly MemClaw) — governed shared memory for AI agent fleets. Multi-agent, multi-tenant, MCP-native. Trust tiers, keystone policies, audit trails, knowledge graph, self-improving retrieval. Apache 2.0.
VSCompare→
engrim logo
engrim★ 300
The Universal Cross-Model Episodic Memory Standard. Local-first, project-scoped SQLite engine for Google Antigravity, Claude Code, Cursor, Codex CLI, and OpenCode. Zero cloud lock-in.
VSCompare→
mcp-local-memory logo
mcp-local-memory★ 61
A lightweight, powerful local memory server for AI agents supporting text, entities, and relations. Enables persistent codebase understanding and user preference management.
VSCompare→
fava-trails logo
fava-trails★ 26
🫛👣 FAVA Trails — Git-native, curated memory for AI agents via MCP. Draft isolation, promotion gate, thought lifecycle hooks, memory curation protocols, supersession chains.
VSCompare→
CopilotKit logo
CopilotKit★ 38.3k
React UI + elegant infrastructure for AI Copilots, AI chatbots, and in-app AI agents. The Agentic Frontend.
VSCompare→
See all alternatives →

Featured in these lists

  • Best Memory Tools for AI Agents and Coding Assistants
  • Best MCP Servers for Up-to-Date Docs and Code Context

Comments

Log in to leave a comment

No comments yet. Be the first!

On this page
01Features02Why choose it03Trade-offs05Maintenance check04Who it fits06How it differs07Compatibility08Quick start09Use cases10Alternatives
headroomlabs-ai /
headroom
↗

Compress tool output and logs before they reach the LLM

78.0k6.0kApache-2.0
Last commit1d ago
StatusActive
CategoryMemory & Context
Contributors348
Latest releasev0.41.0
Links
Documentation↗Discussion↗Issues↗Releases↗
Cloud Infrastructure
Ad

Deploy on DigitalOcean

Host your MCP servers, Docker containers, and AI agents with $200 free credit over 60 days.

Claim $200 Free Credit
© 2026 AgentIndex.app|Built by a 10-year iOS Developer.
Best by use caseAboutContactAdvertisePrivacy PolicyTerms of UseQYSGitHubBuy me a coffee ☕

Browse by Category

MCP ServersCode AssistantWorkflow AutomationRAG / Knowledge BaseMulti-AgentBrowser AutomationLLM InfraDev ToolingObservability

Not affiliated with Anthropic, OpenAI or Microsoft.