# CliffCompaction: Cost-Efficient Compaction for Long-Horizon Coding Agents

Source: [arXiv](https://arxiv.org/abs/2609.26779v1)  
Feed7 permalink: https://feed7.dev/p/2609-26779v1-1nezvu9  
Published: 2026-09-22T17:55:59.000Z  
Trust: Needs Review (needs_review)

## Why Included

CliffCompaction cuts long-horizon agent costs by dropping or truncating original context instead of rewriting summaries, aiming to prevent drift across repeated compactions.

## Source Summary

CliffCompaction reports **up to 50% lower cost** under bounded context while maintaining or improving Terminal-Bench performance. It only truncates or drops original material, never rewrites it, and never compacts an earlier compaction.

## Practical Implication

For long-running coding agents, preserve original evidence and regenerate each compacted view from that source instead of recursively summarizing summaries. The open API proxy works across Claude Code, Codex, and other harnesses, making the approach testable without replacing the scaffold.

## Agent-Ready Context

CliffCompaction reports **up to 50% lower cost** under bounded context while maintaining or improving Terminal-Bench performance. It only truncates or drops original material, never rewrites it, and never compacts an earlier compaction.

For long-running coding agents, preserve original evidence and regenerate each compacted view from that source instead of recursively summarizing summaries. The open API proxy works across Claude Code, Codex, and other harnesses, making the approach testable without replacing the scaffold.

Results come from the authors' benchmark setup: Terminal-Bench gains exceed **10 percentage points**, while KernelBench reaches **2.23× at 200 steps** and **3.58× at 400 steps**. Whether these trade-offs hold for a builder's repositories and context mix remains open.

## Connected Context

Feed7 judgment across 856 accumulated Signals:

This sharpens context compaction into a source-preservation rule: derive each bounded view from original material instead of recursively rewriting prior summaries. That complements reversible eviction and externalized tool history while offering cross-harness benchmark evidence of lower cost; it also confirms that compaction policies must be tested against each repository and context mix rather than adopted from headline savings.

- [Blast Radius](https://feed7.dev/p/2608-07440v1-1gi5t78) — Both preserve recoverability instead of relying on lossy recursive summaries; Blast Radius archives predicted-unused history, whereas CliffCompaction regenerates compacted views from original material.
- [mksglu/context-mode](https://feed7.dev/p/context-mode-1olsb2y) — Context Mode supplies an external searchable store for bulky outputs and post-compaction recovery, complementing CliffCompaction’s rule that compacted views should remain grounded in original evidence.
- [JuliusBrussee/caveman](https://feed7.dev/p/caveman-0yoqowc) — Caveman’s finding that compression overhead can outweigh savings reinforces CliffCompaction’s unresolved need for workload-specific cost and exactness trials.
- [Scaling to Long Horizons — Ross Taylor & Chengxi Taylor, General Reasoning](https://feed7.dev/p/scaling-to-long-horizons-ross-taylor-chengxi-taylor-general-reasoning-0jwtg4d) — CliffCompaction provides a concrete, benchmarked compaction policy for the long-horizon context pressure identified here, without resolving the separate reward and scheduling constraints.

## Context Map

- Layer: context
- Domains: coding
- Topics: context-engineering, context-caching, agent-reliability

## Uncertainty

- Results come from the authors' benchmark setup: Terminal-Bench gains exceed **10 percentage points**, while KernelBench reaches **2.23× at 200 steps** and **3.58× at 400 steps**. Whether these trade-offs hold for a builder's repositories and context mix remains open.

## Agent Instruction

Use this item as source-backed context. Do not invent claims beyond the linked source. If this item conflicts with another source, call out the conflict.
