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
Fix CI test, bump to 0.5.7
chopratejas72eebd4fe6b8
diff --git a/headroom/__init__.py b/headroom/__init__.pyindex 327981764..e088de82c 100644--- a/headroom/__init__.py+++ b/headroom/__init__.py@@ -153,7 +153,7 @@ from .transforms import (TransformPipeline,)-__version__ = "0.5.6"+__version__ = "0.5.7"__all__ = [# Main clientdiff --git a/pyproject.toml b/pyproject.tomlindex b3881cbb7..e17235140 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "hatchling.build"[project]name = "headroom-ai"-version = "0.5.6"+version = "0.5.7"description = "The Context Optimization Layer for LLM Applications - Cut costs by 50-90%"readme = "README.md"license = "Apache-2.0"diff --git a/tests/test_transforms/test_code_compressor.py b/tests/test_transforms/test_code_compressor.pyindex c9f7a87cb..95da801af 100644--- a/tests/test_transforms/test_code_compressor.py+++ b/tests/test_transforms/test_code_compressor.py@@ -645,7 +645,9 @@ def outer():result = compressor.compress(code)assert result is not None- assert result.syntax_valid is True+ # syntax_valid requires tree-sitter; without it, validation is skipped+ if is_tree_sitter_available():+ assert result.syntax_valid is Truedef test_syntax_errors_in_input(self, default_config):"""Syntax errors in input don't crash the compressor."""