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
Skip telemetry when no requests have been processed
chopratejasf507af4f770a
diff --git a/headroom/telemetry/beacon.py b/headroom/telemetry/beacon.pyindex d47106a7d..3ec2b3fd1 100644--- a/headroom/telemetry/beacon.py+++ b/headroom/telemetry/beacon.py@@ -99,6 +99,11 @@ class TelemetryBeacon:models_by = requests.get("by_model", {})models = [m for m in models_by.keys() if not m.startswith("passthrough:")]+ # Don't send empty stats — no point reporting zeros+ total_requests = requests.get("total", 0)+ if total_requests == 0:+ return+session_minutes = max(1, int((time.time() - self._start_time) / 60))try: