{"slug": "cliffcompaction-cost-efficient-compaction-for-long-horizon-coding-agents", "title": "CliffCompaction: Cost-Efficient Compaction for Long-Horizon Coding Agents", "summary": "Researchers submitted CliffCompaction, an autocompaction technique for long-horizon coding agents, to arXiv on 22 Sep 2026, reporting cost reductions of up to 50% under a bounded context while maintaining or improving performance on Terminal-Bench and setting state-of-the-art results on KernelBench. CliffCompaction keeps compacted information faithful by only truncating or dropping content rather than rephrasing it, and never compacts a compaction, which the authors say sustains continual learning over sessions exceeding a million tokens; on KernelBench it reached CUDA kernel speedups of 2.23x after 200 steps and 3.58x after 400 steps. Under parallel test-time scaling, CliffCompaction lets Kimi K2.6 match Opus 4.7 and exceed Opus 4.6 and GPT-5.3 Codex at lower cost, and the authors open-sourced a scaffold-agnostic API-proxy implementation usable with Claude Code, Codex and other harnesses.", "body_md": "# Computer Science > Artificial Intelligence\n\n  [Submitted on 22 Sep 2026]\n\n# Title:CliffCompaction: Cost-Efficient Compaction for Long-Horizon Coding Agents\n\n[View PDF](http://arxiv.org/pdf/2609.26779v1)\n\n[HTML (experimental)](https://arxiv.org/html/2609.26779v1)\n\nAbstract:Agents often work on complex problems that require millions of tokens of context, which necessitates compacting across sessions due to limited context windows. We develop CliffCompaction, an autocompaction technique that reduces cost by up to 50% under a bounded context while maintaining or improving performance on Terminal-Bench and achieving new levels of efficiency for test-time scaling and state-of-the-art results on KernelBench. The per-rollout savings of CliffCompaction make the performance--cost trade-off of test-time scaling more efficient, adding over 10 percentage points on Terminal-Bench for less than the cost of two full-context runs. Under parallel test-time scaling, CliffCompaction lets Kimi K2.6 match Opus 4.7, and exceed Opus 4.6 and GPT-5.3 Codex at lower cost. The key to CliffCompaction's effectiveness is that it keeps compacted information faithful by only truncating or dropping content, never rephrasing or rewriting it. We never compact a compaction---each pass operates only on original content, and prior compacted output is discarded, preventing context drift from accumulating. These properties sustain continual learning over sessions exceeding a million tokens: on KernelBench, CliffCompaction reaches CUDA kernel speedups of $2.23\\times$ after 200 steps and $3.58\\times$ after 400 steps, surpassing specialized search algorithms and trained agents despite being a general-purpose compaction technique. We open-source a scaffold-agnostic API-proxy implementation of CliffCompaction usable with Claude Code, Codex and other harnesses.\n    \n\n## Submission history\n\nFrom: Thien Trang Nguyen Vu [\n[view email](http://arxiv.org/show-email/949bd38b/2609.26779)]\n\n**[v1]** Tue, 22 Sep 2026 17:55:59 UTC (417 KB)\n\n### Current browse context:\n\ncs.AI\n\n### References & Citations\n\nLoading...\n\n# Bibliographic and Citation Tools\n\nBibliographic Explorer \n\n*(*[What is the Explorer?](https://info.arxiv.org/labs/showcase.html#arxiv-bibliographic-explorer))\nConnected Papers \n\n*(*[What is Connected Papers?](https://www.connectedpapers.com/about))\nLitmaps \n\n*(*[What is Litmaps?](https://www.litmaps.co/))\nscite Smart Citations \n\n*(*[What are Smart Citations?](https://www.scite.ai/))\n# Code, Data and Media Associated with this Article\n\nalphaXiv \n\n*(*[What is alphaXiv?](https://alphaxiv.org/))\nCatalyzeX Code Finder for Papers \n\n*(*[What is CatalyzeX?](https://www.catalyzex.com))\nDagsHub \n\n*(*[What is DagsHub?](https://dagshub.com/))\nGotit.pub \n\n*(*[What is GotitPub?](http://gotit.pub/faq))\nHugging Face \n\n*(*[What is Huggingface?](https://huggingface.co/huggingface))\nScienceCast \n\n*(*[What is ScienceCast?](https://sciencecast.org/welcome))\n# Demos\n\n# Recommenders and Search Tools\n\nInfluence Flower \n\n*(*[What are Influence Flowers?](https://influencemap.cmlab.dev/))\nCORE Recommender \n\n*(*[What is CORE?](https://core.ac.uk/services/recommender))\n# arXivLabs: experimental projects with community collaborators\n\narXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.\n\nBoth individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.\n\nHave an idea for a project that will add value for arXiv's community? [**Learn more about arXivLabs**](https://info.arxiv.org/labs/index.html).", "url": "https://wpnews.pro/news/cliffcompaction-cost-efficient-compaction-for-long-horizon-coding-agents", "canonical_source": "http://arxiv.org/abs/2609.26779v1", "published_at": "2026-09-23 14:10:07+00:00", "updated_at": "2026-09-23 15:31:17.599031+00:00", "lang": "en", "topics": ["ai-agents", "artificial-intelligence", "ai-research", "large-language-models", "ai-tools"], "entities": ["CliffCompaction", "arXiv", "Terminal-Bench", "KernelBench", "Kimi K2.6", "Opus 4.7", "Opus 4.6", "GPT-5.3 Codex"], "alternates": {"html": "https://wpnews.pro/news/cliffcompaction-cost-efficient-compaction-for-long-horizon-coding-agents", "markdown": "https://wpnews.pro/news/cliffcompaction-cost-efficient-compaction-for-long-horizon-coding-agents.md", "text": "https://wpnews.pro/news/cliffcompaction-cost-efficient-compaction-for-long-horizon-coding-agents.txt", "jsonld": "https://wpnews.pro/news/cliffcompaction-cost-efficient-compaction-for-long-horizon-coding-agents.jsonld"}}