Context Compress
context_compressCompress a prompt payload before it reaches an LLM.
Shrinks JSON tool outputs, logs, and long text using SmartCrusher-lite
sampling. Originals are stored in CCR (Redis) with ref= markers for
context_retrieve. Always runs; tune thresholds via TEAMSHARED_COMPRESS_*.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messages | Yes | OpenAI-style chat messages to compress before sending to an LLM. User messages are preserved; long tool/assistant/system blocks shrink. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||