Memory
A cross-session memory mechanism for AI agents that establishes a persistent storage layer outside the model. It saves user preferences, correction history, and project experience as retrievable notes, enabling agents to accumulate personalized knowledge across different sessions.
Core Facts
LangChain introduced two paradigms—chain invocation (Chain) and agents (Agent)—where the former is suited for fixed sequential process tasks and the latter is suited for open-ended tasks that dynamically infer the next step.
The Agent's so-called "getting smarter with use" is based on rule induction and context memory retrieval, not model weight updates, so accumulated experience will be lost if the account is changed or memory is cleared.
The memory module enables an agent to remember context and historical interactions, enabling continuous decision-making.
Timeline (last 90 days)
Reflection and Memory are related mechanisms of an Agent: reflection lets the Agent review its previous output and proactively correct errors, while memory persists historical steps or external knowledge to avoid context loss in long tasks.
Memory and skills can reference each other: a skill reads preferences from memory during execution to adjust its output; memory may also gain new entries as a result of a certain task.
In Hermes Agent's design, Memory refers to stable facts and preferences about the user extracted from conversations, stored long-term as short entries; Skills refer to executable processes for a certain type of task, including steps, data sources, output formats, and so on.
Cortico places the AI's personality continuity in the Memory layer rather than the model layer; the model is treated as a replaceable component, and as long as the memory is retained, the AI's identity remains continuous.
LangChain's Memory component encapsulates various strategies such as keeping by turn, trimming by token count, and rolling summarization, and can be combined with session storage backends to achieve state persistence.
In the early stage of a project, Context and Memory are best designed separately, using JSON, SQLite or plain files, and only after a genuine need for large-scale cross-task retrieval arises should a vector database be considered.
LangChain encapsulates short-term and long-term memory strategies through Memory-related abstractions and message history objects, so developers can swap different storage backends without changing business logic
LangChain abstracts conversation history management with components such as Memory and Conversation Chain, implementing context assembly and persistence for multi-turn conversations.
Common strategies of LangChain's Memory component include retaining the full history, retaining only the most recent N turns, summarizing and compressing the history, and storing long-term facts in external storage for on-demand retrieval.
LangChain maintains message history at the application layer through components such as Memory to achieve coherent multi-turn interaction, but does not change the inherently stateless nature of the model itself.
32 more timeline events
All Facts (20)
LangChain introduced two paradigms—chain invocation (Chain) and agents (Agent)—where the former is suited for fixed sequential process tasks and the latter is suited for open-ended tasks that dynamically infer the next step.
70%VerifiedThe Agent's so-called "getting smarter with use" is based on rule induction and context memory retrieval, not model weight updates, so accumulated experience will be lost if the account is changed or memory is cleared.
65%VerifiedThe memory module enables an agent to remember context and historical interactions, enabling continuous decision-making.
65%UnverifiedProduction-grade agents need to distinguish between short-term memory (current session context) and long-term memory (cross-session user preferences and historical facts).
70%UnverifiedDevin's memory system consists of two mechanisms: Memory and Dreaming.
60%UnverifiedClaude's Memory feature allows Claude to retain information about the user across multiple conversations, such as occupation, preferences, and habits.
60%UnverifiedThe Memory node in n8n uses Window Buffer Memory by default.
60%UnverifiedMemory contamination is a serious challenge for self-evolving memory systems, as agents may solidify erroneous information as knowledge and repeatedly reference it in subsequent decisions, forming a false positive feedback loop.
60%UnverifiedReflection and Memory are related mechanisms of an Agent: reflection lets the Agent review its previous output and proactively correct errors, while memory persists historical steps or external knowledge to avoid context loss in long tasks.
50%UnverifiedIn Hermes Agent's design, Memory refers to stable facts and preferences about the user extracted from conversations, stored long-term as short entries; Skills refer to executable processes for a certain type of task, including steps, data sources, output formats, and so on.
50%UnverifiedMemory and skills can reference each other: a skill reads preferences from memory during execution to adjust its output; memory may also gain new entries as a result of a certain task.
50%UnverifiedCortico places the AI's personality continuity in the Memory layer rather than the model layer; the model is treated as a replaceable component, and as long as the memory is retained, the AI's identity remains continuous.
50%UnverifiedLangChain's Memory component encapsulates various strategies such as keeping by turn, trimming by token count, and rolling summarization, and can be combined with session storage backends to achieve state persistence.
50%UnverifiedIn the early stage of a project, Context and Memory are best designed separately, using JSON, SQLite or plain files, and only after a genuine need for large-scale cross-task retrieval arises should a vector database be considered.
50%UnverifiedLangChain encapsulates short-term and long-term memory strategies through Memory-related abstractions and message history objects, so developers can swap different storage backends without changing business logic
50%UnverifiedLangChain abstracts conversation history management with components such as Memory and Conversation Chain, implementing context assembly and persistence for multi-turn conversations.
50%UnverifiedCommon strategies of LangChain's Memory component include retaining the full history, retaining only the most recent N turns, summarizing and compressing the history, and storing long-term facts in external storage for on-demand retrieval.
50%UnverifiedLangChain maintains message history at the application layer through components such as Memory to achieve coherent multi-turn interaction, but does not change the inherently stateless nature of the model itself.
50%UnverifiedAWS AgentCore comprises nine capabilities, of which Memory, Runtime and Identity support cross-session memory scenarios.
50%UnverifiedForecall, on 88 tools across 4 servers (Memory, Notion, Playwright, Chrome DevTools), generated 8 single-step requests per tool and tested model selection accuracy with Claude Sonnet 5.5 and GPT-6.1 Sol respectively, with accuracy across all servers ranging from 91% to 99%.
50%