A lightweight, zero-dependency, self-contained Windows application for viewing, searching, and rescuing your localized GitHub Copilot Chat history.
Are you a heavy GitHub Copilot user worried about losing chat histories when you switch or clear out VS Code workspaces? This script will automatically traverse your local VS Code workspace storage directory, identify fragmented conversations, and beautifully render both your legacy workspace.json payloads and modern incremental .jsonl stream files right from your local machine.
- Double-Click Executable: No web-server setup, Python installations, or Node.js modules are required.
- Universal Format Support: Handles reading Copilot's newer chronological
.jsonltext streams as well as older flattened.jsonhistories natively. - Secure & Local: Everything translates within an embedded edge container window via passing safe
file:///protocols locally; nothing leaves your machine. - Embedded Web Rendering: Features a responsive, native-feeling GUI that effortlessly formats inline codeblocks, tables, and messages using an injected lightweight
marked.jsmarkdown parser.
Simply download and double-click CopilotChatViewer.cmd.
- The script will dynamically read your
%APPDATA%\Code\User\workspaceStorage\folder to map existing sessions. - An elegant embedded interface will launch showing a sidebar of all detected projects grouped cleanly (even handling missing or renamed workspaces).
- Search and browse locally. Select an orphaned chat to review the messages.
You only need CopilotChatViewer.cmd provided in this repository! Download it to any local directory and run it.
The tool relies on PowerShell dynamically intercepting and decoding the chat files, but we wanted it to be accessible via standard double-click actions without triggering ExecutionPolicy roadblocks typically associated with raw .ps1 files. As such, the application is actually a hybrid Polyglot batch script that flawlessly bootstraps itself as a PowerShell process.