# 08 Compress Script: `example/08_compress.py`. `flow.Compressor` runs `run_session_compress(...)` to replace a long transcript with a smaller summary session. ```bash python example/08_compress.py ``` | Step | Behavior | | --- | --- | | Build history | Run an agent turn to create assistant chunks. | | Count rows | Inspect `len(session.chunk_table.rows)`. | | Compress | Call `compressor.forward(session)`. | | Continue | Use the compressed session as the next user-side context. | Compression disables tools and expects the model to return text only. [← Runnable Examples](index.md)