MemCodex: Self-Programming Hierarchical Memory for Language Agents
Not on the map. Why?
Abstract (arXiv)
Agent memory faces heterogeneous access needs: a single-hop question may require one piece of evidence, whereas a multi-hop question must combine evidence from multiple sources. Predefined memory workflows cannot adapt to these varying needs. Recent adaptive methods search or learn over memory components and their compositions, but the design space itself remains predefined. We introduce MemCodex, a self-evolving hierarchical memory system that organizes experience into executable memory programs for summaries, relational knowledge, reusable skills, and latent memory. Open-ended program evolution searches the open design space of layer programs by rewriting how each layer is constructed, indexed, retrieved, and routed, thereby adapting both within-layer implementations and cross-layer composition. At query time, reads traverse the hierarchy from coarse to fine and stop once sufficient evidence is found, descending to the original history when needed. We further develop MemArena, a unified runtime that places heterogeneous data and memory systems behind a common interface. MemCodex improves average task success by 10.1% relative to the strongest adaptive-memory baseline, while using 3.4x fewer context tokens and achieving 2.1x faster inference.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 78 of its 84 references that are in the map. First posted on arXiv 30 Sep 2026.
Builds on
78 of 84 references.
References · 78
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2024GPT-4o System Cardcited by 4,467
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,081
- 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 1,908
- 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,761
- 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarizationcited by 1,411
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,295
- 2024OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environmentscited by 1,134
- 2025A-MEM: Agentic Memory for LLM Agentscited by 1,000
38 more
- 2023ExpeL: LLM Agents Are Experiential Learnerscited by 814
- 2024Evaluating Very Long-Term Conversational Memory of LLM Agentscited by 800
- 2025AlphaEvolve: A coding agent for scientific and algorithmic discoverycited by 763
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 722
- 2024LongMemEval: Benchmarking Chat Assistants on Long-Term Interactive Memorycited by 656
- 2023C-Pack: Packed Resources For General Chinese Embeddingscited by 556
- 2023MemoryBank: Enhancing Large Language Models with Long-Term Memorycited by 539
- 2024RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrievalcited by 519
- 2025Zep: A Temporal Knowledge Graph Architecture for Agent Memorycited by 372
- 2024Automated Design of Agentic Systemscited by 360
- 2024Agent Workflow Memorycited by 342
- 2024Titans: Learning to Memorize at Test Timecited by 303
- 2025Darwin Godel Machine: Open-Ended Evolution of Self-Improving Agentscited by 294
- 2025Memory in the Age of AI Agentscited by 285
- 2024HippoRAG: Neurobiologically Inspired Long-Term Memory for Large Language Modelscited by 273
- 2025ReasoningBank: Scaling Agent Self-Evolving with Reasoning Memorycited by 253
- 2026Meta-Harness: End-to-End Optimization of Model Harnessescited by 248
- 2025Evaluating Memory in LLM Agents via Incremental Multi-Turn Interactionscited by 236
- 2025Know Me, Respond to Me: Benchmarking LLMs for Dynamic User Profiling and Personalized Responses at Scalecited by 163
- 2025Memory OS of AI Agentcited by 140
- 2025MemOS: A Memory OS for AI Systemcited by 129
- 2026MemSkill: Learning and Evolving Memory Skills for Self-Evolving Agentscited by 129
- 2025Advances and Challenges in Foundation Agents: From Brain-Inspired Intelligence to Evolutionary, Collaborative, and Safe Systemscited by 125
- 2026Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnessescited by 119
- 2024MEMORYLLM: Towards Self-Updatable Large Language Modelscited by 89
- 2024A Survey on Self-Evolution of Large Language Modelscited by 86
- 2025MemEvolve: Meta-Evolution of Agent Memory Systemscited by 81
- 2025LifelongAgentBench: Evaluating LLM Agents as Lifelong Learnerscited by 65
- 2025RAG vs. GraphRAG: A Systematic Evaluation and Key Insightscited by 51
- 2025Mem-α: Learning Memory Construction via Reinforcement Learningcited by 49
- 2026Hyperagentscited by 40
- 2024OSCAR: Operating System Control via State-Aware Reasoning and Re-Planningcited by 37
- 2025From Single to Multi-Granularity: Toward Long-Term Memory Association and Selection of Conversational Agentscited by 27
- 2025TReMu: Towards Neuro-Symbolic Temporal Reasoning for LLM-Agents with Memory in Multi-Session Dialoguescited by 25
- 2025System-1.5 Reasoning: Traversal in Language and Latent Spaces with Dynamic Shortcutscited by 23
- 2026GAM: Hierarchical Graph-based Agentic Memory for LLM Agentscited by 19
- 2026Learning to Continually Learn via Meta-learning Agentic Memory Designscited by 16
- 2026The Red Queen G"odel Machine: Co-Evolving Agents and Their Evaluatorscited by 16
50 most cited of 78 All 78 (JSON)
Built on by
Not cited yet.