🔭 Copilot Sessions Manager — VS Code Extension
Browse, manage, and clean up your GitHub Copilot CLI sessions directly from VS Code.
Features
📋 Session Browser
- Sidebar tree view with sessions grouped by project
- Each session shows summary, relative date, and turn count
- Click any session to view its full conversation
💬 Conversation Viewer
- Full conversation with user/assistant messages
- Markdown rendering with syntax-highlighted code blocks
- Tabs: Conversation | Checkpoints | Plan | Files
- Copy code blocks to clipboard
⚡ Quick Actions (right-click any session)
| Action |
Description |
| Rename |
Update session name |
| Delete |
Remove session and all data |
| Move |
Reassign to a different project |
| Resume |
Open in a new terminal with copilot --yolo |
| Export |
Export full conversation as Markdown |
🧹 Cleanup
- Scan for empty and orphaned sessions
- Bulk delete with confirmation
Ctrl+Shift+P → "Copilot Sessions: Cleanup Empty Sessions"
🔍 Search
- Search sessions by name or content
Ctrl+Shift+P → "Copilot Sessions: Search Sessions"
Installation
- Open VS Code
- Go to Extensions (
Ctrl+Shift+X)
- Search for "Copilot CLI Sessions Manager"
- Click Install
Requirements
- VS Code ≥ 1.85
- GitHub Copilot CLI installed (
~/.copilot/ directory must exist)
How It Works
The extension reads directly from two data sources created by Copilot CLI:
~/.copilot/session-store.db — SQLite database (via sql.js, pure JS — no native modules)
~/.copilot/session-state/{session-id}/ — Per-session folders with events, plans, and artifacts
All operations are local. No data leaves your machine.
Commands
| Command |
Shortcut |
| Copilot Sessions: Refresh |
(view toolbar) |
| Copilot Sessions: Search Sessions |
(view toolbar) |
| Copilot Sessions: Cleanup Empty Sessions |
Ctrl+Shift+P |
| Copilot Sessions: View Session |
(click in tree) |
| Copilot Sessions: Rename Session |
(right-click) |
| Copilot Sessions: Delete Session |
(right-click) |
| Copilot Sessions: Move Session |
(right-click) |
| Copilot Sessions: Resume Session |
(right-click) |
| Copilot Sessions: Export to Markdown |
(right-click) |
Security
- Session IDs validated as UUIDs before any filesystem or database operation
- Path traversal protection on all file access
- All database access is local (no network calls)
| |