arXiv:2611.07759cs.SENov 2026

Manuscript Offprint

arXiv:2611.07759

ReConMem: A Graph-Based Dual Memory System for Repository-Oriented Conversations

Zhishuo Yang, Li Zhang, Yang Liu, Donghao Yang, Fang Liu

ZHISHUO YANG, State Key Laboratory of Complex & Critical Software Environment, School of Computer Science and Engineering, Beihang University, China

LI ZHANG, State Key Laboratory of Complex & Critical Software Environment, School of Computer Science and Engineering, Beihang University, China

YANG LIU, State Key Laboratory of Complex & Critical Software Environment, School of Computer Science and Engineering, Beihang University, China

DONGHAO YANG, State Key Laboratory of Complex & Critical Software Environment, School of Computer Science and Engineering, Beihang University, China

FANG LIU [1]^{[1]}, State Key Laboratory of Complex & Critical Software Environment, School of Computer Science and Engineering, Beihang University, China

Large language model (LLM)-based code assistants are increasingly used in iterative repository-level development, where effective assistance requires jointly leveraging evolving conversational history and repository context. Existing memory systems, however, are primarily designed for general-purpose conversations and do not sufficiently coordinate conversational information with the structured code entities to which it refers. We propose REConMEM, a graph-based dual memory system for repository-oriented conversations. REConMEM organizes distilled conversational memories and conversation-relevant code entities into interconnected semantic and structural memory graphs, while maintaining their cross-graph associations as interactions evolve. For memory recall, REConMEM combines natural-language and code-aligned retrieval through code-draft-based query grounding, expands retrieved information over intra- and inter-graph relations, and compresses retrieved code according to its structural granularity. We evaluate REConMEM on two repository-oriented conversational benchmarks covering controlled long-horizon context management and realistic project-grounded multi-turn assistance. On LoCoEval, REConMEM improves overall Pass@1 score over the strongest baseline by 7.917 and 7.292 percentage points on the single-hop and multi-hop subsets, respectively, while maintaining comparable context compression. On CodeAssistBench, it achieves 27.61% Correct and 44.03% Partially Correct, outperforming Full History by 4.10 and 7.09 percentage points, respectively, while also improving interaction quality. Further analyses demonstrate the complementary contributions of the two retrieval routes and the effectiveness of REConMEM across different conversation characteristics. These results show that explicitly coordinating conversational history with repository structure enables more effective context management for repository-oriented multi-turn interactions. We provide the replication package at https://github.com/CoconutTreeee/ReConMem.

Authors' Contact Information: Zhishuo Yang, yangzhishuo@buaa.edu.cn, State Key Laboratory of Complex & Critical Software Environment, School of Computer Science and Engineering, Beihang University, Beijing, China; Li Zhang, lily@buaa.edu.cn, State Key Laboratory of Complex & Critical Software Environment, School of Computer Science and Engineering, Beihang University, Beijing, China; Yang Liu, liuyang26@buaa.edu.cn, State Key Laboratory of Complex & Critical Software Environment, School of Computer Science and Engineering, Beihang University, Beijing, China; Donghao Yang, yangdonghao@buaa.edu.cn, State Key Laboratory of Complex & Critical Software Environment, School of Computer Science and Engineering, Beihang University, Beijing, China; Fang Liu, fangliu@buaa.edu.cn, State Key Laboratory of Complex & Critical Software Environment, School of Computer Science and Engineering, Beihang University, Beijing, China.

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.

© 2026 Copyright held by the owner/author(s). Publication rights licensed to ACM.

CCS Concepts: • Software and its engineering → Software development techniques; • Computing methodologies → Knowledge representation and reasoning.

Additional Key Words and Phrases: Context Management, Repository Development, Dual Memory System, Memory Graph, Large Language Models

ACM Reference Format:

Zhishuo Yang, Li Zhang, Yang Liu, Donghao Yang, and Fang Liu. 2026. RECONMEM: A Graph-Based Dual Memory System for Repository-Oriented Conversations. 1, 1 (November 2026), 26 pages. https://doi.org/10.1145/nnnnnnn.nnnnnnn