Use this skill to store the chat history to MongoDB
This extension provides a persistent memory layer for the Gemini CLI using MongoDB Atlas. It enables the AI to "remember" previous interactions, user preferences, and project-specific context across different terminal sessions.
store_memorySaves a specific fact or interaction to the long-term database.
fact (string), category (string: 'preference', 'project', 'snippet')recall_contextSearches the database for information relevant to the current prompt.
query (string)$vectorSearch against the memory collection.clear_sessionWipes the short-term memory for the current session ID.
Add your MongoDB connection string to your environment variables:
The MONGODB_URI value will be read from the mongo.config.json file.
EXPORT MONGODB_URI="mongodb+srv://<user>:<password>@cluster.mongodb.net/gemini_memory"
EXPORT VECTOR_INDEX_NAME="vector_index"37:["$","$L3c",null,{"content":"$3d","frontMatter":{"name":"Memory Extension","description":"Use this skill to store the chat history to MongoDB"}}]