Skip to content

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.

866 B
Raw Blame
{
  "config": {
    "always_keep_additions": true,
    "always_keep_deletions": true,
    "enable_ccr": true,
    "max_context_lines": 2,
    "max_files": 20,
    "max_hunks_per_file": 10,
    "min_lines_for_ccr": 50
  },
  "input": "diff --git a/a.py b/a.py\n--- a/a.py\n+++ b/a.py\n@@ -1,3 +1,3 @@\n-x = 1\n+x = 2\n y = 3\n z = 4\n# variant 3",
  "input_sha256": "e9c505e42b2b2edccb70c13aaee3c5d22cd07ac26449846db49d8aafb8ea538b",
  "output": {
    "additions": 0,
    "cache_key": null,
    "compressed": "diff --git a/a.py b/a.py\n--- a/a.py\n+++ b/a.py\n@@ -1,3 +1,3 @@\n-x = 1\n+x = 2\n y = 3\n z = 4\n# variant 3",
    "compressed_line_count": 9,
    "deletions": 0,
    "files_affected": 0,
    "hunks_kept": 0,
    "hunks_removed": 0,
    "original_line_count": 9
  },
  "recorded_at": "2026-04-23T23:51:37.348162+00:00",
  "transform": "diff_compressor"
}