Don't let valuable context from past AI conversations disappear. This lesson walks you through a powerful workflow to save your Cursor chat history as structured Markdown files, making them part of your project's long-term memory. You'll learn how to export, organize, and tag your conversations so the AI can recall them later, providing deep context for new tasks and ensuring continuity in your work.
memories directory.The first step is to locate and export the conversation you want to save.
memories/conversations, to keep your project organized.For the AI to find this memory, you need to add YAML frontmatter to the top of the Markdown file. This provides essential metadata for the Basic Memory system.
---
title: Prompt Builder Upgrade Implementation Plan
type: conversation
permalink: conversations/prompt-builder-upgrade-implementation-plan
---
Once the memory is saved and tagged, you can reference it in a new conversation. The AI will use its search_notes tool to find the relevant memory based on your prompt.
Please use basic memory to find my conversation about the prompt builder and summarize it. We may want to rethink how we approach this.
The AI will find the memory file, read its contents, and provide a summary based on that past conversation, giving it the full context it needs to proceed.
The Basic Memory system uses a local database to make searching efficient. If you manually add, edit, or remove memory files, you may need to re-sync the database. You can do this easily from the terminal.
See all available commands:
bm --help
To sync your Markdown files with the memory database:
bm sync
[00:00] One of the best things to capture as memories are your past conversations, and you can open your agent and navigate your conversations from here in the show chat history, find the one you want. Let's grab this one, and then we could select the dots again and say export chat. This could export our chat to our downloads folder. We'll open it here and we have a markdown file, which we could then simply just drag and drop into our memories. I'm actually going to create a folder called conversations, then drag this file into here.
[00:32] Now you'll probably want to give it a title and a type and a note. So we'll copy and paste these up here and drop in this front matter and then cursor tab does its magic and suggests the perfect everything for that. So I just hit tab and selected everything there and I can go and start a new conversation and say please use basic memory to find my conversation about the prompt builder and summarize it. We may want to rethink how we approach this. Then you'll see basic memory will reach out to search your notes, it'll read the note, and if you look at what it searched, it searched for prompt builder and it found an array of results, and then once it found the note that it needed you can see it found its identifier and then it read in our file.
[01:17] So now we have a nice summary of a conversation we had in the past. Now if for some reason this fell out of sync, if you run the bm –help command you will see that there is a sync command. Because the memories are based on Markdown files but it still uses a SQLite database for the searching and querying, you could just run bmsync to make sure everything is up to date if you're manually editing files.