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
.
Garmaf448a568f09
diff --git a/tests/test_learn/test_integration.py b/tests/test_learn/test_integration.pyindex a35d403e5..3e4d03924 100644--- a/tests/test_learn/test_integration.py+++ b/tests/test_learn/test_integration.py@@ -26,7 +26,7 @@ from headroom.learn.models import (Recommendation,RecommendationTarget,)-from headroom.learn.scanner import _decode_project_path, _greedy_path_decode+from headroom.learn.scanner import _greedy_path_decodefrom headroom.learn.writer import ClaudeCodeWriter, CodexWriter# =============================================================================diff --git a/tests/test_learn/test_scanner.py b/tests/test_learn/test_scanner.pyindex 209f83c39..f91f906a9 100644--- a/tests/test_learn/test_scanner.py+++ b/tests/test_learn/test_scanner.py@@ -9,12 +9,12 @@ making it impossible to reconstruct names formed from three or more tokens.from __future__ import annotationsfrom pathlib import Path+from uuid import uuid4import pytestfrom headroom.learn.scanner import _decode_project_path, _greedy_path_decode-# ---------------------------------------------------------------------------# Helpers# ---------------------------------------------------------------------------@@ -169,7 +169,6 @@ class TestDecodeProjectPath:Falls back to tmp_path so tests still run on non-macOS platforms(where the greedy branch isn't reached but no crash occurs either)."""- import oshome = Path.home()if str(home).startswith("/Users/"):@@ -179,9 +178,7 @@ class TestDecodeProjectPath:except PermissionError:pytest.skip("Cannot create /Users-rooted temp dir in this environment")# Use a sub-directory unique to this test invocation- import uuid-- unique = base / uuid.uuid4().hex+ unique = base / uuid4().hextry:unique.mkdir()except PermissionError: