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
{
"config": {
"chunk_words": 350,
"device": "auto",
"enable_ccr": false,
"model_id": "chopratejas/kompress-v2-base",
"score_threshold": 0.5
},
"input": "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. ",
"input_sha256": "9a0fba0115477c8b17d30763a33c036f22a9d8bd4e503a82a60cae9f39fd377d",
"output": {
"cache_key": null,
"compressed": "The quick brown fox jumps over lazy dog. quick brown fox jumps over lazy dog. quick brown fox jumps over the lazy dog.",
"compressed_tokens": 23,
"compression_ratio": 0.8518518518518519,
"model_used": "chopratejas/kompress-v2-base",
"original": "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. ",
"original_tokens": 27
},
"recorded_at": "2026-06-18T23:18:24.045187+00:00",
"transform": "kompress"
}