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": "[1, 2, 3]",
    "query": ""
  },
  "input_sha256": "70abace7c488b4acb90c60cef985af22980bdd4d58dfb275140cc909c8a3d97f",
  "label": "short_array_passthrough",
  "output": {
    "compressed": "[1, 2, 3]",
    "original": "[1, 2, 3]",
    "strategy": "passthrough",
    "was_modified": false
  },
  "recorded_at": "2026-10-09T03:59:17.333122+00:00",
  "transform": "smart_crusher"
}