compress_context
Extract state deltas from conversation history to compress verbose context, preserving only facts relevant to your objective. Reduces token usage by 74-91% for efficient AI processing.
Instructions
Compresses verbose conversation history by extracting state deltas (74.2% - 91.5% token reduction).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw_context | Yes | Full unstructured text, dialogue transcript, or JSON context requiring state compression. | |
| intent_focus | No | Target focus anchor preserving only causal facts relevant to this objective. | |
| aggressive_mode | No | Whether to strip all decorative conversational markers and preserve solely mathematical and functional deltas. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context_hash | Yes | Cryptographic hash of the state transition. | |
| original_char_count | No | Character length of input context. | |
| reduction_percentage | Yes | Net token saving percentage achieved. | |
| compressed_char_count | No | Character length of compressed delta representation. | |
| compressed_delta_text | Yes | Causally compressed state delta text. | |
| estimated_original_tokens | No | Estimated token count of original context. | |
| estimated_compressed_tokens | No | Estimated token count of compressed state. |