Long term memory for agents?

Does anyone have best practices to share on implementing long term memory for agents? E.g., personalization based on chat history. Based on the memgpt paper it seems best practices would be to have a secondary agent that can read/write long term context into a database, like a Redis cache. Curious if anyone has tuned a model for this?