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": "only nine words here so it passes through cleanly",
"input_sha256": "96fbac155a26ca59e2f81c6fd1ac0e45c11ad41c87225ac73d881c652be18b60",
"output": {
"cache_key": null,
"compressed": "only nine words here so it passes through cleanly",
"compressed_tokens": 9,
"compression_ratio": 1.0,
"model_used": "chopratejas/kompress-v2-base",
"original": "only nine words here so it passes through cleanly",
"original_tokens": 9
},
"recorded_at": "2026-06-18T23:18:19.224096+00:00",
"transform": "kompress"
}