CoReMem: Cost-Internalizing Memory for Successive Coding Tasks with Prospective Valuation
On the map: LLM agents and tool use → Agent memory systems
Abstract (arXiv)
Coding agents tackle successive tasks on an evolving repository, carrying forward edits and writing memory before the next task is known. Selecting memory for unknown next tasks requires balancing future usefulness against the costs of writing and reading it. The actor must also decide when acting on available memory saves effort as the task unfolds. We introduce Coding-Repository Memory (CoReMem), a cost-internalizing framework that guides memory design and actor adaptation through measured memory value on the next task. Prospective segment valuation compares runs of the next task with and without individual trajectory segments from the same inherited repository state, guiding a compact memory built around anchors: repository locations and executable checks. Actor adaptation estimates on-policy memory value within rollout groups with and without memory, using a reward that prioritizes resolution and penalizes step count in successful runs. Provenance-gated value credit assigns the additional value term to steps identified as using memory-supplied anchors, while every step retains outcome credit. On ChainSWE, CoReMem raises the 27B actor's resolve rate from 21.0% to 25.7%, with 17% fewer steps and 11% fewer total cache-aware tokens, including memory-module calls, relative to the untrained actor model without memory.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Agent memory systems, one of 16 directions in LLM agents and tool use. Builds on 68 of its 92 references that are in the map. Submitted 12 Nov 2026.
Builds on
68 of 92 references.
Closest ancestors · 18
Same direction, newest first
- 2026MemTrace: State-Consistent Memory for Long-Horizon Coding Agents4 Oct
- 2026Can Agent Memory Systems Track Evolving State?20 Aug
- 2026RoMeRL: Balancing Feedback Coverage and the Memory-Reward Trap in Self-Evolving Agent Memory via Reduced-Order Utility States3 Aug
- 2026ECHO: Prune To Act, Trace To Learn With Selective Turn Memory In Agentic RL30 Jun
- 2026MemDelta: Controlled Baselines and Hidden Confounds in Agent Memory Evaluation29 Jun
- 2026Decision-Aware Memory Cards: Counterfactual-Inspired Context Selection and Compression for Tool-Using LLM Agents6 Jun
- 2026InfoMem: Training Long-Context Memory Agents with Answer-Conditioned Information Gain2 Jun
- 2026Memory-R2: Fair Credit Assignment for Long-Horizon Memory-Augmented LLM Agents20 May
- 2026Causal Intervention-Based Memory Selection for Long-Horizon LLM Agents17 May
- 2026Learning When to Remember: Risk-Sensitive Contextual Bandits for Abstention-Aware Memory Retrieval in LLM-Based Coding Agents30 Apr
- 2026MemoryArena: Benchmarking Agent Memory in Interdependent Multi-Session Agentic Tasks18 Feb
- 2025Agent KB: Leveraging Cross-Domain Experience for Agentic Problem Solving8 Jul
6 more
- 2025MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agents18 Jun
- 2025SWE-Bench-CL: Continual Learning for Coding Agents13 Jun
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory28 Apr
- 2025A-MEM: Agentic Memory for LLM Agents17 Feb
- 2024A Survey on the Memory Mechanism of Large Language Model based Agents21 Apr
- 2024Evaluating Very Long-Term Conversational Memory of LLM Agents27 Feb
Other references · 50
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 10,542
- 2023Let's Verify Step by Stepcited by 4,259
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,765
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,655
- 2025Understanding R1-Zero-Like Training: A Critical Perspectivecited by 1,502
- 2026DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligencecited by 1,363
- 2023ExpeL: LLM Agents Are Experiential Learnerscited by 1,067
- 2022Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questionscited by 990
- 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 909
- 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 876
- 2017Counterfactual Multi-Agent Policy Gradientscited by 785
38 more
- 2019Data Shapley: Equitable Valuation of Data for Machine Learningcited by 664
- 2025Group-in-Group Policy Optimization for LLM Agent Trainingcited by 582
- 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 461
- 2024Training Software Engineering Agents and Verifiers with SWE-Gymcited by 414
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 387
- 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 371
- 2023Trusting Your Evidence: Hallucinate Less with Context-aware Decodingcited by 357
- 2025SWE-RL: Advancing LLM Reasoning via Reinforcement Learning on Open Software Evolutioncited by 287
- 2025MemAgent: Reshaping Long-Context LLM with Multi-Conv RL-based Memory Agentcited by 278
- 2025Training Language Models to Reason Efficientlycited by 265
- 2024VinePPO: Refining Credit Assignment in RL Training of LLMscited by 225
- 2024ContextCite: Attributing Model Generation to Contextcited by 117
- 2020Counterfactual Credit Assignment in Model-Free Reinforcement Learningcited by 78
- 2022Mutual Information Alleviates Hallucinations in Abstractive Summarizationcited by 74
- 2026EverMemOS: A Self-Organizing Memory Operating System for Structured Long-Horizon Reasoningcited by 65
- 2025LongCodeBench: Evaluating Coding LLMs at 1M Context Windowscited by 41
- 2026Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?cited by 28
- 2026CompactionRL: Reinforcement Learning with Context Compaction for Long-Horizon Agentscited by 27
- 2025Improving Code Localization with Repository Memorycited by 26
- 2026SWE-Explore: Benchmarking How Coding Agents Explore Repositoriescited by 25
- 2026Remember When It Matters: Proactive Memory Agent for Long-Horizon Agentscited by 23
- 2026SWE-MeM: Learning Adaptive Memory Management for Long-Horizon Coding Agentscited by 22
- 2026MemPO: Self-Memory Policy Optimization for Long-Horizon Agentscited by 17
- 2026SWE-Milestone: Evaluating AI Agents on Continuous Software Evolutioncited by 17
- 2026Structurally Aligned Subtask-Level Memory for Software Engineering Agentscited by 15
- 2026SWE Context Bench: A Benchmark for Context Learning in Codingcited by 14
- 2026Exact Is Easier: Credit Assignment for Cooperative LLM Agentscited by 11
- 2026Handoff Debt: The Rediscovery Cost When Coding Agents Take Over Interrupted Taskscited by 11
- 2026UMEM: Unified Memory Extraction and Management Framework for Generalizable Memorycited by 10
- 2026ChainSWE: Benchmarking Coding Agents on Multi-Bug Software Maintenancecited by 10
- 2026RepoShapley: Shapley-Enhanced Context Filtering for Repository-Level Code Completioncited by 6
- 2026Your Code Agent Can Grow Alongside You with Structured Memorycited by 5
- 2026HiMPO: Hindsight-Informed Memory Policy Optimization for Less-Entangled Credit in Long-Horizon Agentscited by 5
- 2026SWE-Edit: Rethinking Code Editing for Efficient SWE-Agentcited by 4
- 2026VibeMemBench: Evaluating Memory Systems for Coding Agents on Real Repository Coding Taskscited by 4
- 2026From Passive Retrieval to Active Memory Navigation: Learning to Use Memory as a Structured Action Spacecited by 3
- 2026Enhancing Software Engineering Through Closed-Loop Memory Optimizationcited by 1
- 2026AdaRepair-Mem: Adaptive Experience Orchestration for Repository-Level Program Repaircited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026REM: What to Store, When to Recall, What to Forget in Experience Memory for Coding Agents
- 2026AdMem: Expectation-Grounded Procedural Memory for Long-Horizon Task-Solving Agents
- 2026Stratum: Repository Memory for Coding Agents Beyond the Context Window
- 2026Measure Before You Manage: Evaluating Agent Working Memory in Coding Agents
- 2026Coding Agent Memory Post-Training II: Unlocking the Memory Potential of Pre-trained File Operations for Long-Horizon Tasks via On-Policy Distillation
- 2026CHIME: Credit-Aware Hierarchical Memory Evolution for Long-Horizon Agentic Planning
- 2026PROJECTMEM: A Local-First, Event-Sourced Memory and Judgment Layer for AI Coding Agents
- 2026Speculate with Memory: Lossless Acceleration for LLM Agents