Stage 3 · Teens · Agents
Memory: Short-Term vs Long-Term
How agents retain context within and across sessions.
Short-term memory is just the current context window — the conversation history and tool results included in the prompt for this session. It disappears once the session ends, and even within a session it's bounded: once a conversation grows past the context window, the oldest messages fall out entirely, whether or not they still matter.
Long-term memory persists information across sessions (and across that window limit): user preferences, facts learned earlier, prior decisions. This usually requires an external store — a database, a file, a vector store — that the agent explicitly reads from and writes to, rather than relying on the message history alone.