LangChain

How Do Agents Remember Anything Between Runs?

Sep 17, 2026LangChain
SummaryAI, from the source post

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