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 main
github-actions[bot]cc71e07d010e
diff --git a/.release-please-manifest.json b/.release-please-manifest.jsonindex 4801c06d4..28b806238 100644--- a/.release-please-manifest.json+++ b/.release-please-manifest.json@@ -1,3 +1,3 @@{- ".": "0.22.3"+ ".": "0.22.4"}diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 372dcca01..944be6c22 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,6 +5,27 @@ All notable changes to Headroom will be documented in this file.The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).+## [0.22.4](https://github.com/chopratejas/headroom/compare/v0.22.3...v0.22.4) (2026-05-26)+++### Bug Fixes++* **cli:** G1 remediation — non-string clobber, per-model systemMessage, openhands gate ([ea1976e](https://github.com/chopratejas/headroom/commit/ea1976e37a5147ecf37dbf5ffe4af5c2f2d1be6a))+* **cli:** wrap CLI breadth — cline, continue, goose, openhands ([8625f80](https://github.com/chopratejas/headroom/commit/8625f8075ed75d2a002f6ba357697de0fa1ec434))+* **cli:** wrap subcommands for cline, continue, goose, openhands ([c375fa1](https://github.com/chopratejas/headroom/commit/c375fa156dd0434256805f274c07be4f45db9814))+* **observability:** G3 remediation — bound cardinality + wire dead metrics ([2a717a9](https://github.com/chopratejas/headroom/commit/2a717a993ee99f9401f5cdf78a23dcecd7cb1a51))+* **observability:** RTK metrics + Rust observability (Phase H blocker) ([b36ad9f](https://github.com/chopratejas/headroom/commit/b36ad9fe1c6a488eb9ffbf0e8b38d989278cf8ef))+* **observability:** wire Phase G PR-G3 RTK + proxy metrics (H-blocker) ([5f264a5](https://github.com/chopratejas/headroom/commit/5f264a53292e292c9c56b837c2750d1a415b1ea9))+* **release:** tag format vX.Y.Z (drop release-please component prefix) ([4a39ef5](https://github.com/chopratejas/headroom/commit/4a39ef54ed6cdaa24d8f9fa49bbd3daf7100658e))+* **release:** tag format vX.Y.Z (drop release-please component prefix) ([0f3e3af](https://github.com/chopratejas/headroom/commit/0f3e3af6b2a154c5ecaeda3f9770cec97e9a3ba0))+* **subscription:** address G2 review findings — phantom delta, multi-worker race, silent fallbacks ([f68090c](https://github.com/chopratejas/headroom/commit/f68090c5b4bd9670ee7fc9a0c71e57f05072c18c))+* **subscription:** wire tokens_saved_rtk data plane ([c7d1247](https://github.com/chopratejas/headroom/commit/c7d1247a2bd06738c3b6c8e73e15902a7e428467))+* **subscription:** wire tokens_saved_rtk from RTK stats endpoint ([44c605f](https://github.com/chopratejas/headroom/commit/44c605fbb0e3ae4e7a92d9693d0da8bc21115b81))+* **tests:** drive RTK subprocess failure with real exec, not monkeypatched run ([9b6d637](https://github.com/chopratejas/headroom/commit/9b6d6374f13a88842a1944688005649ad3680acd))+* **tests:** mock logger.warning directly instead of relying on caplog ([c38dac3](https://github.com/chopratejas/headroom/commit/c38dac301e6bc702979ab11357a9c27a180ae060))+* **tests:** patch headroom.rtk.get_rtk_path, not the helpers alias ([317dffe](https://github.com/chopratejas/headroom/commit/317dffe58fb0c6233210bbc9e42ebf16b9288391))+* **tests:** tomllib fallback to tomli on python 3.10 ([74843d1](https://github.com/chopratejas/headroom/commit/74843d1d626de70158a359661a540c615ef1a6c5))+## [Unreleased]### Fixeddiff --git a/plugins/openclaw/package.json b/plugins/openclaw/package.jsonindex e2d89d241..03d61a068 100644--- a/plugins/openclaw/package.json+++ b/plugins/openclaw/package.json@@ -1,54 +1,54 @@-{- "name": "headroom-openclaw",- "version": "0.22.3",- "description": "Headroom context compression plugin for OpenClaw \u2014 70-90% token savings with zero LLM calls",- "type": "module",- "main": "./dist/index.js",- "types": "./dist/index.d.ts",- "files": [- "dist",- "hook-shim",- "openclaw.plugin.json",- "README.md"- ],- "scripts": {- "build": "tsup && node prepare-dist.mjs",- "test": "vitest run",- "test:watch": "vitest",- "typecheck": "tsc --noEmit"- },- "dependencies": {- "headroom-ai": "^0.22.3"- },- "peerDependencies": {- "openclaw": "*"- },- "peerDependenciesMeta": {- "openclaw": {- "optional": true- }- },- "devDependencies": {- "@types/node": "^22.10.0",- "tsup": "^8.0.0",- "typescript": "^5.5.0",- "vitest": "^4.1.5"- },- "openclaw": {- "hooks": [- "./hook-shim"- ],- "extensions": [- "./dist/index.js"- ],- "capabilities": {- "network": {- "allow": [- "http://*:*",- "https://*:*"- ]- }- }- },- "license": "Apache-2.0"+{+ "name": "headroom-openclaw",+ "version": "0.22.4",+ "description": "Headroom context compression plugin for OpenClaw — 70-90% token savings with zero LLM calls",+ "type": "module",+ "main": "./dist/index.js",+ "types": "./dist/index.d.ts",+ "files": [+ "dist",+ "hook-shim",+ "openclaw.plugin.json",+ "README.md"+ ],+ "scripts": {+ "build": "tsup && node prepare-dist.mjs",+ "test": "vitest run",+ "test:watch": "vitest",+ "typecheck": "tsc --noEmit"+ },+ "dependencies": {+ "headroom-ai": "^0.22.3"+ },+ "peerDependencies": {+ "openclaw": "*"+ },+ "peerDependenciesMeta": {+ "openclaw": {+ "optional": true+ }+ },+ "devDependencies": {+ "@types/node": "^22.10.0",+ "tsup": "^8.0.0",+ "typescript": "^5.5.0",+ "vitest": "^4.1.5"+ },+ "openclaw": {+ "hooks": [+ "./hook-shim"+ ],+ "extensions": [+ "./dist/index.js"+ ],+ "capabilities": {+ "network": {+ "allow": [+ "http://*:*",+ "https://*:*"+ ]+ }+ }+ },+ "license": "Apache-2.0"}diff --git a/pyproject.toml b/pyproject.tomlindex 4c07a35bd..1074b7988 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "maturin"[project]name = "headroom-ai"-version = "0.22.3"+version = "0.22.4"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 f33002b4d..a33583b13 100644--- a/sdk/typescript/package.json+++ b/sdk/typescript/package.json@@ -1,6 +1,6 @@{"name": "headroom-ai",- "version": "0.22.3",+ "version": "0.22.4","description": "Compress LLM context. Save tokens. Fit more into every request.","type": "module","main": "./dist/index.cjs",