Skip to content

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.

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.py
index e42ff56cb..63434e6dc 100644
--- a/headroom/evals/memory/runner_v2.py
+++ b/headroom/evals/memory/runner_v2.py
@@ -15,9 +15,9 @@ from __future__ import annotations
import asyncio
import json
import logging
+import tempfile
import time
import uuid
-import tempfile
from collections.abc import Callable
from dataclasses import dataclass, field
from datetime import datetime
diff --git a/headroom/evals/memory/runner_v3.py b/headroom/evals/memory/runner_v3.py
index 91e49f421..08f793325 100644
--- a/headroom/evals/memory/runner_v3.py
+++ b/headroom/evals/memory/runner_v3.py
@@ -20,9 +20,9 @@ from __future__ import annotations
import asyncio
import json
import logging
+import tempfile
import time
import uuid
-import tempfile
from dataclasses import dataclass, field
from datetime import datetime
from pathlib import Path
diff --git a/headroom/rtk/installer.py b/headroom/rtk/installer.py
index 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 warning
if not url.startswith(("http://", "https://")):
raise ValueError(f"Invalid URL scheme in {url}")
-
+
# Try default SSL first, fall back to unverified for macOS framework Python
try:
with urlopen(url, timeout=30) as response: