Export your AI coding chats into a single clean file

Your AI coding chat history lives scattered across local databases and hidden folders—this tool pulls it all into a single file.
Developer kruzovic7 released ai-data-extractor, a free open-source script that picked up 811 stars on GitHub this week. It automatically discovers and exports local conversation logs from 10 AI coding assistants, including Cursor, Claude Code, Windsurf, Cline, and Aider. The tool uses only Python's standard library and converts every session into a normalized JSONL format.
Why it matters: Local app databases get cleared or corrupted, wiping away months of context. Saving your structured conversation history gives you a permanent backup, a personal prompt archive, or clean training data for model fine-tuning.
Here's the gist: run python extract.py for an interactive menu, or use python extract.py --all to scan your system automatically. It detects macOS, Linux, and Windows path conventions to pull user messages, model replies, code diffs, tool calls, and timestamps without extra setup.
Finally, a quick way to own your prompt history before your editor's local database wipes it.
Sources
- AI Data Extractor on GitHub — https://github.com/kruzovic7/ai-data-extractor

