mlsanityData to 7 Oct 2026

SWE-MeM: Learning Adaptive Memory Management for Long-Horizon Coding Agents

arXiv 2606.28434 ↗First posted 26 Jun 2026cs.SE cs.AIcited by 12

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

Abstract (arXiv)

Long-horizon software engineering agents often need to manage lengthy and noisy interaction histories under limited context budgets. Existing memory management methods typically rely on static compression workflows or impose rigid constraints on compression timing and granularity. Moreover, these approaches fail to jointly optimize memory management and issue resolution capabilities to improve performance while reducing token usage. We present SWE-MeM, a training framework for proactive and on-demand memory management in software engineering agents. SWE-MeM provides a flexible memory tool that lets agents decide when, what, and how to compress based on trajectory state, task progress, and remaining context budget. We train agents with synthesized proactive memory-management trajectories and Memory-aware GRPO, which jointly optimizes memory management and issue resolution through memory-aware trajectory splitting and step-level credit assignment. On SWE-Bench Verified, SWE-MeM achieves 43.4% and 60.2% resolve rate with 4B and 30B models, respectively, outperforming existing memory management baselines in both performance and efficiency.

Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 57 of its 65 references that are in the map. First posted on arXiv 26 Jun 2026.

Builds on

57 of 65 references.

Closest ancestors · 15

Same direction, newest first

  1. 2026SWE-Next: Scalable Real-World Software Engineering Tasks for Agents21 Mar
  2. 2026SWE-World: Building Software Engineering Agents in Docker-Free Environments3 Feb
  3. 2026SWE-Master: Unleashing the Potential of Software Engineering Agents via Post-Training3 Feb
  4. 2026SWE-Pruner: Self-Adaptive Context Pruning for Coding Agents23 Jan
  5. 2025Context as a Tool: Context Management for Long-Horizon SWE-Agents26 Dec
  6. 2025SWE-RM: Execution-free Feedback For Software Engineering Agents26 Dec
  7. 2025LoCoBench-Agent: An Interactive Benchmark for LLM Agents in Long-Context Software Engineering17 Nov
  8. 2025Reducing Cost of LLM Agents with Trajectory Reduction28 Sep
  9. 2025SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolution31 Jul
  10. 2025SWE-Dev: Building Software Engineering Agents with Training and Inference Scaling9 Jun
  11. 2025SWE-rebench: An Automated Pipeline for Task Collection and Decontaminated Evaluation of Software Engineering Agents26 May
  12. 2024Training Software Engineering Agents and Verifiers with SWE-Gym30 Dec
3 more
  1. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
  2. 2024Agentless: Demystifying LLM-based Software Engineering Agents1 Jul
  3. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May

Other references · 42

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  2. 2025Qwen3 Technical Reportcited by 8,195
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  4. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  5. 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,678
  6. 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 1,980
  7. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  8. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  9. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  10. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
  11. 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 279
  12. 2020Unsupervised Translation of Programming Languagescited by 262
30 more
  1. 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolutioncited by 246
  2. 2025Scaling Long-Horizon LLM Agent via Context-Foldingcited by 136
  3. 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
  4. 2025ReSum: Unlocking Long-Horizon Search Intelligence via Context Summarizationcited by 132
  5. 2025Context Length Alone Hurts LLM Performance Despite Perfect Retrievalcited by 118
  6. 2025AgentFold: Long-Horizon Web Agents with Proactive Context Managementcited by 95
  7. 2023ChatUniTest: A Framework for LLM-Based Test Generationcited by 94
  8. 2025Scaling LLM Multi-turn RL with End-to-end Summarization-based Context Managementcited by 51
  9. 2023What Makes Good In-context Demonstrations for Code Intelligence Tasks with LLMs?cited by 47
  10. 2024From Code to Correctness: Closing the Last Mile of Code Generation with Hierarchical Debuggingcited by 46
  11. 2026CL-bench: A Benchmark for Context Learningcited by 46
  12. 2025LongCodeZip: Compress Long Context for Code Language Modelscited by 38
  13. 2025Pruning the Unsurprising: Efficient LLM Reasoning via First-Token Surprisalcited by 32
  14. 2025SWE-Mirror: Scaling Issue-Resolving Datasets by Mirroring Issues Across Repositoriescited by 30
  15. 2026SWE-Lego: Pushing the Limits of Supervised Fine-tuning for Software Issue Resolvingcited by 30
  16. 2025BugPilot: Complex Bug Generation for Efficient Learning of SWE Skillscited by 28
  17. 2026How Do AI Agents Spend Your Money? Analyzing and Predicting Token Consumption in Agentic Coding Taskscited by 28
  18. 2024Search-Based LLMs for Code Optimizationcited by 27
  19. 2023Domain Knowledge Matters: Improving Prompts with Fix Templates for Repairing Python Type Errorscited by 22
  20. 2025VeOmni: Scaling Any Modality Model Training with Model-Centric Distributed Recipe Zoocited by 20
  21. 2026In Line with Context: Repository-Level Code Generation via Context Inliningcited by 18
  22. 2025The Prompt Alchemist: Automated LLM-Tailored Prompt Optimization for Test Case Generationcited by 16
  23. 2026GlimpRouter: Efficient Collaborative Inference by Glimpsing One Token of Thoughtscited by 16
  24. 2026SWE-Universe: Scale Real-World Verifiable Environments to Millionscited by 16
  25. 2026AgentSwing: Adaptive Parallel Context Management Routing for Long-Horizon Web Agentscited by 9
  26. 2026U-Fold: Dynamic Intent-Aware Context Folding for User-Centric Agentscited by 7
  27. 2025Integrating Rules and Semantics for LLM-Based C-to-Rust Translationcited by 6
  28. 2025Klear-AgentForge: Forging Agentic Intelligence through Posttraining Scalingcited by 6
  29. 2026Readability-Robust Code Summarization via Meta Curriculum Learningcited by 4
  30. 2025SEER: Enhancing Chain-of-Thought Code Generation through Self-Exploring Deep Reasoningcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 12.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026VibeMemBench: Evaluating Memory Systems for Coding Agents on Real Repository Coding Tasks
  2. 2026Structurally Aligned Subtask-Level Memory for Software Engineering Agents
  3. 2026MemAgent: Learning to Manage Heterogeneous Memory Providers for LLM Agents
  4. 2026Memory as Infrastructure: Reliability Engineering for Persistent Agent Memory in Months-Long LLM-Assisted Development
  5. 2026Mem-T: Densifying Rewards for Long-Horizon Memory Agents
  6. 2026PROJECTMEM: A Local-First, Event-Sourced Memory and Judgment Layer for AI Coding Agents
  7. 2026MemGovern: Enhancing Code Agents through Learning from Governed Human Experiences
  8. 2025TOM-SWE: User Mental Modeling For Software Engineering Agents