Abstract
While large language model (LLM) agents can effectively use external toolsfor complex real-world tasks, they require memory systems to leveragehistorical experiences. Current memory systems enable basic storage andretrieval but lack sophisticated memory organization, despite recent attemptsto incorporate graph databases. Moreover, these systems' fixed operations andstructures limit their adaptability across diverse tasks. To address thislimitation, this paper proposes a novel agentic memory system for LLM agentsthat can dynamically organize memories in an agentic way. Following the basicprinciples of the Zettelkasten method, we designed our memory system to createinterconnected knowledge networks through dynamic indexing and linking. When anew memory is added, we generate a comprehensive note containing multiplestructured attributes, including contextual descriptions, keywords, and tags.The system then analyzes historical memories to identify relevant connections,establishing links where meaningful similarities exist. Additionally, thisprocess enables memory evolution - as new memories are integrated, they cantrigger updates to the contextual representations and attributes of existinghistorical memories, allowing the memory network to continuously refine itsunderstanding. Our approach combines the structured organization principles ofZettelkasten with the flexibility of agent-driven decision making, allowing formore adaptive and context-aware memory management. Empirical experiments on sixfoundation models show superior improvement against existing SOTA baselines.The source code for evaluating performance is available athttps://github.com/WujiangXu/AgenticMemory, while the source code of agenticmemory system is available at https://github.com/agiresearch/A-mem.