Coding Agent Memory Post-Training II: Unlocking the Memory Potential of Pre-trained File Operations for Long-Horizon Tasks via On-Policy Distillation
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. They must therefore decide what to write down and what to read back, and when to do either. Recent work has begun to use on-policy distillation (OPD) to make memory control part of the policy, relying on memory tools and compaction protocols that lie outside either model's pre-training. However, this weakens the distillation on both sides: the teacher cannot give useful guidance on an interface it has never used, and the student samples too few meaningful memory actions for that guidance to take effect. To study this problem, we introduce Coding Agent Memory Gym II (CAMG-II), a suite of long-horizon agentic-RL environments spanning Shop, Coding, AutoResearch, General, and Visual. Alongside each environment's native task interface, CAMG-II provides ordinary Bash access and an episode-persistent workspace, enabling the policy to create, revise, search, and reuse files as memory across context replacements. We also introduce Coding Agent Memory Post-Training II (CAMP-II), which trains a single policy jointly across all five environments with fully asynchronous OPD to learn this file-based memory behavior directly from a frozen teacher with a prior for file operations. On CAMG-II, CAMP-II obtains 2.97 times the gain of the strongest OPD baseline. The memory behavior CAMP-II learns generalizes to two external benchmarks, Terminal-Bench 2.1 and SWE-Bench Pro V2, with improved success rates.
Key facts. Cited by 1 paper in the map (data through 24 Nov 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 81 of its 88 references that are in the map. Submitted 10 Nov 2026.
Builds on
81 of 88 references.
Closest ancestors · 11
Same direction, newest first
- 2026Coding Agent Memory Post-training: Unlocking the Memory Potential of Pre-trained File Operations for Long-Horizon Tasks via Reinforcement Learning28 Sep
- 2026Agent Memory Distillation: Empowering Small LLM Agents with Hierarchical Teacher Memory7 Aug
- 2026MemPrism: Task-Conditioned Relational Memory Views for Long-Horizon Agents7 Aug
- 2026ACM: Agentic Context Management for Long Horizon Tasks26 Jul
- 2026Agentic Memory: Learning Unified Long-Term and Short-Term Memory Management for Large Language Model Agents5 Jan
- 2025ACON: Optimizing Context Compression for Long-horizon LLM Agents1 Oct
- 2025ReSum: Unlocking Long-Horizon Search Intelligence via Context Summarization16 Sep
- 2025MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agents18 Jun
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory28 Apr
- 2025A-MEM: Agentic Memory for LLM Agents17 Feb
- 2025Zep: A Temporal Knowledge Graph Architecture for Agent Memory20 Jan
Other references · 70
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
- 2015High-Dimensional Continuous Control Using Generalized Advantage Estimationcited by 2,164
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 2,069
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,655
- 2023AgentBench: Evaluating LLMs as Agentscited by 1,401
- 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,377
- 2023On-Policy Distillation of Language Models: Learning from Self-Generated Mistakescited by 1,201
- 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 742
- 2026Self-Distilled Reasoner: On-Policy Self-Distillation for Large Language Modelscited by 573
- 2015Policy Distillationcited by 496
- 2023Cognitive Architectures for Language Agentscited by 475
- 2026Reinforcement Learning via Self-Distillationcited by 398
38 more
- 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 371
- 2026Rethinking On-Policy Distillation of Large Language Models: Phenomenology, Mechanism, and Recipecited by 369
- 2026Self-Distillation Enables Continual Learningcited by 291
- 2015Unifying distillation and privileged informationcited by 272
- 2026On-Policy Context Distillation for Language Modelscited by 228
- 2026Privileged Information Distillation for Language Modelscited by 121
- 2026Skill-SD: Skill-Conditioned Self-Distillation for Multi-turn LLM Agentscited by 113
- 2025Cartridges: Lightweight and general-purpose long context representations via self-studycited by 102
- 2026Self-Distilled Agentic Reinforcement Learningcited by 73
- 2024Rethinking Kullback-Leibler Divergence in Knowledge Distillation for Large Language Modelscited by 72
- 2025Distilling LLM Agent into Small Models with Retrieval and Code Toolscited by 55
- 2026SEED: Self-Evolving On-Policy Distillation for Agentic Reinforcement Learningcited by 51
- 2026HDPO: Hybrid Distillation Policy Optimization via Privileged Self-Distillationcited by 48
- 2026Purified OPSD: On-Policy Self-Distillation Without Losing How to Thinkcited by 44
- 2026GATES: Self-Distillation under Privileged Context with Consensus Gatingcited by 43
- 2026Asymmetric On-Policy Distillation: Bridging Exploitation and Imitation at the Token Levelcited by 41
- 2026OPID: On-Policy Skill Distillation for Agentic Reinforcement Learningcited by 41
- 2026When Are Teacher Tokens Reliable? Position-Weighted On-Policy Self-Distillation for Reasoningcited by 40
- 2026Online Experiential Learning for Language Modelscited by 36
- 2026CompactionRL: Reinforcement Learning with Context Compaction for Long-Horizon Agentscited by 27
- 2026Privileged, but Biased: How PI-Conditioned Teachers Break Self-Distillationcited by 26
- 2026Pass the Baton: Trajectory-Relayed On-Policy Distillationcited by 25
- 2026Trajectory-Refined Distillationcited by 22
- 2026Frontis-MA1: Training an AI4AI Model towards Recursive Self-Improvement in Machine Learning Engineeringcited by 22
- 2026Look Ahead Before You Distill: Future Trajectory Validation of Teacher Guidance for Agentic On-Policy Distillationcited by 19
- 2026Mismatch Matters: On-Policy Distillation Beyond Token Agreementcited by 19
- 2025Student-Centered Distillation Narrows the Agentic Gap Between Small and Large LLMscited by 18
- 2026UCOB: Learning to Utilize and Evolve Agentic Skills via Credit-Aware On-Policy Bidirectional Self-Distillationcited by 18
- 2026Privileged Solutions or Context-Induced Teacher Behavior? Dissecting On-Policy Self-Distillationcited by 18
- 2026MiMo-V2.6: Scaling Reinforcement Learning Towards Self-Improvementcited by 18
- 2026MemPO: Self-Memory Policy Optimization for Long-Horizon Agentscited by 17
- 2026Rethinking Privileged Information in On-Policy Self-Distillationcited by 17
- 2024Provable Partially Observable Reinforcement Learning with Privileged Informationcited by 16
- 2026On-Policy Self-Distillation with Sampled Demonstrations Reduces Output Diversitycited by 14
- 2026Denser neq Better: Limits of On-Policy Self-Distillation for Continual Post-Trainingcited by 13
- 2026Diagnosing and Mitigating Thinking Collapse in On-Policy Self-Distillationcited by 11
- 2026PAST: Privileged Adaptation from Complete Student Trajectories for On-Policy Self-Distillationcited by 10
- 2026Trust Is Not Enough: Influence Calibration for On-Policy Self-Distillation in Agentic RLcited by 10
50 most cited of 70 All 70 (JSON)
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2025Memory as Action: Autonomous Context Curation for Long-Horizon Agentic Tasks
- 2026M^star: Every Task Deserves Its Own Memory Harness
- 2026Measure Before You Manage: Evaluating Agent Working Memory in Coding Agents
- 2026Just-In-Time Agent Memory with Runtime Agentic Research
- 2026Memory as a Controlled Process: Learned Adaptive Memory Management for LLM Agents
- 2026PRO-LONG: Programmatic Memory Enables Long-Horizon Reasoning
- 2026REM: What to Store, When to Recall, What to Forget in Experience Memory for Coding Agents
- 2026Memory for Autonomous LLM Agents:Mechanisms, Evaluation, and Emerging Frontiers