> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comet.rpamis.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Context compression

> Understand Comet's handoff compression modes and how beta mode keeps delta specs verbatim while hashing supporting files.

Context compression controls how much OpenSpec context is passed to Superpowers during the design→build handoff. It is a beta feature designed to reduce token use without compromising implementation correctness. Unlike traditional summary-based context compression, which condenses the key points and can cause Spec Coding tasks to lose steps or details, Comet preserves spec integrity through structured projection and hash references. That reduces token use without introducing spec drift that can derail downstream Agent execution.

<p align="center">
  <img src="https://mintcdn.com/comet-bb5f5294/piE9AoWsM20071ec/assets/context-compression-illustrations/01-off-beta-handoff-modes.png?fit=max&auto=format&n=piE9AoWsM20071ec&q=85&s=83bb1487fa7bff36a3c3e4c5d16d40d9" alt="Xiaoyu compares the full off handoff summary with beta mode that preserves delta specs and hashes supporting files" width="800" data-path="assets/context-compression-illustrations/01-off-beta-handoff-modes.png" />
</p>

## Modes

| Mode   | Output                                                    | Use when                                               |
| ------ | --------------------------------------------------------- | ------------------------------------------------------ |
| `off`  | Full readable `design-context.json/md`                    | You want maximum context and token cost is acceptable. |
| `beta` | Verbatim spec projection plus hashes for supporting files | You want smaller context while preserving spec truth.  |

## Why beta keeps specs verbatim

Delta specs are the requirement contract. Compression must not paraphrase or summarize them. Supporting files can be referenced by path and hash when their exact content is not needed in the next prompt.

## Drift handling

Handoff files include source paths and hashes. Guards can detect when source artifacts changed and require handoff regeneration.

## Next steps

* [comet-handoff](/en/scripts/comet-handoff)
* [Workflow concepts](/en/concepts/workflow)
