mlsanityData to 14 Oct 2026

Coding Agent Memory Post-training: Unlocking the Memory Potential of Pre-trained File Operations for Long-Horizon Tasks via Reinforcement Learning

arXiv 2609.34422 ↗First posted 28 Sep 2026cs.LG cs.AI cs.CLcited by 0

On the map: LLM agents and tool use → Agent memory systems

also in 1 more
Abstract (arXiv)

Language-model agents increasingly tackle long-horizon tasks whose interaction histories exceed the model's active context. Recent work has begun to use reinforcement learning to make memory control part of the policy, often relying on predefined memory tools within domain-specific training environments of relatively short horizons. This setup ties learned memory behavior to environment-specific interfaces that lie outside the base model's pre-training and must be learned from scratch, so even after post-training, agents struggle to use memory in long-horizon tasks. To address these limitations, we introduce Coding Agent Memory Gym (CAMG), a suite of long-horizon agentic-RL environments spanning Shop, Coding, DeepResearch, and AutoResearch. Alongside each environment's native task interface, CAMG provides executable shell access and an episode-persistent workspace, enabling agents to create, revise, search, and reuse files as memory throughout an episode. We also introduce CAMG-RL, which trains a single policy jointly across all four environments with fully asynchronous PPO, learning this file-based memory behavior directly from downstream task reward, and we train CAMG-RL-4B and CAMG-RL-9B from Qwen3.5 models of matching size. On SWE-bench Verified and MLE-bench Lite, CAMG-RL-4B and CAMG-RL-9B are competitive with Qwen3.5-35B-A3B and Qwen3.5-122B-A10B, respectively.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 64 of its 86 references that are in the map. First posted on arXiv 28 Sep 2026.

Builds on

64 of 86 references.

Closest ancestors · 20

Same direction, newest first

  1. 2026Verifiable Memory: Learning Unified Memory Management with Local and Global Verifiers for Large Language Model Agents4 Aug
  2. 2026Filesystem-Based Memory for LLM Agents: Organization, Evolution, and Sustainability29 Jul
  3. 2026ACM: Agentic Context Management for Long Horizon Tasks26 Jul
  4. 2026PRO-LONG: Programmatic Memory Enables Long-Horizon Reasoning22 Jul
  5. 2026ECHO: Prune To Act, Trace To Learn With Selective Turn Memory In Agentic RL30 Jun
  6. 2026Learning Agent-Compatible Context Management for Long-Horizon Tasks29 May
  7. 2026Memory-R2: Fair Credit Assignment for Long-Horizon Memory-Augmented LLM Agents20 May
  8. 2026Escaping the Context Bottleneck: Active Context Curation for LLM Agents via Reinforcement Learning13 Apr
  9. 2026Fine-Mem: Fine-Grained Feedback Alignment for Long-Horizon Memory Management13 Jan
  10. 2026AtomMem : Learnable Dynamic Agentic Memory with Atomic Memory Operation13 Jan
  11. 2026Agentic Memory: Learning Unified Long-Term and Short-Term Memory Management for Large Language Model Agents5 Jan
  12. 2025Memory as Action: Autonomous Context Curation for Long-Horizon Agentic Tasks14 Oct
8 more
  1. 2025Scaling Long-Horizon LLM Agent via Context-Folding13 Oct
  2. 2025ACON: Optimizing Context Compression for Long-horizon LLM Agents1 Oct
  3. 2025ReSum: Unlocking Long-Horizon Search Intelligence via Context Summarization16 Sep
  4. 2025Memory-R1: Enhancing Large Language Model Agents to Manage and Utilize Memories via Reinforcement Learning27 Aug
  5. 2025Evaluating Memory in LLM Agents via Incremental Multi-Turn Interactions7 Jul
  6. 2025MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agents18 Jun
  7. 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory28 Apr
  8. 2024HiAgent: Hierarchical Working Memory Management for Solving Long-Horizon Agent Tasks with Large Language Model18 Aug

Other references · 44

  1. 2017Proximal Policy Optimization Algorithmscited by 15,215
  2. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  3. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
  4. 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,568
  5. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
  6. 2016Asynchronous Methods for Deep Reinforcement Learningcited by 2,258
  7. 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,057
  8. 2015High-Dimensional Continuous Control Using Generalized Advantage Estimationcited by 2,026
  9. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
  10. 2025Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learningcited by 1,444
  11. 2023MemGPT: Towards LLMs as Operating Systemscited by 1,389
  12. 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,251
