{"repo":"chopratejas/headroom-zed","free":true,"listed":false,"github":"https://github.com/chopratejas/headroom-zed","clone":"git clone https://github.com/chopratejas/headroom-zed.git","description":"Zed extension for Headroom — context compression for AI agents","language":"Rust","stars":59,"topics":["ai-agents","coding-agents","context-compression","headroom","llm","mcp","token-optimization","wasm","zed","zed-extension"],"license":null,"category":"ai-agents","readme_excerpt":"Headroom for Zed Context compression for Zed's AI agent. Same answers, fraction of the tokens. What it does This extension registers Headroom as an MCP context server in Zed, giving the AI agent three tools: Tool What it does ------ ------------- headroom compress Compress large content (files, JSON, logs, search results) on demand headroom retrieve Retrieve original uncompressed content by hash headroom stats Show session stats: tokens saved, cost saved, recent events Setup 1. Install Headroom 2. Install the extension In Zed: Extensions → search Headroom → Install That's it. Zed's agent now has access to compression tools. 3. (Optional) Automatic compression for all traffic The MCP tools above are on-demand — the agent calls them when it wants to compress. For automatic compression of every LLM request, start the Headroom proxy: Then add to your Zed settings ( settings.json ): Now every request is automatically compressed — 50-90% fewer tokens, same quality. The MCP tools and proxy work independently or together. How it works The extension tells Zed to run headroom mcp serve as a background process. This starts Headroom's MCP server, which exposes the compression tools over the Model Context Protocol. Zed's agent can then call these tools like any other MCP tool. Compression uses Headroom's full pipeline: SmartCrusher for JSON, CodeCompressor for code, Kompress for text (with [ml] extra). Originals are stored locally for the session and retrievable on demand — nothing is los","default_branch":null,"files":null,"tree":[],"storefront":"/r/chopratejas","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/chopratejas/headroom-zed/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}