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 UnboundLocalError: bind ccr_workspace_key before CCR-inject block (#1148)
xspawnnnd437d35dbb43
diff --git a/headroom/proxy/handlers/anthropic.py b/headroom/proxy/handlers/anthropic.pyindex 7d1b9ba85..e930e96bf 100644--- a/headroom/proxy/handlers/anthropic.py+++ b/headroom/proxy/handlers/anthropic.py@@ -1299,6 +1299,7 @@ class AnthropicHandlerMixin:)except Exception: # advisory hint only — must never fail a requestpass+ ccr_workspace_key = ccr_workspace_label = Noneif (self.config.ccr_inject_tool or self.config.ccr_inject_system_instructions) and not _bypass: