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: fix ruff lint issues (import sorting, trailing whitespace)
Tejas Chopra4baef0e59862
diff --git a/headroom/evals/memory/runner_v2.py b/headroom/evals/memory/runner_v2.pyindex e42ff56cb..63434e6dc 100644--- a/headroom/evals/memory/runner_v2.py+++ b/headroom/evals/memory/runner_v2.py@@ -15,9 +15,9 @@ from __future__ import annotationsimport asyncioimport jsonimport logging+import tempfileimport timeimport uuid-import tempfilefrom collections.abc import Callablefrom dataclasses import dataclass, fieldfrom datetime import datetimediff --git a/headroom/evals/memory/runner_v3.py b/headroom/evals/memory/runner_v3.pyindex 91e49f421..08f793325 100644--- a/headroom/evals/memory/runner_v3.py+++ b/headroom/evals/memory/runner_v3.py@@ -20,9 +20,9 @@ from __future__ import annotationsimport asyncioimport jsonimport logging+import tempfileimport timeimport uuid-import tempfilefrom dataclasses import dataclass, fieldfrom datetime import datetimefrom pathlib import Pathdiff --git a/headroom/rtk/installer.py b/headroom/rtk/installer.pyindex 3336418bf..d9804e741 100644--- a/headroom/rtk/installer.py+++ b/headroom/rtk/installer.py@@ -77,7 +77,7 @@ def download_rtk(version: str | None = None) -> Path:# Validate URL scheme to prevent B310 warningif not url.startswith(("http://", "https://")):raise ValueError(f"Invalid URL scheme in {url}")-+# Try default SSL first, fall back to unverified for macOS framework Pythontry:with urlopen(url, timeout=30) as response: