AI agent forgets context between sessions
- Cause
- The agent is relying on the current context window or chat history instead of a durable memory write path.
- Inspect
- Check whether the MCP server is connected, whether a memory was written, and whether a new session calls retrieval before answering.
- Fix
- Add a scoped MCP memory server, save source-linked facts through the write path, and test recall in a fresh session.