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
style: format savings history tests
Garm3892774b5379
diff --git a/tests/test_proxy_savings_history.py b/tests/test_proxy_savings_history.pyindex 060a2decd..3b6dc0bfe 100644--- a/tests/test_proxy_savings_history.py+++ b/tests/test_proxy_savings_history.py@@ -381,9 +381,10 @@ def test_stats_history_csv_export_is_frontend_friendly(tmp_path, monkeypatch):response = client.get("/stats-history?format=csv&series=daily")assert response.status_code == 200assert response.headers["content-type"].startswith("text/csv")- assert "attachment; filename=\"headroom-stats-history-daily.csv\"" == response.headers[- "content-disposition"- ]+ assert (+ 'attachment; filename="headroom-stats-history-daily.csv"'+ == response.headers["content-disposition"]+ )lines = response.text.strip().splitlines()assert lines[0] == ("timestamp,tokens_saved,compression_savings_usd_delta,total_tokens_saved,"