Chasm extracts and unifies chat sessions from AI coding assistants like GitHub Copilot, Cursor, and more. Never lose your AI conversations again.
✨ Features
- 🔍 Harvest - Extract chat sessions from VS Code, Cursor, Windsurf, and other editors
- 🔀 Merge - Combine sessions across workspaces and time periods
- 📊 Analyze - Get statistics on your AI assistant usage
- 🔌 API Server - REST API for building custom integrations
- 🤖 MCP Tools - Model Context Protocol support for AI agent integration
- 🗃️ Universal Database - SQLite-based storage that normalizes all providers
📦 Installation
From crates.io
From source
Pre-built binaries
Download from GitHub Releases:
| Platform | Download |
|---|---|
| Windows x64 | chasm-windows-x64.zip |
| macOS x64 | chasm-darwin-x64.tar.gz |
| macOS ARM | chasm-darwin-arm64.tar.gz |
| Linux x64 | chasm-linux-x64.tar.gz |
Docker
🚀 Quick Start
List discovered workspaces
┌────────────────────────┬──────────────────┬──────────┬────────────┐
│ Name │ Provider │ Sessions │ Updated │
├────────────────────────┼──────────────────┼──────────┼────────────┤
│ my-project │ GitHub Copilot │ 15 │ 2026-01-08 │
│ another-project │ Cursor │ 8 │ 2026-01-07 │
│ open-source-contrib │ GitHub Copilot │ 23 │ 2026-01-06 │
└────────────────────────┴──────────────────┴──────────┴────────────┘
Show sessions for a project
Harvest sessions from VS Code
Export a session to Markdown
Start the API server
📖 CLI Reference
Core Commands
| Command | Description |
|---|---|
chasm list workspaces |
List all discovered workspaces |
chasm list sessions |
List sessions (optionally filtered by workspace) |
chasm show session <id> |
Display full session content |
chasm show path <path> |
Show sessions for a project path |
chasm find workspace <pattern> |
Search workspaces by name |
chasm find session <pattern> |
Search sessions by content |
Data Management
| Command | Description |
|---|---|
chasm harvest |
Scan and import sessions from editors |
chasm merge workspace <name> |
Merge sessions from a workspace |
chasm export session <id> |
Export session to file |
chasm import <file> |
Import sessions from file |
Server
| Command | Description |
|---|---|
chasm api serve |
Start the REST API server |
chasm mcp serve |
Start the MCP tool server |
Options
🔌 API Server
Start the REST API server for integration with web/mobile apps:
Endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/health |
Health check |
| GET | /api/workspaces |
List workspaces |
| GET | /api/workspaces/:id |
Get workspace details |
| GET | /api/sessions |
List sessions |
| GET | /api/sessions/:id |
Get session with messages |
| GET | /api/sessions/search?q= |
Search sessions |
| GET | /api/stats |
Database statistics |
| GET | /api/providers |
List supported providers |
Example
🤖 MCP Integration
Chasm provides Model Context Protocol tools for AI agent integration:
Available Tools
chasm_list_workspaces- List all workspaceschasm_list_sessions- List sessions in a workspacechasm_get_session- Get full session contentchasm_search_sessions- Search across all sessionschasm_get_stats- Get database statistics
🗃️ Supported Providers
Editor-based
- ✅ GitHub Copilot (VS Code)
- ✅ Cursor
- ✅ Windsurf
- ✅ Continue.dev
Local LLMs
- ✅ Ollama
- ✅ LM Studio
- ✅ GPT4All
- ✅ LocalAI
- ✅ llama.cpp / llamafile
Cloud APIs
- ✅ OpenAI / ChatGPT
- ✅ Anthropic / Claude
- ✅ Google / Gemini
- ✅ Perplexity
📁 Database
Chasm stores all data in a local SQLite database:
| Platform | Location |
|---|---|
| Windows | %LOCALAPPDATA%\csm\csm.db |
| macOS | ~/Library/Application Support/csm/csm.db |
| Linux | ~/.local/share/csm/csm.db |
Schema
Workspaces ──< Sessions ──< Messages
│
├──< Checkpoints
└──< ShareLinks
🛠️ Development
Prerequisites
- Rust 1.75+
- Git
Building
Running tests
Running the TUI
📜 License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE or http://opensource.org/licenses/MIT)
at your option.
🤝 Contributing
Contributions are welcome! Please read our Contributing Guide and Code of Conduct.
🔒 Security
For security issues, please see our Security Policy.