A lightweight toolchain for turning the text‑only Copilot CSV export (downloaded from Microsoft Accounts → Privacy → Copilot apps → Export all activity history) into a local Markdown archive with full‑text search and HTML preview.
This project consists of two components:
- CopilotArchiveSync -- processes the CSV and maintains a local Markdown archive
- CopilotArchiveSearch -- WPF application for fast, full‑text search and preview
Microsoft does not provide a Copilot export feature. Instead, you must manually download the privacy recovery CSV:
- Visit: https://account.microsoft.com/privacy/
- Navigate to: Your Copilot activity history → Copilot apps
- Click: Export all activity history
- Save the resulting
.csvfile (text‑only, no images, no attachments)
Only the Copilot apps CSV is supported at the moment.
The Microsoft 365 and Windows apps CSVs use different formats.
Choose or create a folder where your Markdown archive will live.
CopilotArchiveSync can use:
- the current working directory, or
- a path specified in CopilotArchiveSync.config, or
- a path passed as a command‑line argument
To enable search, allow Windows Search Indexer to index .md files:
- Open Indexing Options in Control Panel
- Add your archive folder
- Ensure
.mdis included in indexed file types
CopilotArchiveSync is designed to make CSV management effortless. Here’s how it works, in simple terms:
The tool automatically finds the newest Copilot apps CSV in your Downloads folder.
Your archive folder contains one "current CSV" that the tool uses to generate Markdown files.
When you run CopilotArchiveSync:
- If the archive folder has no CSV yet, the newest downloaded CSV is copied there.
- If the archive folder already has a CSV, and the newly downloaded one is newer, the tool:
- asks whether you want to replace the old file
- if you choose Yes, the old CSV is saved as a date‑tagged backup
- then the new CSV is copied in its place
Backups are kept automatically.
You never lose data.
If your archive CSV is newer than the downloaded one, the tool keeps your existing file.
If you delete conversations in the Copilot UI, future CSV downloads will not contain them.
CopilotArchiveSync will:
- keep the old Markdown files
- add or update only the conversations that still exist
Your archive remains complete.
If you rename a conversation in Copilot:
- the next CSV download will contain the new name
- CopilotArchiveSync will detect the rename
- the corresponding Markdown file will be updated
Your archive stays consistent with your Copilot naming.
The tool:
- reads all conversations
- creates new Markdown files
- updates existing ones
- stores backups of replaced Markdown files
- keeps your archive folder fully in sync
The sync is incremental -- only new or changed conversations are processed.
Basic usage:
CopilotArchiveSync.exe
Specify a custom archive path:
CopilotArchiveSync.exe c:\path\to\archive
Or configure it in:
CopilotArchiveSync.config
CopilotArchiveSearch is a simple, fast, dark‑themed WPF application.
Configure the archive folder in:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="ArchiveFolderPath" value="c:\path\to\archive"/>
</appSettings>
</configuration>- Instant search‑as‑you‑type
- List of matching conversations
- HTML preview via WebView2
- CTRL+F search inside the preview
- Dark color scheme similar to VS Code
Your archive will look like:
copilot-activity-history/
2024-11-05_Chat_001.md
2024-11-05_Chat_002.md
2024-11-06_Chat_001.md
...
copilot-activity-history.bak/
2024-11-05_Chat_001.md
...
copilot-activity-history.csv
copilot-activity-history.2024-11-05.csv
Each file contains:
- header with timestamps and message count
- conversation text
- stable formatting
- no images (CSV is text‑only)
- Only Copilot apps CSV is supported
- CSV contains text only
- No images, no attachments, no pages
- Other CSV formats (M365, Windows apps) may be added later
Apache License 2.0