https://github.com/dishangyijiao-labs/assistant-memory
Local indexer and keyword search for chat history from Cursor IDE, Copilot, Claude Code, Codex, and Gemini CLI. No login.
https://github.com/dishangyijiao-labs/assistant-memory
chat-history claude-code codex copilot cursor full-text-search gemini sqlite tauri
Last synced: 4 months ago
JSON representation
Local indexer and keyword search for chat history from Cursor IDE, Copilot, Claude Code, Codex, and Gemini CLI. No login.
- Host: GitHub
- URL: https://github.com/dishangyijiao-labs/assistant-memory
- Owner: dishangyijiao-labs
- License: mit
- Created: 2026-02-01T15:55:19.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2026-03-07T14:38:40.000Z (4 months ago)
- Last Synced: 2026-03-07T15:31:23.132Z (4 months ago)
- Topics: chat-history, claude-code, codex, copilot, cursor, full-text-search, gemini, sqlite, tauri
- Language: TypeScript
- Homepage: https://github.com/dishangyijiao/assistmem
- Size: 4.34 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AssistMem
[中文文档](README_zh.md)
Index your local AI chat history and make it available to any AI assistant via MCP — so Claude, Codex, Cursor and others can recall what you've discussed before.
## Features
- **Unified search** — Query all your AI chat history from one interface, regardless of which tool you used.
- **Local-only** — All data stays on your machine. No accounts, no telemetry, no cloud.
- **MCP integration** — Let your AI assistants query your past conversations for context via the Model Context Protocol.
- **SQLite FTS5** — Fast full-text search powered by SQLite.
## Supported Sources
| Source | Where data is read from |
|--------|------------------------|
| Cursor IDE | `~/Library/Application Support/Cursor/User/workspaceStorage/*/state.vscdb` (macOS) |
| Copilot (VS Code) | `~/Library/Application Support/Code/User/workspaceStorage/*/chatSessions/*.json` (macOS) |
| Cursor CLI | `~/.cursor/globalStorage/global-state.vscdb`, `~/.cursor/chats/` |
| Claude Code | `~/.claude/projects/*/*.jsonl` |
| Codex CLI | `~/.codex/sessions/` (JSONL/JSON) |
| Gemini CLI | `~/.gemini/tmp//chats/` |
## Install
Download the latest `.dmg` file from the [Releases](https://github.com/dishangyijiao/assistmem/releases) page, open it and drag AssistMem to your Applications folder.
## MCP Integration
AssistMem provides an MCP (Model Context Protocol) server, allowing AI assistants to query your local chat history for context. This closes the loop — your AI assistants can recall what you've discussed in other tools.
**Claude Code** and **Codex** can install the MCP server directly:
For other MCP-compatible clients (e.g. Cursor), add to your MCP settings:
```json
{
"mcpServers": {
"assistmem": {
"command": "npx",
"args": ["assistmem", "mcp", "--client", ""]
}
}
}
```
## Database
- **Path:** `~/.assistmem.db` (macOS/Linux) or `%LOCALAPPDATA%\assistmem\assistmem.db` (Windows). Override with `ASSISTMEM_DB_PATH`.
- **Schema:** `sessions` and `messages` tables with FTS5 full-text index on message content.
## License
MIT — see [LICENSE](LICENSE).