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 committee reviewed the quarterly report and concluded that revenue grew twelve percent while operating costs declined by four percent year over year across all major regional markets surveyed. The committee reviewed the quarterly report and concluded that revenue grew twelve percent while operating costs declined by four percent year over year across all major regional markets surveyed. The committee reviewed the quarterly report and concluded that revenue grew twelve percent while operating costs declined by four percent year over year across all major regional markets surveyed. The committee reviewed the quarterly report and concluded that revenue grew twelve percent while operating costs declined by four percent year over year across all major regional markets surveyed. ",
"input_sha256": "9a4c0b3a49037be270b7493d9844736f27108e55da49a09979446c100d9a8116",
"output": {
"cache_key": null,
"compressed": "committee reviewed quarterly report concluded revenue grew twelve percent while operating costs declined by four percent year over year across all major regional markets surveyed. committee reviewed quarterly report concluded revenue grew twelve percent while operating costs declined by four percent year over year across all major regional markets surveyed. committee reviewed quarterly report concluded revenue grew twelve percent while operating costs declined by four percent year over year across all major regional markets surveyed. committee reviewed quarterly report concluded revenue grew twelve percent while operating costs declined by four percent year over year across all major regional markets surveyed.",
"compressed_tokens": 100,
"compression_ratio": 0.8620689655172413,
"model_used": "chopratejas/kompress-v2-base",
"original": "The committee reviewed the quarterly report and concluded that revenue grew twelve percent while operating costs declined by four percent year over year across all major regional markets surveyed. The committee reviewed the quarterly report and concluded that revenue grew twelve percent while operating costs declined by four percent year over year across all major regional markets surveyed. The committee reviewed the quarterly report and concluded that revenue grew twelve percent while operating costs declined by four percent year over year across all major regional markets surveyed. The committee reviewed the quarterly report and concluded that revenue grew twelve percent while operating costs declined by four percent year over year across all major regional markets surveyed. ",
"original_tokens": 116
},
"recorded_at": "2026-06-18T23:18:31.596517+00:00",
"transform": "kompress"
}