A Three-Layer Memory Architecture for LLMs (Redis + Postgres + Vector) MCP

Dev.to AI
Generative AI

GitHub: I posted v1 about a month ago. The architecture has been significantly reworked since then. The premise: We've been optimizing the wrong variable. The next leap isn't a better prompt. It's an AI that actually knows you, your project, and your mistakes. Your AI knows every Redis command ever documented. It doesn't know that your Redis threw NOAUTH last Tuesday because someone forgot the en var. Knowledge without experience. Close the session, and it all evaporates. Goldfish remember for months. Our AIs remember for zero seconds. RAG builds a library. Memento builds experience.