headroomlabs-ai/headroom

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

About the project

Headroom is a library, proxy, and MCP server that compresses tool outputs, logs, files, retrieval chunks, and conversation history before they reach a language model. It helps coding agents use fewer context tokens while keeping the original content available locally when needed. Its catalogue add-ons support using Headroom with agent workflows.

Latest release v0.45.0 — Release v0.45.0 · 22 Nov 2026

2 files for GitHub Copilot, Codex and OpenCode: headroom copilot-instructions.md, headroom AGENTS.md — 1,084 tokens loaded in every session.

81,156Stars on the repository
2Files it configures its agents with
1,084Tokens loaded in every session
3Agents configured

Instructions

These files are headroomlabs-ai/headroom's own configuration — they tell GitHub Copilot, Codex and OpenCode how to work on this repository, so they are not mods to install elsewhere. Copy one as a starting point and replace the parts that are about this project.