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

A new way for AI to search for data
View on GitHub
78,447GitHub stars
3,436commits on main
6,119forks
v0.42.0latest release, 2026-10-26

Python 81.3%, Rust 11.8%, JavaScript 2.9%, TypeScript 2.3% · created 2026-01-07 · last push 2026-10-30

What XERJ indexed

Snapshot

2,483 files · 66.6 MB

Only headroom/cli, headroom/memory, headroom/proxy, tests at commit b1b005a9a8 (2026-09-29). main is 473 commits ahead.

Selected work

AxelRay
@axelray-dev

“align project routing with wrap headers”. 8 files, 342 lines in tests, headroom.

Licence

The repository

Apache-2.0

LICENSE file checked at the pinned commit; the author agreed to inclusion.

The XERJ corpus

Apache-2.0, with credit

The author agreed by email on 2026-10-14. Same terms as the repository. Answers name the repo, the commit and the file:line.

selected for the XERJ Corpus Hublicence clearedsuggested use: adapt with attribution

agentaianthropiccompressioncontext-engineeringcontext-windowfastapilangchain

Example questions

Inside the indexed corpus

Licence on GitHub and in the corpus

GitHub reported Apache-2.0 for headroomlabs-ai/headroom on 2026-10-31, and the LICENSE file at commit b1b005a9a8 was reviewed as Apache-2.0. They match, so answers from this corpus carry the same terms as the live repository.

Contributors

AxelRay (@axelray-dev) has 1 selected repository on the hub.

Using XERJ with headroom

The prompt

Paste it into your AI agent. It clones headroomlabs-ai/headroom at the pinned commit and indexes it on your machine.

Search the GitHub repository headroomlabs-ai/headroom with XERJ (https://hub.xerj.org/corpus/headroomlabs-ai--headroom).
Run these in a shell, in order, and check each result before the next:
1. xerj --help  (success: it prints usage). If xerj is missing: curl -fsSL https://xerj.org/get | sh
2. git clone https://github.com/headroomlabs-ai/headroom headroom && git -C headroom checkout b1b005a9a867d75cbc6b459b1f5276c272e7ac50
3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data
4. xerj autoindex ./headroom --url http://127.0.0.1:9200 --prefix headroom --progress plain
5. xerj autoindex map --url http://127.0.0.1:9200
Then answer my question from the indexed files and cite the ax_path of every hit. Query syntax: https://xerj.org/llms.txt
Licence: Apache-2.0. Keep the copyright notice and credit the authors.

Related

Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.