Long-term agentic memory: three memory types, two update paths
- Source
- x.com
- Publisher
- Andrew Ng
- Date
New short course: Long-Term Agentic Memory with LangGraph. Learn to build an agent with long-term memory in this course developed in collaboration with @langchain taught by its Co-Founder and CEO, @hwchase17! Personal assistance and productivity tasks have become important use cases for agents. An important feature of an AI assistant, such as a coding or calendar assistant, is its ability to keep improving over time from its experience. Agent memory is the key capability that enables this. To add memory to an agent, you must first figure out what to store and what to retrieve when it is time to use the information. Additionally, you’ll have to decide when to update the stored information. For example, you might update in each iteration loop of the agent or perform updates in the background, with a helper agent. In this course, you will learn a mental framework to build agents with long-term memory. You'll create a useful email assistant that can respond, ignore, and notify using writing, scheduling, and memory-management tools. You’ll develop your agent's memory by adding facts to its memory store, provide examples to learn the user's preferences, and optimize system prompts…
Context
Giving an AI assistant long-term memory is a set of design decisions, not a single switch. In the announcement of the short course Long-Term Agentic Memory with LangGraph, taught by LangChain co-founder and CEO Harrison Chase, Andrew Ng names them: what to store, what to retrieve when it is time to use the information (the course video notes this can be much later), and when to update what has been stored. The post frames memory as what lets an assistant, such as a coding or calendar assistant, keep improving from its own experience.
The course answers "what to store" by sorting memory into three kinds. Semantic memory holds facts, such as a user's preferences. Episodic memory holds experiences of how the agent handled tasks before; in the course's email assistant it takes the form of few-shot examples (sample past cases shown to the model) that help decide whether to ignore an email, respond or notify the user. Procedural memory holds rules and instructions; the video's example is a calendar agent told to schedule a DeepLearning.AI class every Thursday afternoon, and the course stores it as a that is revised with feedback. For "when to update," it describes two paths: writing memory immediately, inside the agent's working loop (the "hot "), or in a separate background run by a helper agent. The course page builds the email assistant up one memory type at a time. The materials present this as a mental framework rather than a measured result; a later study in Intel, When Does Memory Help?, takes up the cost-aware evaluation of long-term memory in tool-using agents.
- system prompt — The standing instructions a model receives before any user input — defining its role, rules, tools, and tone for the whole conversation.
- Path — A description of a file or folder location, written using directory names and separators.
- Process — A running instance of a program, with its own working memory, open files and identity.
- Agent memory — Information an agent can persist and retrieve beyond the immediate context.







