CliffCompaction: Cost-Efficient Compaction for Long-Horizon Coding Agents
TL;DR - CliffCompaction is an autocompaction method for long-horizon coding agents that cuts rollout costs by up to 50% while preserving or improving benchmark performance. It avoids cumulative context drift by retaining only selected original content rather than rewriting summaries.
- Each compaction pass operates on the original context, discarding prior compacted output and only truncating or dropping information.
- More efficient test-time scaling improved Terminal-Bench performance by over 10 percentage points for less than two full-context runs.
- Parallel scaling enabled Kimi K2.6 to match Opus 4.7 and outperform Opus 4.6 and GPT-5.3 Codex at lower cost.
- On KernelBench, million-token sessions produced CUDA speedups of 2.23× after 200 steps and 3.58× after 400 steps.