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
What XERJ indexed
Snapshot
Only headroom/cli, headroom/memory, headroom/proxy, tests at commit b1b005a9a8 (2026-09-29). main is 473 commits ahead.
Selected work

“align project routing with wrap headers”. 8 files, 342 lines in tests, headroom.
Licence
The repository
LICENSE file checked at the pinned commit; the author agreed to inclusion.
The XERJ corpus
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
- How does headroom implement agent?
- Where does headroom handle “align project routing with wrap headers”?
- What does headroom do in headroom?
Inside the indexed corpus
- 2,483 files, 66.6 MB in total, about 27.4 KB per file.
- The selected commit changed 8 of those files (0.3%).
- Languages by size: Python 81.3%, Rust 11.8%, JavaScript 2.9%, TypeScript 2.3%, HTML 0.9%.
- On GitHub since 2026-01-07, last push 2026-10-30, 3,436 commits on main.
- The pin is 473 commits behind main; the corpus answers from the pinned code, not the newest.
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
- Code search MCP for Claude Code: cite file:line, not grep headroom is tagged mcp on GitHub.
- What is an MCP memory server?
- Index a monorepo so your agent stops reading the whole repo The pinned tree has 2,483 files.
- RAG without a vector database: one hybrid index The hub files it under AI, prompts and agents.
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
AxelRayAI, prompts and agents corporaagentopsgriptapeaiderinth3shadows/terseShvirlok/TokenGuardmagicapple123/ResumeForge
Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.