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(merge): resolve upstream main conflicts for pi codex branch

Kayzo66907402181c
diff --cc headroom/proxy/handlers/streaming.py
index 4700b33af,496bd9ba9..60e5ae594
--- a/headroom/proxy/handlers/streaming.py
+++ b/headroom/proxy/handlers/streaming.py
@@@ -12,8 -13,10 +13,10 @@@ import tim
from datetime import datetime
from typing import TYPE_CHECKING, Any
+ from headroom.proxy.helpers import jitter_delay_ms
+
if TYPE_CHECKING:
- from fastapi.responses import StreamingResponse
+ from fastapi.responses import Response, StreamingResponse
import httpx