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

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 14 minutes ago
Added to GitGenius on June 5th, 2026
Created on January 7th, 2026
Open Issues & Pull Requests: 696 (+1)
GitHub issues: Enabled
Number of forks: 5,634
Total Stargazers: 73,262 (+3)
Total Subscribers: 217 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 21.9 hours
Mean response time: 6.2 days
90th percentile: 18.7 days
Tracked items: 885

How this project is maintained

About 17% of issues opened in the past year have never received a reply. 94% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "status: stale" is answered fastest, typically in about 7 hours, while "High" waits about 4 days. Almost all tracked open issues have seen activity in the last three months. 69% of issues opened in the past year have been closed, leaving a working backlog.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 333
New in 7 days: 32
Closed in 7 days: 10
Avg open age: 32 days
Stale 30+ days: 214
Stale 90+ days: 0

Recent activity

Opened in 7 days: 28
Closed in 7 days: 8
Comments in 7 days: 20
Events in 7 days: 48

Top labels

  • bug (270)
  • Low (195)
  • enhancement (116)
  • High (73)
  • status: stale (50)
  • Medium (41)
  • duplicate (15)
  • good first issue (2)

Detailed Description

Headroom is a context compression layer for AI agents that reduces token consumption by compressing tool outputs, logs, files, and RAG chunks before they reach language models.

The tool addresses the problem of excessive token usage in AI agent workflows by applying content-aware compression to data flowing into language models. It works as a library, proxy server, or Model Context Protocol server, allowing integration at different points in an agent's pipeline. The compression is reversible and operates locally, preserving the semantic content of compressed data while reducing its token footprint.

Headroom suits projects where token costs or context window limitations constrain agent performance, particularly those handling structured data like JSON where compression gains are highest. Teams using coding agents, retrieval-augmented generation systems, or agents that process large tool outputs and logs will see the most benefit. The tool integrates with popular frameworks and agent platforms, supporting both Python and TypeScript implementations.

Almost all open issues originate from outside users rather than the core team, indicating a substantial base of adopters using the tool in production. Maintainers typically respond to new issues and pull requests within a day. Work in the issue tracker centers on bug fixes, enhancements, and addressing stale items.