The Memory Agent