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.

1.2 KB
Raw Blame
{
  "config": {
    "compaction_core_field_fraction": 0.8,
    "compaction_heterogeneous_core_ratio": 0.6,
    "compaction_max_buckets": 8,
    "compaction_max_flatten_inner_keys": 6,
    "compaction_min_buckets": 2,
    "dedup_identical_items": true,
    "enabled": true,
    "factor_out_constants": false,
    "first_fraction": 0.3,
    "include_summaries": false,
    "last_fraction": 0.15,
    "lossless_min_savings_ratio": 0.15,
    "lossless_only": false,
    "max_items_after_crush": 15,
    "min_items_to_analyze": 5,
    "min_tokens_to_crush": 200,
    "preserve_change_points": true,
    "similarity_threshold": 0.8,
    "toin_confidence_threshold": 0.5,
    "uniqueness_threshold": 0.1,
    "use_feedback_hints": true,
    "variance_threshold": 2.0
  },
  "input": {
    "bias": 1.0,
    "content": "{\"a\": 1, \"b\": 2, \"c\": \"hello\"}",
    "query": ""
  },
  "input_sha256": "7249ffeaddf54726945ac4baf298cd33fb3bfb89f672983749065d7dfdf61553",
  "label": "small_object_passthrough",
  "output": {
    "compressed": "{\"a\": 1, \"b\": 2, \"c\": \"hello\"}",
    "original": "{\"a\": 1, \"b\": 2, \"c\": \"hello\"}",
    "strategy": "passthrough",
    "was_modified": false
  },
  "recorded_at": "2026-10-09T03:59:17.315451+00:00",
  "transform": "smart_crusher"
}