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(merge): resolve upstream main conflicts for pi codex branch
Kayzo66907402181c
diff --cc headroom/proxy/handlers/streaming.pyindex 4700b33af,496bd9ba9..60e5ae594--- a/headroom/proxy/handlers/streaming.py+++ b/headroom/proxy/handlers/streaming.py@@@ -12,8 -13,10 +13,10 @@@ import timfrom datetime import datetimefrom 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, StreamingResponseimport httpx