What problem does it solve?
It solves the problem of overflowing agent context windows by deciding what information to keep, cut, or compress so the model still has enough decision-relevant signal to complete the task well.
Core Features & Use Cases
- Budget-aware context triage: Computes available token budget after accounting for system prompt, tools, history, and reserved output, then selects content accordingly.
- Entropy- and redundancy-based scoring: Ranks fragments by self-information, redundancy overlap, and token efficiency, cutting low-value or duplicative content.
- Lossless and lossy compression modes: Uses lossless reformulation/deduplication when feasible, and applies carefully logged lossy reductions (e.g., scope narrowing or abstraction) when tokens are scarce.
- Verification of task adequacy: Checks that critical high self-information fragments remain at full fidelity and that cuts won’t change required behavior.
Quick Start
Ask the AI to optimize the context it is assembling for your current task by using the context-compressor to fit within your token budget while preserving decision-critical information.