arXiv:2610.27524cs.AIOct 2026

Manuscript Offprint

arXiv:2610.27524

MemDev-Bench: Does Memory Help Code Agents?Benchmarking Memory Systems over Real Repository Histories

Guorui Chen, Tao Liu, Zhenzhen Huang, Yidan Zhang, Liyu Jiang, Shuoyuan Wang, Hanchen Sun, Xu He, Dong Li, Yihan Hu, Jianye Hao, Lei Feng

Benchmarking Memory Systems over Real Repository Histories

Guorui Chen 1^{1}

Liyu Jiang 1^{1}

Dong Li 3^{3}

Tao Liu 1^{1}

Shuoyuan Wang 2^{2}

Yihan Hu 3^{3}

Zhenzhen Huang 1^{1}

Hanchen Sun 1^{1}

Jianye Hao 3^{3}

Yidan Zhang 1^{1}

Xu He 3^{3}

Lei Feng 1^{1}

1^{1}Southeast University, Nanjing, China

2^{2}Southern University of Science and Technology, Shenzhen, China

3^{3}MemoraX AI, Shenzhen, China

Abstract. Code agents increasingly work on evolving real repositories, and memory systems aim to help them reuse earlier experience. However, such experience is diverse and evolving, so it remains unclear how memory systems organize it and thereby affect code agents. Existing benchmarks cannot answer this reliably because they lack either temporally valid histories or control over prior-task relevance. In this paper, we present MemDev-Bench to evaluate how memory systems affect code agents over diverse repository histories. It pairs each task with relevance-annotated earlier tasks from the same repository to build histories with controlled relevance. We also build an automated pipeline that reliably makes these earlier tasks executable and verifiable, producing 4,869 historical tasks for 555 base tasks. Based on MemDev-Bench, our systematic evaluation of memory systems across diverse development scenarios yields three main findings. (1) Memory mainly improves fine-grained localization and editing, increasing functional correctness. (2) Memory also causes failures on otherwise solvable tasks even with related history, and unrelated history tends to increase such failures. These failures mainly stem from agents reusing memory without reassessing its applicability. (3) Compared with using memory systems, directly providing agents with raw historical trajectories substantially reduces their steps. Further analysis suggests that agents save these steps by reusing process information that compressed memories tend to omit. These results suggest that future memory systems should preserve process information and reassess memory applicability against current task context.

Keywords code agents, memory systems, software engineering, repository histories

1 Introduction

Code agents powered by large language models (LLMs) have achieved substantial progress on real-world software engineering tasks, such as bug fixing and feature development. Despite this progress, existing agents typically solve each task in isolation and start from scratch. In contrast, human developers continuously accumulate experience from past issues and reuse it to resolve new problems efficiently. Memory systems (Chhikara et al., 2025; Daga et al., 2026; Z. Li et al., 2025; Newman, 2025; Xu et al., 2025) offer a way to close this gap, allowing code agents to retain repository context and problem-solving experience across tasks. However, real repository histories mix valuable experience with abundant irrelevant information. This raises a critical question: do memory systems consistently benefit code agents across long-term repository development?

MemoraX AI Research · MemDev-Bench

1 / 41

Addressing this question requires a benchmark with two properties: temporally valid histories from real repositories and controlled relevance between prior and target tasks. Temporal validity requires each prior task to precede the target task without revealing its solution; otherwise, memory gains may come from answer leakage rather than experience reuse. Controlled relevance specifies whether a prior task can help the target task, so a benchmark can separate ineffective memory use from missing useful experience and test whether irrelevant history misleads agents. To our knowledge, no existing benchmark satisfies both properties. Session-based benchmarks build histories from synthetic multi-session scenarios (Singh, 2026) or from task streams of long-term workflows (B. Wang et al., 2026), rather than from real repository evolution. Repository-based benchmarks instead build tasks from GitHub histories. Strict temporal filtering is not always applied, so histories may include tasks that postdate the target task. Such histories may therefore leak target solutions (Zhu et al., 2026). Other benchmarks preserve temporal order. But they either overlook actual task relevance (Joshi et al., 2025) or use chains of almost entirely interdependent tasks (Jin et al., 2026). Both designs make it difficult to assess how memory systems behave across diverse development histories.

We therefore propose MemDev-Bench, a benchmark that evaluates how memory systems affect code agents' task-solving behavior across diverse repository histories. Each instance pairs a base task with relevance-annotated historical tasks from the same repository that precede it and do not reveal its solution. We take base tasks from SWE-bench Verified and SWE-bench Pro (Deng et al., 2026), mine earlier pull requests (PRs) through references and code history, and label each as Strong Related, Weak Related, or Unrelated based on how much it helps solve the base task. Following SWE-bench (Jimenez et al., 2024), we convert these PRs into executable, verifiable tasks. Each PR's patch is split into a solution patch that implements the fix and a test patch that verifies it. The environment is rebuilt from the repository state and dependencies at that time. To make this conversion more reliable, we build a new automated pipeline. Existing pipelines can misclassify test and solution changes or miss patch-induced environment changes, making task validation unreliable (L. Guo et al., 2026; Kolavi, 2026; L. Zhang et al., 2025). To address these issues, our pipeline splits patches using repository test configurations and AST analysis. It also prepares the pre- and post-fix environments separately to capture patch-induced changes. Some pipelines rely heavily on agents for environment planning and debugging, making construction costly at scale (Chen et al., 2026; C. Guo et al., 2026). We instead use a rule-experience-agent hierarchy that invokes an agent only when rules and validated experience fail. With this pipeline, we build 4,869 executable historical tasks for 555 base tasks across 22 repositories and 4 languages.

Using MemDev-Bench, we build three history scenarios: Relevant History with only related tasks, Noisy History with added unrelated tasks, and Repo History with longer-term development. In each scenario, the agent solves historical tasks in chronological order, and the memory system builds memory from trajectories. The agent then solves the base task with this memory. Based on these scenarios, we systematically evaluate representative memory systems, yielding three main findings: (i) Across all three scenarios, memory consistently helps solve tasks that the agent fails without it. These gains come mainly from finer-grained localization and editing within files. (ii) Memory also causes failures on tasks that the agent solves without it, even with related history, and unrelated history tends to increase them. (iii) Compared with using memory systems, directly providing raw historical trajectories to agents substantially reduces their steps. Further analysis suggests that this reduction comes from process information preserved in raw trajectories but often omitted by compressed memories. These results suggest that future memory systems should preserve process information and reassess memory applicability against current task context.

MemoraX AI Research · MemDev-Bench

2/41

Figure

Figure 1: Base tasks distribution. Left: SWE-bench Verified (344 tasks, 12 Python repositories). Right: SWE-bench Pro (211 tasks, 10 repositories, four languages).