Concepts

Token Compression

Token compression is a practical plugin for long-context workloads. It aims to reduce redundant surface form while keeping task-critical semantics intact.

How Token Compression Works

The plugin compresses repeated or low-value prompt surface form before the request reaches the upstream model.

In long prompts, a large share of tokens often comes from repetition, verbose formatting, copied instructions, or context that can be represented more compactly without changing the task itself.

The compression plugin targets those patterns. It preserves the task, constraints, and important entities while reducing excess prompt form that does not materially help the model reason better.

Why It Is Effective

Compression works best when the input contains repeated scaffolding or verbose structured context.

Best-fit workloads

Coding agents, repeated repository context, verbose policy prompts, and long retrieval bundles.

Why it usually stays stable

The goal is to preserve core semantics and task constraints, not to rewrite the intent of the prompt.

Where to be careful

Do not assume the same gain for every prompt. Compression should be applied cautiously to exact legal text, token-sensitive evals, and prompts where literal formatting is itself the task.

Illustrative Savings Range

Use these ranges as directional guidance when evaluating whether to enable the plugin for a workflow.

PatternTypical effectComment
Repeated system and policy scaffoldsMeaningful prompt reductionA common fit for coding and agent workflows.
Verbose retrieved context with repeated headingsModerate to strong reductionBest when the same structure appears repeatedly.
Short prompts with little repetitionLow or negligible reductionCompression is less useful when the prompt is already compact.
When discussing impact externally, prefer 'illustrative savings range' over a hard guaranteed percentage.

Questions Teams Usually Ask

Need current pricing or the product overview?

Use pricing for the public commercial view, or return to the landing page for the high-level product story.