Skip to main content
Back to trending

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.

  • agent
  • ai
  • anthropic
  • claude-code
  • compression
  • context-engineering
  • context-window
  • cursor
  • fastapi
  • langchain
  • llm
  • mcp
  • openai
  • prompt-engineering
  • proxy
  • python
  • rag
  • token-optimization
  • tokens
  • typescript
View on GitHub
Stars
74,238
Forks
5,744
+ today
+3
Created
8mo

Ranking data as of October 1, 2026 (UTC).

Overview

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. It ranks #134 on GitTiger, gaining +3 stars on October 1, 2026 (UTC).

The project is written in Python and has 5,744 forks. It was created 8mo ago.

Installation
git clone https://github.com/headroomlabs-ai/headroom.git
cd headroom
# see README for setup