yzfly

LightHistory — AI skill for Claude Code

AI community

⚡ 本地优先的 AI 对话资产管理器 Local-first AI chat history manager — archive, search & export your Claude / Claude Code conversations.

How to install LightHistory

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

What LightHistory does

⚡ 本地优先的 AI 对话资产管理器 | Local-first AI chat history manager — archive, search & export your Claude / Claude Code conversations. 账号是平台的,对话是你的。

Alternatives in AI

  • Deepseek Pp — DeepSeek Web browser extension: AI agent workspace with MCP tools, memory, Skills, automation, web search, and 1.7k ★
  • Registry Broker Skills — AI agent skills for the Universal Registry - search, chat, and register 72,000+ agents across 14+ protocols 410 ★
  • Claude Chat Exporter — Claude Chat Exporter is a JavaScript tool that allows you to export your conversations with Claude AI into a w 407 ★

README

LightHistory Logo

LightHistory

**本地优先的 AI 对话资产管理器 · Local-first AI Chat History Manager**

账号是平台的,对话是你的。
把 Claude、Claude Code(未来还有 ChatGPT、Codex)的对话记录收归本地——永久留存、全文检索、随时导出。

[![License: CC BY-NC 4.0](https://img.shields.io/badge/License-CC_BY--NC_4.0-ff6700.svg)](https://creativecommons.org/licenses/by-nc/4.0/) [![Tauri 2](https://img.shields.io/badge/Tauri-2.x-24C8DB?logo=tauri&logoColor=white)](https://tauri.app) [![Vue 3](https://img.shields.io/badge/Vue-3.x-4FC08D?logo=vuedotjs&logoColor=white)](https://vuejs.org) [![Rust](https://img.shields.io/badge/Rust-backend-DEA584?logo=rust&logoColor=white)](https://www.rust-lang.org) [![Platform](https://img.shields.io/badge/Platform-macOS_|_Windows_|_Linux-lightgrey)](#-快速开始) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-ff6700.svg)](#-贡献)

[功能](#-功能特性) · [截图](#-界面预览) · [快速开始](#-快速开始) · [路线图](#-路线图) · [English](#english)


💡 为什么需要它

你和 AI 的每一次深度对话,都是思考的沉淀。但这些数据有三重风险:

  • 封号即清零 — claude.ai 账号被封,网页对话无法再访问
  • 平台会清理 — Claude Code 会定期删除本地会话正文,只留一行索引
  • 数据在别处 — 服务关停、政策变更、区域限制,都不由你决定

LightHistory 把它们统统收进你自己电脑上的 SQLite——**数据不经过任何服务器,不离开这台机器**。

📸 界面预览

**会话库 · 全文检索 · 对话还原**

会话库界面:左侧会话列表与全文搜索,右侧对话阅读视图
数据统计 多源导入
统计面板:会话数、消息数、输入字数、月度活跃图表 导入页:claude.ai 导出包与 Claude Code 一键导入

✨ 功能特性

功能 说明
📦 导入 claude.ai 导出包 官方 Export data 的 zip 直接导入,无需解压
⌨️ 导入 Claude Code 会话 一键扫描 ~/.claude/projects/,按项目归档
🚑 索引抢救 正文已被 Claude Code 清理的会话,自动从 sessions-index.json 抢回摘要与首条提问
🔍 中文全文检索 SQLite FTS5 + CJK 分词,命中高亮、直接定位到具体消息
🔁 增量去重 重复导入自动跳过未变化的会话,只更新有变动的
👥 多账号管理 自动识别导出包中的账号信息,多账号数据一库收纳、按账号筛选
📄 多格式导出 单会话 Markdown