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.
Python agentaianthropicclaude-codecompressioncontext-engineeringcontext-windowcursorfastapilangchainllmmcpopenaiprompt-engineeringproxypythonragtoken-optimizationtokenstypescript
docs: list OpenCode in the agent compatibility matrix (#1286) (#1340)
Lakshya Sharma00e8de4a3de9
diff --git a/README.md b/README.mdindex 2edd33b9a..b2da4dfd0 100644--- a/README.md+++ b/README.md@@ -48,7 +48,7 @@ Headroom compresses everything your AI agent reads — tool outputs, logs, RAG c- **Library** — `compress(messages)` in Python or TypeScript, inline in any app- **Proxy** — `headroom proxy --port 8787`, zero code changes, any language-- **Agent wrap** — `headroom wrap claude|codex|cursor|aider|copilot` in one command+- **Agent wrap** — `headroom wrap claude|codex|cursor|aider|copilot|opencode` in one command- **MCP server** — `headroom_compress`, `headroom_retrieve`, `headroom_stats` for any MCP client- **Cross-agent memory** — shared store across Claude, Codex, Gemini, auto-dedup- **`headroom learn`** — mines failed sessions, writes corrections to `CLAUDE.md` / `AGENTS.md`@@ -198,6 +198,7 @@ shows an **Output Tokens Saved** card next to input compression, labelled| Aider | ✅ | starts proxy + launches || Copilot CLI | ✅ | starts proxy + launches || OpenClaw | ✅ | installs as ContextEngine plugin |+| OpenCode | ✅ | injects config · starts proxy + launches || Cortex Code | ✅ | 60–65% savings · library mode |Any OpenAI-compatible client works via `headroom proxy`. MCP-native: `headroom mcp install`.diff --git a/llms.txt b/llms.txtindex c4deb7936..b3e632d5a 100644--- a/llms.txt+++ b/llms.txt@@ -21,7 +21,7 @@ The canonical, always-current documentation index lives at the docs site below.- TypeScript / Node: `npm install headroom-ai` (or `pnpm add headroom-ai`, `bun add headroom-ai`)- Docker: `docker run -p 8787:8787 ghcr.io/chopratejas/headroom:latest`- Run the proxy: `headroom proxy --port 8787` then point any client at `http://127.0.0.1:8787`-- Wrap an agent in one command: `headroom wrap claude` (also: `codex`, `cursor`, `aider`, `copilot`, `gemini`)+- Wrap an agent in one command: `headroom wrap claude` (also: `codex`, `cursor`, `aider`, `copilot`, `opencode`)## Entry points