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
Fix mypy type annotation error in content_router.py
chopratejasdcbc22092925
diff --git a/headroom/transforms/content_router.py b/headroom/transforms/content_router.pyindex baa3cc385..dbddc6df3 100644--- a/headroom/transforms/content_router.py+++ b/headroom/transforms/content_router.py@@ -903,8 +903,8 @@ class ContentRouter(Transform):context = kwargs.get("context", "")source_hints = kwargs.get("source_hints", {}) # message_id -> hint- transformed_messages = []- transforms_applied = []+ transformed_messages: list[dict[str, Any]] = []+ transforms_applied: list[str] = []warnings: list[str] = []# Check for analysis intent in the most recent user message