mlsanityData to 24 Nov 2026

Compact-Bench: Measuring What Context Compaction Costs Long-Horizon Coding Agents

arXiv 2610.31710 ↗Submitted 22 Oct 2026cs.SE cs.AIcited by 0

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Context compaction lets long-horizon coding agents continue beyond their context windows, but can erase the state needed to finish a task. Prior evaluations measure efficiency, retained information, or end-to-end success, leaving the effect of a specific history replacement difficult to isolate. Compact-Bench pairs full-history and summary-only continuations from a shared repository state, and evaluates recurring details and successive production compactions. It covers 35 SWE-bench repairs, 146 agentic sessions, and 106 production chains. Across 14 summarizer backbones, stable damage ranges from 5-64% of 22 full-history successes: Claude Opus 4.8 preserves the most repairs, while DeepSeek-Flash damages the most. With Kimi-K3 as summarizer, the Kimi Code prompt preserves the most task continuations (19/22), whereas Claude Code retains the most recurring details (15.0%). LLM summaries retain at most 16.0% of recurring details, compared with 79.1% for mechanical extraction; production summaries retain 15.7% at the first boundary. Failures recur across methods: one repair is damaged by 13/14 backbones, and another by all 5 prompts. These results show that reliable compaction requires preserving the progress needed to complete a task, and that retaining relevant information alone does not ensure successful continuation. Code is available at https://github.com/cai-jianfeng/compact-bench and data is available at https://huggingface.co/datasets/caijanfeng/compact-bench.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 36 of its 57 references that are in the map. Submitted 22 Oct 2026.

Builds on

36 of 57 references.

Closest ancestors · 2

Same direction, newest first

  1. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
  2. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May

Other references · 34

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,845
  2. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
  3. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,765
  4. 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,428
  5. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,243
  6. 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 2,232
  7. 2024τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domainscited by 1,713
  8. 2023MemGPT: Towards LLMs as Operating Systemscited by 1,655
  9. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,559
  10. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,557
  11. 2024OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environmentscited by 1,383
  12. 2026DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligencecited by 1,363
22 more
  1. 2025A-MEM: Agentic Memory for LLM Agentscited by 1,253
  2. 2024Evaluating Very Long-Term Conversational Memory of LLM Agentscited by 977
  3. 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 876
  4. 2019Evaluating the Factual Consistency of Abstractive Text Summarizationcited by 593
  5. 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 500
  6. 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 447
  7. 2023Learning to Compress Prompts with Gist Tokenscited by 426
  8. 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compressioncited by 397
  9. 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 392
  10. 2020FEQA: A Question Answering Evaluation Framework for Faithfulness Assessment in Abstractive Summarizationcited by 296
  11. 2023L-Eval: Instituting Standardized Evaluation for Long Context Language Modelscited by 251
  12. 2021QuestEval: Summarization Asks for Fact-based Evaluationcited by 248
  13. 2024BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystackcited by 247
  14. 2023Compressing Context to Enhance Inference Efficiency of Large Language Modelscited by 208
  15. 2023ZeroSCROLLS: A Zero-Shot Benchmark for Long Text Understandingcited by 187
  16. 2025ReSum: Unlocking Long-Horizon Search Intelligence via Context Summarizationcited by 172
  17. 2024Prompt Compression for Large Language Models: A Surveycited by 77
  18. 2025The Complexity Trap: Simple Observation Masking Is as Efficient as LLM Summarization for Agent Context Managementcited by 73
  19. 2026CompactionRL: Reinforcement Learning with Context Compaction for Long-Horizon Agentscited by 27
  20. 2026Slipstream: Trajectory-Grounded Compaction Validation for Long-Horizon Agentscited by 13
  21. 2026Toward Reliable Context Compression for Long-Horizon Agents: An Empirical Study of Execution Instabilitycited by 13
  22. 2026Parallel Context Compaction for Long-Horizon LLM Agent Servingcited by 9

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026CompAct-Bench: A Benchmark for Working-Context Compaction in Long-Horizon Agent Tasks
  2. 2026Benchmarks Are Surprisingly Compaction-Friendly
  3. 2026What Does Context Compression Cost an Agent? Interaction Costs Unrevealed by Task-Completion Metrics
  4. 2026Persistent Context Graphs for Efficient Memory Compaction in LLM Agents
  5. 2026An Empirical Cost Attribution of Context-Compression Gateways in Multi-Turn Coding Agents
  6. 2026Benchmarks as Software: Terminal-Bench and the Case for Continuous Benchmarks
  7. 2026Maximising Transparency in Context Compaction Improves Retention of Facts and Commitments for Lightweight Coding Agents
  8. 2026Stratum: Repository Memory for Coding Agents Beyond the Context Window