32 more
  1. 2018IMPALA: Scalable Distributed Deep-RL with Importance Weighted Actor-Learner Architecturescited by 883
  2. 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 707
  3. 2023Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Modelscited by 574
  4. 2025Group-in-Group Policy Optimization for LLM Agent Trainingcited by 497
  5. 2024MLE-bench: Evaluating Machine Learning Agents on Machine Learning Engineeringcited by 469
  6. 2023Cognitive Architectures for Language Agentscited by 429
  7. 2025RAGEN: Understanding Self-Evolution in LLM Agents via Multi-Turn Reinforcement Learningcited by 386
  8. 2024Training Software Engineering Agents and Verifiers with SWE-Gymcited by 336
  9. 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 285
  10. 2024WebRL: Training LLM Web Agents via Self-Evolving Online Curriculum Reinforcement Learningcited by 256
  11. 2025AReaL: A Large-Scale Asynchronous Reinforcement Learning System for Language Reasoningcited by 250
  12. 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 246
  13. 2024ArCHer: Training Language Model Agents via Hierarchical Multi-Turn RLcited by 228
  14. 2025MLGym: A New Framework and Benchmark for Advancing AI Research Agentscited by 124
  15. 2020Sample Factory: Egocentric 3D Control from Pixels at 100000 FPS with Asynchronous Reinforcement Learningcited by 93
  16. 2025AgentRL: Scaling Agentic Reinforcement Learning with a Multi-Turn, Multi-Task Frameworkcited by 62
  17. 2025Context as a Tool: Context Management for Long-Horizon SWE-Agentscited by 43
  18. 2025MLE-Dojo: Interactive Environments for Empowering LLM Agents in Machine Learning Engineeringcited by 41
  19. 2026Single-Rollout Asynchronous Optimization for Agentic Reinforcement Learningcited by 37
  20. 2025Turn-PPO: Turn-Level Advantage Estimation with PPO for Improved Multi-Turn RL in Agentic LLMscited by 30
  21. 2025Sculptor: Empowering LLMs with Cognitive Agency via Active Context Managementcited by 18
  22. 2026Mem-T: Densifying Rewards for Long-Horizon Memory Agentscited by 18
  23. 2025RollArt: Disaggregated Multi-Task Agentic RL Training at Scalecited by 14
  24. 2026CompactionRL: Reinforcement Learning with Context Compaction for Long-Horizon Agentscited by 14
  25. 2026MemPO: Self-Memory Policy Optimization for Long-Horizon Agentscited by 12
  26. 2026LiteResearcher: A Scalable Agentic RL Training Framework for Deep Research Agentcited by 10
  27. 2026The Pensieve Paradigm: Stateful Language Models Mastering Their Own Contextcited by 9
  28. 2026Frontis-MA1: Training an AI4AI Model towards Recursive Self-Improvement in Machine Learning Engineeringcited by 8
  29. 2026Relax: An Asynchronous Reinforcement Learning Engine for Omni-Modal Post-Training at Scalecited by 7
  30. 2026Agent Lightning v1.0: Towards Harnessed Agentic RLcited by 7
  31. 2026ZipRL: Adaptive Multi-Turn Context Compression with Hindsight Response Replaycited by 3
  32. 2026ComboShoppingBench: Evaluating LLM Agents for Budget-Constrained Basket Shopping with Couponscited by 2

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026AdMem: Advanced Memory for Task-solving Agents
  2. 2026Memory as a Controlled Process: Learned Adaptive Memory Management for LLM Agents
  3. 2026Just-In-Time Agent Memory with Runtime Agentic Research
  4. 2026M^star: Every Task Deserves Its Own Memory Harness
  5. 2026Memory for Autonomous LLM Agents:Mechanisms, Evaluation, and Emerging Frontiers
  6. 2026MemCo: Memory-Centric Collaboration for Generalizing LLM Agents to Unseen Environments
  7. 2026SAM: State-Adaptive Memory for Long-Horizon Reasoning Agent
  8. 2026A Survey of Agent Memory in the Second Half: Towards Self-Evolving and Long-Horizon Agents