How Do Agents Remember Anything Between Runs?
Sep 17, 2026LangChain
Summary
The post explains the distinction between an agent's context window (short-term memory) and persistent storage mechanisms (long-term memory). It clarifies that the context window is limited by the LLM's token capacity, while long-term memory involves storing and retrieving information across multiple agent interactions. This foundational explanation is key to understanding agent state management.
More from the Agent Memory Management trail
- How to go from your agent's traces to a fine-tuned model in one workflow
- Introducing LangSmith Trajectories: A readable view of every agent session
- Introducing LangSmith Engine v2: Detect and ship fixes to agents faster
- Introducing LangSmith Custom Apps: Build custom interfaces around your agent data
- Schedules for Managed Deep Agents: Cron jobs, prompts, and Slack delivery