AI product Open source

ai-data-extractor

An open-source Python tool for extracting local chat histories from AI coding assistants into normalized JSONL. It supports ten sources, including Claude Code, Codex CLI, Cursor, Windsurf, Trae, Continue, Gemini CLI, OpenCode, Cline/Roo Code, and Aider, and preserves messages together with fields such as code context, diffs, tool calls, timestamps, session IDs, project paths, and model names when the source stores them.

View repository Mentioned in 1 video ↓

Overview

The extractor detects common macOS, Linux, and Windows data locations, reads JSONL, JSON, SQLite, and Markdown transcript formats, normalizes each conversation into a shared schema, and writes one JSON conversation per line. SQLite databases are opened read-only; Cursor has explicit handling for several known storage shapes, while Windsurf and Trae use best-effort heuristics for undocumented schemas. It provides an interactive CLI as well as options for extracting all or selected sources, listing detected installations, adding search paths, and merging output into one file.

The project uses only Python's standard library and requires Python 3.9 or newer. It includes guidance to scan extracted data for secrets and review proprietary code, API keys, and personal paths before sharing or using it for training. It is licensed under the MIT License.

What ai-data-extractor is used for

1 use taken from transcripts — each links to the moment in the video.

  • Pulls chat history out of 10 AI coding assistants (Claude Code, Codex, Cursor and more) into one normalized JSONL format, finding where each tool stores its chats and keeping code context, diffs and tool calls alongside each message.

Videos mentioning ai-data-extractor

1 in the library.