The paper introduces CTXAgent, a self‑controlled context management system for large language model agents that compacts conversation history when a token threshold is reached. It evaluates seven frontier models, comparing their ability to manage context with and without dedicated tools, and benchmarks performance across coding, scientific, and software engineering tasks. Results show that well‑managed models keep live context below 100k tokens, maintain high benchmark scores, and achieve significant cost reductions, with Claude Opus 5.5 outperforming its explicit configuration by 34% lower cost.
By Matthias Busch, Marius Tacke, Roland C. Aydin, Christian Feiler, Christian J. Cyron
The paper investigates how context compaction—losing information to free up a language model’s context window—affects performance on long‑horizon agentic tasks. Using the OpenCode scaffold and five compaction strategies, the authors evaluate three frontier models on PaperBench, ProgramBench, and PostTrainBench, finding that compaction thresholds largely do not hurt performance for 1M‑context models, but can degrade GPT‑5.3‑Codex on certain benchmarks. The study also shows that compaction can silently drop critical task constraints, especially on ProgramBench and real user‑agent sessions from SWE‑chat, yet current benchmarks remain largely compaction‑friendly because objectives are fixed and progress is stored externally.
By Jeanne Salle, Hardik Bhatnagar, Matthias Bethge, Sahar Abdelnabi, Maksym Andriushchenko
Compact‑Bench evaluates how context compaction affects long‑horizon coding agents by comparing full‑history and summary‑only continuations across 35 software‑engineering repairs, 146 agentic sessions, and 106 production chains. The benchmark tests 14 summarizer backbones and finds that stable damage ranges from 5‑64% of full‑history successes, with Claude Opus preserving the most repairs and DeepSeek‑Flash causing the most damage. It also shows that LLM summaries retain far fewer recurring details than mechanical extraction, and that failures can recur across all backbones and prompts, indicating that merely preserving information is insufficient for successful task continuation.
By Ruopei Sun, Jianfeng Cai, Kangwen Zhao, Wengang Zhou, Houqiang Li
arXiv:2607. 08032v1 Announce Type: new Abstract: Large language models, and the agents built on them, spend an ever-growing share of their compute and memory on remembering: caching attention keys and values, carrying long prompts, maintaining recurrent state, and storing what happened in previous turns and sessions.
By Ashwin Gerard Colaco, Nada Lahjouji
Folio is a context manager for long‑horizon language agents that records and folds conversation history into three linked levels—short turn notes, event manifests, and source records—allowing efficient recovery without re‑reading the entire history. By programmatically selecting coarser views for older turns and providing handles for recovery tools, Folio reduces the need for model‑written compaction and lowers runtime costs. In benchmark tests, Folio solved 66 out of 75 tasks, outperforming other compaction methods and cutting working time and cost by roughly half.
SCLATE is a new execution substrate that allows continual‑learning benchmarks and agents to share a single event scheduler via adapters, enabling tasks, session events, and memory consolidation to run on a compressed, real‑time timeline. It also functions as a rollout engine that records every model call’s tokens and log probabilities without modifying the agent’s harness or memory. Using SCLATE, the authors ported seven benchmarks, compared ten harness‑memory configurations across ten models, and demonstrated that post‑training Qwen3.5‑4B can effectively leverage both harness and memory, improving performance on multiple metrics.
By Youngmok Jung, Sirajul Salekin, Henry Tran, Javier Movellan, Zhao Huang, Manjot Bilkhu
Folio is a context‑management system for long‑horizon language agents that records and folds conversation history into three linked levels—short turn notes, event manifests, and source records—allowing the agent to programmatically compress older turns while preserving recoverable handles. By printing these handles, Folio enables efficient recovery and analysis of the full history with minimal additional input. In benchmark tests on 75 LOCA‑bench tasks, Folio outperformed existing model‑written compaction methods, solving 66 tasks versus 54, and reduced runtime cost by 2.4× while keeping fold times around 0.6 seconds.
By Yubo Ruan, Tao Peng, Jiao Zhang, Chuanguo Ma, Lei Xu, Han Zhou, Wenwu Wang, Xiafei Lv, Xingjie Zhou, Guiju Fan, Hao Wang, Fenghui Zhang, Mao Miao, Shuo Li
KVMem is a KV-context virtualization system that allows large language model agents to maintain workspaces exceeding both GPU key‑value capacity and the model’s native context window. It stores overflowed history as paged KV state across GPU memory, host memory, and NVMe, using lightweight, model‑native attention‑space indexes to retrieve relevant historical blocks. Evaluations on long‑context agent benchmarks show that KVMem improves task utility and inference efficiency, enabling up to one million‑token workspaces on consumer GPUs and achieving interactive responsiveness in local deployments.
By Di Chai, Leye Wang, Zeshen Su, Zhiguo Xia, Zhihang Yu
arXiv:2608. 11242v1 Announce Type: cross Abstract: When the context window is under pressure, LLM systems compact prior context to continue ongoing tasks.
By Zhiqi Wang, Yichi Zhang, Dongwon Lee, Yuchen Yang
Modern LLM coding agents such as Claude Code and OpenHands share a common inefficiency: they spend much of their token budget finding the file to patch, rather than patching it. On SWE-Bench Verified, a 30B OpenHands agent averages 23 rounds and 631K tokens per resolved issue, with many calls spent on grep, glob, and view_file during repository exploration.
The paper introduces Coding Agent Memory Gym II (CAMG-II), a set of long‑horizon reinforcement learning environments that provide both native task interfaces and Bash access with an episode‑persistent workspace for file‑based memory. It also presents Coding Agent Memory Post‑Training II (CAMP‑II), a policy trained via fully asynchronous on‑policy distillation to learn file‑based memory behaviors directly from a frozen teacher. CAMP‑II achieves nearly three times the performance of the strongest baseline on CAMG‑II and shows improved success rates on external benchmarks Terminal‑Bench 2.1 and SWE‑Bench Pro V2.
By Lirui Luo, Kelong Mao, Xinwei Yang, Rongqing Li, Luyu Chen, Kieran Wong, Yudong Guo, Xinrui Wang, Jiayin Zhu, Gu Simiu, Sulong Xu, Cong Fang
arXiv:2610.08811v1 Announce Type: new
Abstract: As context windows scale to tens or hundreds of thousands of tokens, KV cache compression has become essential for efficient LLM inference. Existing me...
By Linfeng Dong