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": {},
"input": "Just some prose text without any structure or special markers.",
"input_sha256": "3a0b14d2dea7c87688fc40482a02f006accfae1da50f0734a1e395fed13fc744",
"output": {
"confidence": 0.5,
"content_type": "text",
"metadata": {}
},
"recorded_at": "2026-04-28T06:39:34.962324+00:00",
"transform": "content_detector"
}