SWE-MeM: Learning Adaptive Memory Management for Long-Horizon Coding Agents
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
- 2026SWE-Next: Scalable Real-World Software Engineering Tasks for Agents21 Mar
- 2026SWE-World: Building Software Engineering Agents in Docker-Free Environments3 Feb
- 2026SWE-Master: Unleashing the Potential of Software Engineering Agents via Post-Training3 Feb
- 2026SWE-Pruner: Self-Adaptive Context Pruning for Coding Agents23 Jan
- 2025Context as a Tool: Context Management for Long-Horizon SWE-Agents26 Dec
- 2025SWE-RM: Execution-free Feedback For Software Engineering Agents26 Dec
- 2025LoCoBench-Agent: An Interactive Benchmark for LLM Agents in Long-Context Software Engineering17 Nov
- 2025Reducing Cost of LLM Agents with Trajectory Reduction28 Sep
- 2025SWE-Debate: Competitive Multi-Agent Debate for Software Issue Resolution31 Jul
- 2025SWE-Dev: Building Software Engineering Agents with Training and Inference Scaling9 Jun
- 2025SWE-rebench: An Automated Pipeline for Task Collection and Decontaminated Evaluation of Software Engineering Agents26 May
- 2024Training Software Engineering Agents and Verifiers with SWE-Gym30 Dec
3 more
Other references · 42
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2025Qwen3 Technical Reportcited by 8,195
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2025DAPO: An Open-Source LLM Reinforcement Learning System at Scalecited by 2,678
- 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 1,980
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 279
- 2020Unsupervised Translation of Programming Languagescited by 262
30 more
- 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolutioncited by 246
- 2025Scaling Long-Horizon LLM Agent via Context-Foldingcited by 136
- 2022Practical Program Repair in the Era of Large Pre-trained Language Modelscited by 133
- 2025ReSum: Unlocking Long-Horizon Search Intelligence via Context Summarizationcited by 132
- 2025Context Length Alone Hurts LLM Performance Despite Perfect Retrievalcited by 118
- 2025AgentFold: Long-Horizon Web Agents with Proactive Context Managementcited by 95
- 2023ChatUniTest: A Framework for LLM-Based Test Generationcited by 94
- 2025Scaling LLM Multi-turn RL with End-to-end Summarization-based Context Managementcited by 51
- 2023What Makes Good In-context Demonstrations for Code Intelligence Tasks with LLMs?cited by 47
- 2024From Code to Correctness: Closing the Last Mile of Code Generation with Hierarchical Debuggingcited by 46
- 2026CL-bench: A Benchmark for Context Learningcited by 46
- 2025LongCodeZip: Compress Long Context for Code Language Modelscited by 38
- 2025Pruning the Unsurprising: Efficient LLM Reasoning via First-Token Surprisalcited by 32
- 2025SWE-Mirror: Scaling Issue-Resolving Datasets by Mirroring Issues Across Repositoriescited by 30
- 2026SWE-Lego: Pushing the Limits of Supervised Fine-tuning for Software Issue Resolvingcited by 30
- 2025BugPilot: Complex Bug Generation for Efficient Learning of SWE Skillscited by 28
- 2026How Do AI Agents Spend Your Money? Analyzing and Predicting Token Consumption in Agentic Coding Taskscited by 28
- 2024Search-Based LLMs for Code Optimizationcited by 27
- 2023Domain Knowledge Matters: Improving Prompts with Fix Templates for Repairing Python Type Errorscited by 22
- 2025VeOmni: Scaling Any Modality Model Training with Model-Centric Distributed Recipe Zoocited by 20
- 2026In Line with Context: Repository-Level Code Generation via Context Inliningcited by 18
- 2025The Prompt Alchemist: Automated LLM-Tailored Prompt Optimization for Test Case Generationcited by 16
- 2026GlimpRouter: Efficient Collaborative Inference by Glimpsing One Token of Thoughtscited by 16
- 2026SWE-Universe: Scale Real-World Verifiable Environments to Millionscited by 16
- 2026AgentSwing: Adaptive Parallel Context Management Routing for Long-Horizon Web Agentscited by 9
- 2026U-Fold: Dynamic Intent-Aware Context Folding for User-Centric Agentscited by 7
- 2025Integrating Rules and Semantics for LLM-Based C-to-Rust Translationcited by 6
- 2025Klear-AgentForge: Forging Agentic Intelligence through Posttraining Scalingcited by 6
- 2026Readability-Robust Code Summarization via Meta Curriculum Learningcited by 4
- 2025SEER: Enhancing Chain-of-Thought Code Generation through Self-Exploring Deep Reasoningcited by 2
Built on by
Citing papers per year: 2026: 12.
12 papers.
- 2026SWE-Bench ProMax: Benchmarking Agents on Large-Scale Multilingual Code Refactoringcited by 5
- 2026FrogNano: Training a 4B Coding Agent via Online Task Synthesiscited by 3
- 2026SWE-Pruner Pro: The Coder LLM Already Knows What to Prunecited by 2
- 2026Self-Evolving Coding Agentscited by 2
- 2026SkillForge: Self-Distilling Agents for Project-Specific Issue Resolutioncited by 2
- 2026Repo0: Design-Driven Zero-to-All Code Generationcited by 2
- 2026ParaTempo: Efficient Parallel Reasoning via Temporal Confidencecited by 1
- 2026Shared Organizational Memory for Enterprise Coding Agents: System Design and Deployment Snapshotcited by 0
- 2026Persistent Recursive Worlds Enable Autonomous Software Evolutioncited by 0
- 2026Translator vs. Challenger: Adversarial Agentic Learning for C-to-Rust Translationcited by 0
- 2026Schr"odinger's Code Repository: Have LLMs Learned SWE-bench or Memorized It?cited by 0
- 2026AutoCompact: Learning When to Compact Context in Long-Horizon Coding Agentscited by 0
- 2026AutoCompact: Learning When to Compact Context in Long-Horizon Coding Agents1 Oct 2026
- 2026Translator vs. Challenger: Adversarial Agentic Learning for C-to-Rust Translation14 Sep 2026
- 2026FrogNano: Training a 4B Coding Agent via Online Task Synthesis7 Sep 2026
- 2026Schr"odinger's Code Repository: Have LLMs Learned SWE-bench or Memorized It?21 Aug 2026
- 2026Repo0: Design-Driven Zero-to-All Code Generation20 Aug 2026
- 2026SkillForge: Self-Distilling Agents for Project-Specific Issue Resolution19 Aug 2026
- 2026ParaTempo: Efficient Parallel Reasoning via Temporal Confidence17 Aug 2026
- 2026Persistent Recursive Worlds Enable Autonomous Software Evolution11 Aug 2026
- 2026SWE-Bench ProMax: Benchmarking Agents on Large-Scale Multilingual Code Refactoring10 Aug 2026
- 2026Self-Evolving Coding Agents4 Aug 2026
- 2026Shared Organizational Memory for Enterprise Coding Agents: System Design and Deployment Snapshot31 Jul 2026
- 2026SWE-Pruner Pro: The Coder LLM Already Knows What to Prune20 Jul 2026
Similar, not cited
Close in wording, no citation either way
- 2026VibeMemBench: Evaluating Memory Systems for Coding Agents on Real Repository Coding Tasks
- 2026Structurally Aligned Subtask-Level Memory for Software Engineering Agents
- 2026MemAgent: Learning to Manage Heterogeneous Memory Providers for LLM Agents
- 2026Memory as Infrastructure: Reliability Engineering for Persistent Agent Memory in Months-Long LLM-Assisted Development
- 2026Mem-T: Densifying Rewards for Long-Horizon Memory Agents
- 2026PROJECTMEM: A Local-First, Event-Sourced Memory and Judgment Layer for AI Coding Agents
- 2026MemGovern: Enhancing Code Agents through Learning from Governed Human Experiences
- 2025TOM-SWE: User Mental Modeling For Software Engineering Agents