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
chore: release 0.36.2 (#3157)
JD Davis5e0ce242e99b
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex 7e72dde19..9f5e312d0 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -5,14 +5,14 @@},"metadata": {"description": "Headroom marketplace for Claude Code and GitHub Copilot CLI plugins.",- "version": "0.36.1"+ "version": "0.36.2"},"plugins": [{"name": "headroom","source": "./plugins/headroom-agent-hooks","description": "Headroom startup hooks for Claude Code and GitHub Copilot CLI.",- "version": "0.36.1",+ "version": "0.36.2","author": {"name": "Headroom Contributors","url": "https://github.com/chopratejas/headroom"diff --git a/.github/plugin/marketplace.json b/.github/plugin/marketplace.jsonindex 7e72dde19..9f5e312d0 100644--- a/.github/plugin/marketplace.json+++ b/.github/plugin/marketplace.json@@ -5,14 +5,14 @@},"metadata": {"description": "Headroom marketplace for Claude Code and GitHub Copilot CLI plugins.",- "version": "0.36.1"+ "version": "0.36.2"},"plugins": [{"name": "headroom","source": "./plugins/headroom-agent-hooks","description": "Headroom startup hooks for Claude Code and GitHub Copilot CLI.",- "version": "0.36.1",+ "version": "0.36.2","author": {"name": "Headroom Contributors","url": "https://github.com/chopratejas/headroom"diff --git a/.release-please-manifest.json b/.release-please-manifest.jsonindex ae5e906b4..377c22bf0 100644--- a/.release-please-manifest.json+++ b/.release-please-manifest.json@@ -1,3 +1,3 @@{- ".": "0.36.1"+ ".": "0.36.2"}diff --git a/.releasemetadata b/.releasemetadataindex fc99068b4..d92cde783 100644--- a/.releasemetadata+++ b/.releasemetadata@@ -1,10 +1,10 @@{- "version": "0.36.1",+ "version": "0.36.2","packages": {- "pypi": "0.36.1",- "npm-sdk": "0.36.1",- "npm-openclaw": "0.36.1",- "npm-opencode": "0.36.1",- "agent-hooks-plugin": "0.36.1"+ "pypi": "0.36.2",+ "npm-sdk": "0.36.2",+ "npm-openclaw": "0.36.2",+ "npm-opencode": "0.36.2",+ "agent-hooks-plugin": "0.36.2"}}diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 714c76d84..0623fda3c 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -284,6 +284,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- **code:** fix two `CodeAwareCompressor` AST-reassembly bugs: an exported JS/TS function or class (`export function foo() {`) produced a duplicated `export export` keyword and invalid syntax, because line-based node slicing (used to preserve indentation) pulled in the preceding `export` sibling's text on top of the `export_statement` handler's own prefix reconstruction. Separately, in every supported language, a doc comment immediately above a top-level function, class, or type was detached from its declaration during extraction and re-emitted in a cluster at the end of the compressed output instead of staying attached to what it documents.- * **proxy:** Buffered upstream responses containing a `server_tool_use` (or any other unrecognized Anthropic content block) no longer turn a fully-generated response into an HTTP 502. `StreamingMixin._response_to_sse` raised `ValueError` on unknown block types after the entire upstream generation had already been buffered, so a slow-but-successful response failed and the client retried the whole multi-minute request. Unknown blocks are now emitted verbatim in `content_block_start` (following the existing redacted_thinking` pattern), so `server_tool_use`, `server_tool_result`, `mcp_tool_use`, and future block types round-trip ([#1806](https://github.com/headroomlabs-ai/headroom/issues/1806)).+## [0.36.2](https://github.com/headroomlabs-ai/headroom/compare/v0.36.1...v0.36.2) (2026-08-21)+++### Bug Fixes++* **copilot:** bind the minted token to the integration ID we forward ([#3164](https://github.com/headroomlabs-ai/headroom/issues/3164)) ([397803a](https://github.com/headroomlabs-ai/headroom/commit/397803a9424cf184f597a2d18af82632e7b0ac70))+* **kompress:** accept ccr_original on the remote compressor ([#3162](https://github.com/headroomlabs-ai/headroom/issues/3162)) ([45cb1b9](https://github.com/headroomlabs-ai/headroom/commit/45cb1b9c4824a3a609772d8828a119bdc1c31ad0))+* **proxy:** count output tokens from the stream's text, not its wire size ([#3163](https://github.com/headroomlabs-ai/headroom/issues/3163)) ([4006964](https://github.com/headroomlabs-ai/headroom/commit/4006964a037817b22437abcaf2c55b13085b4021))+++### Dependencies++* bump ai from 6.0.138 to 7.0.59 in /sdk/typescript ([#2281](https://github.com/headroomlabs-ai/headroom/issues/2281)) ([0891062](https://github.com/headroomlabs-ai/headroom/commit/08910624fbe4877da0789038957308dbe9be9451))+* bump ai from 6.0.149 to 7.0.59 in /docs ([#2277](https://github.com/headroomlabs-ai/headroom/issues/2277)) ([f7e5d37](https://github.com/headroomlabs-ai/headroom/commit/f7e5d37f526907b2b8a22d5e7332ed3fddfa071c))+* bump md-5 from 0.10.6 to 0.11.0 ([#3146](https://github.com/headroomlabs-ai/headroom/issues/3146)) ([c6dd823](https://github.com/headroomlabs-ai/headroom/commit/c6dd82338434f964cd73ed2f742ad0c733bff79f))+* bump ruff from 0.16.2 to 0.16.3 in the pip-minor-patch group ([#3143](https://github.com/headroomlabs-ai/headroom/issues/3143)) ([c8db13d](https://github.com/headroomlabs-ai/headroom/commit/c8db13d5ad78d9d1bcf5c43dcaeba69070f26e1f))+* bump the cargo-minor-patch group with 8 updates ([#3145](https://github.com/headroomlabs-ai/headroom/issues/3145)) ([9c14e3a](https://github.com/headroomlabs-ai/headroom/commit/9c14e3aa9598a01c3cc208c8f483b5dd6398ea1f))+* bump tiktoken-rs from 0.11.0 to 0.12.0 ([#3147](https://github.com/headroomlabs-ai/headroom/issues/3147)) ([a307c11](https://github.com/headroomlabs-ai/headroom/commit/a307c11109de21b0d5d9648be69b0f08a40d3a4d))+* bump tokenizers from 0.22.2 to 0.23.1 ([#3149](https://github.com/headroomlabs-ai/headroom/issues/3149)) ([6e2e10f](https://github.com/headroomlabs-ai/headroom/commit/6e2e10f67a737d3b2d844975c1384e02637dbcc3))+* bump typescript from 5.9.3 to 7.0.2 in /plugins/openclaw ([#2279](https://github.com/headroomlabs-ai/headroom/issues/2279)) ([85774fc](https://github.com/headroomlabs-ai/headroom/commit/85774fcb70b46ae44bcd3533a214d64189908622))+* bump typescript from 5.9.3 to 7.0.2 in /plugins/opencode ([#2280](https://github.com/headroomlabs-ai/headroom/issues/2280)) ([a382137](https://github.com/headroomlabs-ai/headroom/commit/a382137844428820f49d9b43100fed8e492c2db2))+* update mcp requirement from <2.0.0,>=1.28.1 to >=1.28.1,<3.0.0 ([#3144](https://github.com/headroomlabs-ai/headroom/issues/3144)) ([6928d19](https://github.com/headroomlabs-ai/headroom/commit/6928d1932c1136fd1c6bd724ee88d12815ecd2d6))+## [0.36.1](https://github.com/headroomlabs-ai/headroom/compare/v0.36.0...v0.36.1) (2026-08-20)diff --git a/plugins/headroom-agent-hooks/.claude-plugin/plugin.json b/plugins/headroom-agent-hooks/.claude-plugin/plugin.jsonindex c68abe237..dee8237eb 100644--- a/plugins/headroom-agent-hooks/.claude-plugin/plugin.json+++ b/plugins/headroom-agent-hooks/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "headroom",- "version": "0.36.1",+ "version": "0.36.2","description": "Headroom startup hooks for Claude Code and GitHub Copilot CLI.","author": {"name": "Headroom Contributors",diff --git a/plugins/headroom-agent-hooks/.github/plugin/plugin.json b/plugins/headroom-agent-hooks/.github/plugin/plugin.jsonindex 1458ffae7..39171a5bb 100644--- a/plugins/headroom-agent-hooks/.github/plugin/plugin.json+++ b/plugins/headroom-agent-hooks/.github/plugin/plugin.json@@ -1,6 +1,6 @@{"name": "headroom",- "version": "0.36.1",+ "version": "0.36.2","description": "Headroom startup hooks for Claude Code and GitHub Copilot CLI.","author": {"name": "Headroom Contributors",diff --git a/plugins/openclaw/package.json b/plugins/openclaw/package.jsonindex 27a9e8394..1c9d77978 100644--- a/plugins/openclaw/package.json+++ b/plugins/openclaw/package.json@@ -1,6 +1,6 @@{"name": "headroom-openclaw",- "version": "0.36.1",+ "version": "0.36.2","description": "Headroom context compression plugin for OpenClaw — 70-90% token savings with zero LLM calls","type": "module","main": "./dist/index.js",diff --git a/plugins/opencode/package.json b/plugins/opencode/package.jsonindex 8d2b8a067..093f647b1 100644--- a/plugins/opencode/package.json+++ b/plugins/opencode/package.json@@ -1,6 +1,6 @@{"name": "headroom-opencode",- "version": "0.36.1",+ "version": "0.36.2","description": "Headroom proxy integration plugin for OpenCode - routes LLM traffic through the Headroom proxy for token compression","type": "module","main": "./dist/index.js",diff --git a/pyproject.toml b/pyproject.tomlindex 23ea3a375..33075a08f 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "maturin"[project]name = "headroom-ai"-version = "0.36.1"+version = "0.36.2"description = "The Context Optimization Layer for LLM Applications - Cut costs by 50-90%"readme = "README.md"license = "Apache-2.0"diff --git a/sdk/typescript/package.json b/sdk/typescript/package.jsonindex fff47c52c..691a4a377 100644--- a/sdk/typescript/package.json+++ b/sdk/typescript/package.json@@ -1,6 +1,6 @@{"name": "headroom-ai",- "version": "0.36.1",+ "version": "0.36.2","description": "Compress LLM context. Save tokens. Fit more into every request.","type": "module","main": "./dist/index.cjs",diff --git a/server.json b/server.jsonindex 383f82c54..97fad0573 100644--- a/server.json+++ b/server.json@@ -9,13 +9,13 @@"source": "github","id": "1129940957"},- "version": "0.36.1",+ "version": "0.36.2","packages": [{"registryType": "pypi","registryBaseUrl": "https://pypi.org","identifier": "headroom-ai",- "version": "0.36.1",+ "version": "0.36.2","runtimeHint": "uvx","runtimeArguments": [{