Chat History Importer banner
djc00p djc00p

Chat History Importer

AI community

Description

Import AI conversation exports (OpenAI ChatGPT and Anthropic Claude) into your agent's episodic memory. Parses export files, writes daily memory summaries, and deduplicates on re-runs. Trigger phrases: import chat history, ingest conversation export, import chatgpt export, import claude export, load AI conversation history.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

πŸ“₯ Chat History Importer

[![ClawHub Skill](https://img.shields.io/badge/ClawHub-Skill-blue)](#) [![Python 3.x](https://img.shields.io/badge/python-3.x-blue)](#)

**Chat History Importer** is a specialized utility designed to bridge the gap between your past AI interactions and your agent's future intelligence. It parses chat export files from **OpenCA (ChatGPT)** and **Anthropic (Claude)** and transforms raw JSON data into structured, searchable **episodic memory** for AI agents.

Rather than simply dumping raw logs, this tool organizes your information, creating dated, human-readable Markdown summaries (memory/episodic/YYYY-MM-DD.md). This approach enables your agent to "remember" historical context, instructions, and important milestones as if they were recent events. This foundation supports the following key features.


✨ Key Features

  • 🧠 Episodic Memory Generation: Automatically organizes conversations into daily Markdown files, making it easy for agents to browse history chronologically.
  • πŸ” Intelligent Auto-Detection: No need to specify formats. The importer automatically detects whether your source is OpenAI or Anthropic.
  • πŸ†” Identity Mapping: Transforms generic user: and assistant: labels into personalized names (e.g., Kael: and Deonte:) by reading from your workspace's IDENTITY.md or USER.md.
  • 🚫 Smart Deduplication: Uses unique Chat IDs to track imports. You can run the same export multiple times without creating duplicate entries in your memory.
  • πŸ› οΈ Integrated Workflow: Designed to work seamlessly with the chat-learnings-extractor to turn imported history into actionable insights.

πŸš€ Quick Start

1. Prepare your exports

  • OpenAI: Go to Settings $\rightarrow$ Data Controls $\rightarrow$ Export data. Look for conversations.json.
  • Anthropic: Go to Settings $\rightarrow$ Privacy $\rightarrow$ Export data. Unzip the provi