Lesson

Capture: Transforming Cursor AI Conversations into Persistent Knowledge

Capture and organize your AI chats into a searchable knowledge base using Cursor’s Export Chat and Basic Memory—never lose valuable context again.

Access
Included
Transcript
Needs source

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.

Workflow demonstrated in this lesson:

  • Find and export a past conversation from the chat history.
  • Save the exported chat as a Markdown file in your memories directory.
  • Add YAML frontmatter to make the memory discoverable by the AI.
  • Prompt the AI to find and summarize the saved conversation to inform a new task.
  • Use a simple CLI command to ensure your memory database stays in sync with your files.

Key benefits:

  • Create a persistent knowledge base: Turn ephemeral chats into permanent, searchable project assets.
  • Provide deep context: Give the AI a complete history of past decisions and implementations.
  • Ensure consistency: Avoid repeating yourself and help the AI build upon previous work.
  • Simple management: Easily organize memories as simple Markdown files within your project.

Saving a Conversation as a Memory

The first step is to locate and export the conversation you want to save.

  1. Open the Agent/Chat panel and click the "Show Chat History" icon.
  2. Find the desired conversation and open it.
  3. Click the "..." menu and select "Export Chat".
  4. This will save the entire conversation as a Markdown file. You can then move this file into a dedicated folder, such as memories/conversations, to keep your project organized.

Making the Memory Discoverable

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
---

Recalling a Memory in a New Chat

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.

Keeping Memories in Sync

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