The Complexity Trap: Simple Observation Masking Is as Efficient as LLM Summarization for Agent Context Management
On the map: LLM agents and tool use → General LLM agent frameworks and benchmarks
Abstract (arXiv)
Large Language Model (LLM)-based agents solve complex tasks through iterative reasoning, exploration, and tool-use, a process that can result in long, expensive context histories. While state-of-the-art Software Engineering (SE) agents like OpenHands or Cursor use LLM-based summarization to tackle this issue, it is unclear whether the increased complexity offers tangible performance benefits compared to simply omitting older observations. We present a systematic comparison of these approaches within SWE-agent on SWE-bench Verified across five diverse model configurations. Moreover, we show initial evidence of our findings generalizing to the OpenHands agent scaffold. We find that a simple environment observation masking strategy halves cost relative to the raw agent while matching, and sometimes slightly exceeding, the solve rate of LLM summarization. Additionally, we introduce a novel hybrid approach that further reduces costs by 7% and 11% compared to just observation masking or LLM summarization, respectively. Our findings raise concerns regarding the trend towards pure LLM summarization and provide initial evidence of untapped cost reductions by pushing the efficiency-effectiveness frontier. We release code and data for reproducibility.
Key facts. Cited by 48 papers in the map (data through 14 Oct 2026). Placed in General LLM agent frameworks and benchmarks, one of 16 directions in LLM agents and tool use. Builds on 26 of its 41 references that are in the map. First posted on arXiv 29 Aug 2025.
Builds on
26 of 41 references.
References · 26
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,276
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
- 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,444
- 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,251
14 more
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agentscited by 1,002
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 601
- 2024Executable Code Actions Elicit Better LLM Agentscited by 564
- 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 421
- 2024Training Software Engineering Agents and Verifiers with SWE-Gymcited by 336
- 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 285
- 2025R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agentscited by 158
- 2025Can 1B LLM Surpass 405B LLM? Rethinking Compute-Optimal Test-Time Scalingcited by 136
- 2024SWE-Search: Enhancing Software Agents with Monte Carlo Tree Search and Iterative Refinementcited by 132
- 2025NoLiMa: Long-Context Evaluation Beyond Literal Matchingcited by 126
- 2024Diversity Empowers Intelligence: Integrating Expertise of Software Engineering Agentscited by 36
- 2025DARS: Dynamic Action Re-Sampling to Enhance Coding Agent Performance by Adaptive Tree Traversalcited by 20
- 2025From Knowledge to Noise: CTIM-Rover and the Pitfalls of Episodic Memory in Software Engineering Agentscited by 4
Built on by
Citing papers per year: 2025: 1; 2026: 47.
48 papers.
Sort:
By area:
- 2025Reducing Cost of LLM Agents with Trajectory Reductioncited by 48
- 2026SWE-Pruner: Self-Adaptive Context Pruning for Coding Agentscited by 44
- 2026Scaling Test-Time Compute for Agentic Codingcited by 15
- 2026Beyond Compaction: Structured Context Eviction for Long-Horizon Agentscited by 8
- 2026Agent-Omit: Adaptive Context Omission for Efficient LLM Agentscited by 5
- 2026Do LLMs Benefit From Their Own Words?cited by 5
- 2026ContextEcho: A Benchmark for Persona Drift in Long Agentic-Coding Sessionscited by 5
- 2026Masking Stale Observations Helps Search Agents -- Until It Doesn't: A Regime Map and Its Mechanismcited by 5
- 2026MatClaw: An Autonomous Code-First LLM Agent for End-to-End Materials Explorationcited by 4
- 2026REAgent: Requirement-Driven LLM Agents for Software Issue Resolutioncited by 4
- 2026ContextWeaver: Selective and Dependency-Structured Memory Construction for LLM Agentscited by 4
- 2026CoACT: Action-Preserving Observation Compression for Coding Agentscited by 4
36 more
- 2026Turning Interaction History into Execution State: A Runtime Layer for Long-Horizon Coding Agentscited by 4
- 2026View-oriented Conversation Compiler for Agent Trace Analysiscited by 2
- 2026Context Pruning for Coding Agents via Multi-Rubric Latent Reasoningcited by 2
- 2026AGORA: Adapter-Grounded Observation-Action Retention for Inference-Free Prompt Compression in LLM Agentscited by 2
- 2026SWE-Pruner Pro: The Coder LLM Already Knows What to Prunecited by 2
- 2026CORVUS: Context Optimization and Reduction Via Underlying Synchronization for LLM Coding Agentscited by 2
- 2026Context Cartography: Toward Structured Governance of Contextual Space in Large Language Model Systemscited by 1
- 2026RTPO: Reverse-Turn Policy Optimization for Stabilizing Agentic RL Trainingcited by 1
- 2026Measure Before You Manage: Evaluating Agent Working Memory in Coding Agentscited by 1
- 2026AttnCompress: Dynamic Attention-Guided Trajectory Compression for Software Engineering Agentscited by 1
- 2026Reducing Token Usage of State-in-Context Agents using Minificationcited by 0
- 2026Omni-Decision: Evidence-Ledger Planning for Omni-Modal Agentscited by 0
- 2026CodeNib: A Multi-View Data System for Serving Repository Context to Coding Agentscited by 0
- 2026What Does Context Compression Cost an Agent? Interaction Costs Unrevealed by Task-Completion Metricscited by 0
- 2026Read Less, Solve More: Token-Efficient Sparse Reading for AI Agentscited by 0
- 2026openJiuwen: Beyond Static Harnesses for Long-Horizon Coding Agentscited by 0
- 2026Parsing the Stream: A Live Trace Model for Long-Horizon Agents and Their Observerscited by 0
- 2026Correct Now, Insufficient Later: Auditing Update Sufficiency in Context Compressioncited by 0
- 2026Trajectory-Aware Benchmark Subset Selection for Cost-Efficient Software Engineering Agent Regression Testingcited by 0
- 2026Evaluating Budgeted Context Projection with Unexecuted Companion Runscited by 0
- 2026Compress What You See, Not What You Say: Anchored Context Distillation for Latent-Observation Software Engineering Agentscited by 0
- 2026LAM: Efficient Lossy Agent Memory Framework With A Retrieval-Score Error Boundcited by 0
- 2026Beyond Token Savings: A Systematic Study of Context Compression in LLM Agentscited by 0
- 2026After the Fix: Transfer of Corrected Agent Experiencecited by 0
- 2026StateTape: Action-Conditioned Evidence Lifecycle Modeling for Long-Horizon Coding Agentscited by 0
- 2026CADOC: Cache-Aware Dynamic Object Context for Long-Horizon Agentscited by 0
- 2026ContextRender: From Execution Dependencies to Agent Contextcited by 0
- 2026Persistent Context Graphs for Efficient Memory Compaction in LLM Agentscited by 0
- 2026Trained Agentic Context Managementcited by 0
- 2026SHarP: Saliency-based Pruning of Agent Harnessescited by 0
- 2026MemTrace: State-Consistent Memory for Long-Horizon Coding Agentscited by 0
- 2026Does an Agent's History Tell You When Compaction Will Hurt? A Modest, Bounded Effect on the TRACE Paired-Replay Corpuscited by 0
- 2026HarnessNet: Feedback-driven Hierarchical Joint Harness Evolution for Multi-agent Systemscited by 0
- 2026State Representation Shapes Long-Horizon Agent Learning and Transfer: An Empirical Studycited by 0
- 2026StateHarness: Maintaining Evolving Project State for Long-Horizon Coding Agentscited by 0
- 2026Maximising Transparency in Context Compaction Improves Retention of Facts and Commitments for Lightweight Coding Agentscited by 0
- 2026Maximising Transparency in Context Compaction Improves Retention of Facts and Commitments for Lightweight Coding Agents14 Oct 2026
- 2026StateHarness: Maintaining Evolving Project State for Long-Horizon Coding Agents13 Oct 2026
- 2026State Representation Shapes Long-Horizon Agent Learning and Transfer: An Empirical Study11 Oct 2026
- 2026HarnessNet: Feedback-driven Hierarchical Joint Harness Evolution for Multi-agent Systems10 Oct 2026
- 2026Does an Agent's History Tell You When Compaction Will Hurt? A Modest, Bounded Effect on the TRACE Paired-Replay Corpus6 Oct 2026
- 2026MemTrace: State-Consistent Memory for Long-Horizon Coding Agents4 Oct 2026
- 2026SHarP: Saliency-based Pruning of Agent Harnesses3 Oct 2026
- 2026Trained Agentic Context Management1 Oct 2026
- 2026Persistent Context Graphs for Efficient Memory Compaction in LLM Agents30 Sep 2026
- 2026ContextRender: From Execution Dependencies to Agent Context29 Sep 2026
- 2026CADOC: Cache-Aware Dynamic Object Context for Long-Horizon Agents29 Sep 2026
- 2026StateTape: Action-Conditioned Evidence Lifecycle Modeling for Long-Horizon Coding Agents28 Sep 2026
36 more
- 2026After the Fix: Transfer of Corrected Agent Experience28 Sep 2026
- 2026Beyond Token Savings: A Systematic Study of Context Compression in LLM Agents26 Sep 2026
- 2026LAM: Efficient Lossy Agent Memory Framework With A Retrieval-Score Error Bound26 Sep 2026
- 2026Compress What You See, Not What You Say: Anchored Context Distillation for Latent-Observation Software Engineering Agents25 Sep 2026
- 2026Evaluating Budgeted Context Projection with Unexecuted Companion Runs25 Sep 2026
- 2026Trajectory-Aware Benchmark Subset Selection for Cost-Efficient Software Engineering Agent Regression Testing21 Sep 2026
- 2026Correct Now, Insufficient Later: Auditing Update Sufficiency in Context Compression17 Sep 2026
- 2026AttnCompress: Dynamic Attention-Guided Trajectory Compression for Software Engineering Agents8 Sep 2026
- 2026Parsing the Stream: A Live Trace Model for Long-Horizon Agents and Their Observers1 Sep 2026
- 2026Measure Before You Manage: Evaluating Agent Working Memory in Coding Agents31 Aug 2026
- 2026openJiuwen: Beyond Static Harnesses for Long-Horizon Coding Agents28 Aug 2026
- 2026Read Less, Solve More: Token-Efficient Sparse Reading for AI Agents23 Aug 2026
- 2026RTPO: Reverse-Turn Policy Optimization for Stabilizing Agentic RL Training19 Aug 2026
- 2026What Does Context Compression Cost an Agent? Interaction Costs Unrevealed by Task-Completion Metrics17 Aug 2026
- 2026Turning Interaction History into Execution State: A Runtime Layer for Long-Horizon Coding Agents1 Aug 2026
- 2026CodeNib: A Multi-View Data System for Serving Repository Context to Coding Agents28 Jul 2026
- 2026CORVUS: Context Optimization and Reduction Via Underlying Synchronization for LLM Coding Agents20 Jul 2026
- 2026SWE-Pruner Pro: The Coder LLM Already Knows What to Prune20 Jul 2026
- 2026Omni-Decision: Evidence-Ledger Planning for Omni-Modal Agents13 Jul 2026
- 2026CoACT: Action-Preserving Observation Compression for Coding Agents3 Jul 2026
- 2026Reducing Token Usage of State-in-Context Agents using Minification31 May 2026
- 2026Masking Stale Observations Helps Search Agents -- Until It Doesn't: A Regime Map and Its Mechanism29 May 2026
- 2026AGORA: Adapter-Grounded Observation-Action Retention for Inference-Free Prompt Compression in LLM Agents26 May 2026
- 2026ContextEcho: A Benchmark for Persona Drift in Long Agentic-Coding Sessions22 May 2026
- 2026Context Pruning for Coding Agents via Multi-Rubric Latent Reasoning14 May 2026
- 2026Beyond Compaction: Structured Context Eviction for Long-Horizon Agents1 May 2026
- 2026ContextWeaver: Selective and Dependency-Structured Memory Construction for LLM Agents24 Apr 2026
- 2026Scaling Test-Time Compute for Agentic Coding16 Apr 2026
- 2026REAgent: Requirement-Driven LLM Agents for Software Issue Resolution8 Apr 2026
- 2026MatClaw: An Autonomous Code-First LLM Agent for End-to-End Materials Exploration3 Apr 2026
- 2026View-oriented Conversation Compiler for Agent Trace Analysis31 Mar 2026
- 2026Context Cartography: Toward Structured Governance of Contextual Space in Large Language Model Systems21 Mar 2026
- 2026Do LLMs Benefit From Their Own Words?27 Feb 2026
- 2026Agent-Omit: Adaptive Context Omission for Efficient LLM Agents4 Feb 2026
- 2026SWE-Pruner: Self-Adaptive Context Pruning for Coding Agents23 Jan 2026
- 2025Reducing Cost of LLM Agents with Trajectory Reduction28 Sep 2025
- 2025Reducing Cost of LLM Agents with Trajectory Reductioncited by 48
- 2026SWE-Pruner: Self-Adaptive Context Pruning for Coding Agentscited by 44
- 2026Beyond Compaction: Structured Context Eviction for Long-Horizon Agentscited by 8
- 2026Agent-Omit: Adaptive Context Omission for Efficient LLM Agentscited by 5
- 2026ContextEcho: A Benchmark for Persona Drift in Long Agentic-Coding Sessionscited by 5
- 2026MatClaw: An Autonomous Code-First LLM Agent for End-to-End Materials Explorationcited by 4
- 2026REAgent: Requirement-Driven LLM Agents for Software Issue Resolutioncited by 4
- 2026ContextWeaver: Selective and Dependency-Structured Memory Construction for LLM Agentscited by 4
- 2026CoACT: Action-Preserving Observation Compression for Coding Agentscited by 4
- 2026Turning Interaction History into Execution State: A Runtime Layer for Long-Horizon Coding Agentscited by 4
- 2026AGORA: Adapter-Grounded Observation-Action Retention for Inference-Free Prompt Compression in LLM Agentscited by 2
- 2026SWE-Pruner Pro: The Coder LLM Already Knows What to Prunecited by 2
12 most cited of 33 All 33 (JSON)
- 2026Maximising Transparency in Context Compaction Improves Retention of Facts and Commitments for Lightweight Coding Agents14 Oct 2026
- 2026StateHarness: Maintaining Evolving Project State for Long-Horizon Coding Agents13 Oct 2026
- 2026HarnessNet: Feedback-driven Hierarchical Joint Harness Evolution for Multi-agent Systems10 Oct 2026
- 2026MemTrace: State-Consistent Memory for Long-Horizon Coding Agents4 Oct 2026
- 2026SHarP: Saliency-based Pruning of Agent Harnesses3 Oct 2026
- 2026Trained Agentic Context Management1 Oct 2026
- 2026Persistent Context Graphs for Efficient Memory Compaction in LLM Agents30 Sep 2026
- 2026ContextRender: From Execution Dependencies to Agent Context29 Sep 2026
- 2026StateTape: Action-Conditioned Evidence Lifecycle Modeling for Long-Horizon Coding Agents28 Sep 2026
- 2026Beyond Token Savings: A Systematic Study of Context Compression in LLM Agents26 Sep 2026
- 2026LAM: Efficient Lossy Agent Memory Framework With A Retrieval-Score Error Bound26 Sep 2026
- 2026Compress What You See, Not What You Say: Anchored Context Distillation for Latent-Observation Software Engineering Agents25 Sep 2026
12 newest of 33 All 33 (JSON)
- 2026Scaling Test-Time Compute for Agentic Codingcited by 15
- 2026Context Pruning for Coding Agents via Multi-Rubric Latent Reasoningcited by 2
- 2026Context Cartography: Toward Structured Governance of Contextual Space in Large Language Model Systemscited by 1
- 2026RTPO: Reverse-Turn Policy Optimization for Stabilizing Agentic RL Trainingcited by 1
- 2026RTPO: Reverse-Turn Policy Optimization for Stabilizing Agentic RL Training19 Aug 2026
- 2026Context Pruning for Coding Agents via Multi-Rubric Latent Reasoning14 May 2026
- 2026Scaling Test-Time Compute for Agentic Coding16 Apr 2026
- 2026Context Cartography: Toward Structured Governance of Contextual Space in Large Language Model Systems21 Mar 2026
- 2026Do LLMs Benefit From Their Own Words?cited by 5
- 2026Masking Stale Observations Helps Search Agents -- Until It Doesn't: A Regime Map and Its Mechanismcited by 5
- 2026View-oriented Conversation Compiler for Agent Trace Analysiscited by 2
- 2026Omni-Decision: Evidence-Ledger Planning for Omni-Modal Agentscited by 0
- 2026Read Less, Solve More: Token-Efficient Sparse Reading for AI Agentscited by 0
- 2026Evaluating Budgeted Context Projection with Unexecuted Companion Runscited by 0
- 2026After the Fix: Transfer of Corrected Agent Experiencecited by 0
- 2026CADOC: Cache-Aware Dynamic Object Context for Long-Horizon Agentscited by 0
- 2026Does an Agent's History Tell You When Compaction Will Hurt? A Modest, Bounded Effect on the TRACE Paired-Replay Corpuscited by 0
- 2026State Representation Shapes Long-Horizon Agent Learning and Transfer: An Empirical Studycited by 0
- 2026State Representation Shapes Long-Horizon Agent Learning and Transfer: An Empirical Study11 Oct 2026
- 2026Does an Agent's History Tell You When Compaction Will Hurt? A Modest, Bounded Effect on the TRACE Paired-Replay Corpus6 Oct 2026
- 2026CADOC: Cache-Aware Dynamic Object Context for Long-Horizon Agents29 Sep 2026
- 2026After the Fix: Transfer of Corrected Agent Experience28 Sep 2026
- 2026Evaluating Budgeted Context Projection with Unexecuted Companion Runs25 Sep 2026
- 2026Read Less, Solve More: Token-Efficient Sparse Reading for AI Agents23 Aug 2026
- 2026Omni-Decision: Evidence-Ledger Planning for Omni-Modal Agents13 Jul 2026
- 2026Masking Stale Observations Helps Search Agents -- Until It Doesn't: A Regime Map and Its Mechanism29 May 2026
- 2026View-oriented Conversation Compiler for Agent Trace Analysis31 Mar 2026
- 2026Do LLMs Benefit From Their Own Words?27 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2026Prune the Summary, Not the History: Source-Judged Compaction for Long-Horizon Agents
- 2026FROAV: A Framework for RAG Observation and Agent Verification -- Lowering the Barrier to LLM Agent Research
- 2026UniACE: A Unified Framework for Evaluating LLM Agentic Capabilities
- 2026Automated Summarization of Software Documents: An LLM-based Multi-Agent Approach
- 2026Parallel Context Compaction for Long-Horizon LLM Agent Serving
- 2025LMR-BENCH: Evaluating LLM Agent's Ability on Reproducing Language Modeling Research
- 2023Enhancing Open-Domain Task-Solving Capability of LLMs via Autonomous Tool Integration from GitHub
- 2024AgentQuest: A Modular Benchmark Framework to Measure Progress and Improve LLM Agents