DevMemory: A Structured Memory Management Architecture for Persistent Knowledge in AI Coding Agents

AI coding agents operate without persistent memory; useful outputs produced in one session are unavailable in the next, and information from one project never transfers to another. We present DevMemory, a structured memory management architecture that brings trust-scored, cross-scope knowledge retrieval to AI coding agents. Borrowing organizational categories from Tulving’s (1972) episodic-semantic-procedural taxonomy in cognitive psychology, DevMemory classifies stored information into three types across three hierarchical scopes (agent, project, organizational), governed by a formal trust scoring model with temporal decay, contradiction handling, and reinforcement-based promotion. The architecture introduces four key contributions: (1) a principled adaptation of cognitive memory categories to software development retrieval contexts, (2) a continuous trust function that computes information reliability as a product of provenance, recency, contradiction, and reinforcement signals, (3) a token-efficient retrieval pipeline that deduplicates and budget-packs results to maximize information density within context window constraints, and (4) a tool interface design that consolidates 17 operations into 5 LLM-optimized tools, reducing system prompt overhead by 33%. The system is implemented as an open-source MCP (Model Context Protocol) server, validated by 325 automated tests spanning unit, integration, efficacy, effectiveness benchmarks, and performance tests. An effectiveness benchmark on a 29-memory corpus with 8 evaluation queries demonstrates: 87.5% cross-session information reuse rate, Mean Reciprocal Rank of 0.875, trust-sorted retrieval improving average result quality by 8.6% over unsorted baselines, complete separation between verified and contradicted entries (0.78 trust gap), and 27-91% token savings under budget constraints while maintaining or improving result quality. We explicitly distinguish our engineering use of cognitive taxonomy labels from the phenomenological and mechanistic properties of biological memory systems, and discuss the implications of this gap.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-10-01
DOI
https://doi.org/10.5281/zenodo.19363278
Primary Topic
Scientific Computing and Data Management
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
preprint

DevMemory: A Structured Memory Management Architecture for Persistent Knowledge in AI Coding Agents

Abhijeet Patil
Zenodo (CERN European Organization for Nuclear Research)
Scientific Computing and Data Management
preprint

DevMemory: A Structured Memory Management Architecture for Persistent Knowledge in AI Coding Agents

Abhijeet Patil
preprint en

Abstract

AI coding agents operate without persistent memory; useful outputs produced in one session are unavailable in the next, and information from one project never transfers to another. We present DevMemory, a structured memory management architecture that brings trust-scored, cross-scope knowledge retrieval to AI coding agents. Borrowing organizational categories from Tulving’s (1972) episodic-semantic-procedural taxonomy in cognitive psychology, DevMemory classifies stored information into three types across three hierarchical scopes (agent, project, organizational), governed by a formal trust scoring model with temporal decay, contradiction handling, and reinforcement-based promotion. The architecture introduces four key contributions: (1) a principled adaptation of cognitive memory categories to software development retrieval contexts, (2) a continuous trust function that computes information reliability as a product of provenance, recency, contradiction, and reinforcement signals, (3) a token-efficient retrieval pipeline that deduplicates and budget-packs results to maximize information density within context window constraints, and (4) a tool interface design that consolidates 17 operations into 5 LLM-optimized tools, reducing system prompt overhead by 33%. The system is implemented as an open-source MCP (Model Context Protocol) server, validated by 325 automated tests spanning unit, integration, efficacy, effectiveness benchmarks, and performance tests. An effectiveness benchmark on a 29-memory corpus with 8 evaluation queries demonstrates: 87.5% cross-session information reuse rate, Mean Reciprocal Rank of 0.875, trust-sorted retrieval improving average result quality by 8.6% over unsorted baselines, complete separation between verified and contradicted entries (0.78 trust gap), and 27-91% token savings under budget constraints while maintaining or improving result quality. We explicitly distinguish our engineering use of cognitive taxonomy labels from the phenomenological and mechanistic properties of biological memory systems, and discuss the implications of this gap.

Zenodo (CERN European Organization for Nuclear Research)
University of North Carolina Wilmington (US)
Scientific Computing and Data Management
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

DevMemory: A Structured Memory Management Architecture for Persistent Knowledge in AI Coding Agents — Abhijeet Patil · Zenodo (CERN European Organization for Nuclear Research) (2026) | TGRS Research Map | TGRS