HeiGeAi

Agent History Rescue — Data skill for Claude Code

Data community

Recover Claude Code and Codex conversations that disappeared after switching accounts or providers, or rebuild them from an official data-export zip after a ban.

How to install Agent History Rescue

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

What Agent History Rescue does

Recover Claude Code and Codex conversations that disappeared after switching accounts or providers, or rebuild them from an official data-export zip after a ban. Restores into the desktop app and writes an agent-readable archive. 换账号、换 provider 或被封号后找回 Claude Code 和 Codex 对话。

Alternatives in Data

  • Archify — Agent skill for beautiful, verifiable architecture, workflow, sequence, data-flow, and lifecycle diagrams—self 17.2k ★
  • Global Stock Data — US stock market data for AI coding assistants — zero-auth, official sources 1.5k ★
  • AI Data Extraction — extract all your personal data history from cursor, codex, claude-code, windsurf, and trae 1.3k ★

README

agent-history-rescue

![version](https://img.shields.io/badge/version-3.0.1-blue.svg) ![node](https://img.shields.io/badge/node-%3E%3D16-brightgreen.svg) ![supports](https://img.shields.io/badge/supports-Claude%20Code%20%7C%20Codex-7c3aed.svg) ![license](https://img.shields.io/badge/license-MIT-green.svg) ![platform](https://img.shields.io/badge/platform-macOS%20%7C%20Windows%20%7C%20Linux-lightgrey.svg)

**Agent 历史救援 · 换账号、换 provider 或被封号后,找回 Claude Code 和 Codex 的对话 | Recover Claude Code & Codex history after switching accounts, providers, or a ban**

对话没丢,只是被挡在了外面,或者只剩一个导出包。这个工具把它们接回来。 Your conversations are not gone. This tool brings them back, even from just an export.

[症状](#你是否遇到这些-symptoms) • [这是什么](#这是什么-what-is-this) • [从导出包恢复](#从导出包恢复-recover-from-an-export) • [快速开始](#快速开始-quick-start) • [用法](#用法-usage) • [安全设计](#安全设计-how-it-stays-safe) • [常见问题](#常见问题-faq) • [English](#english)


你是否遇到这些 Symptoms

如果你正在搜下面任意一种情况,这个工具就是为你做的。**你的对话没有被删,只是被挡住、没显示出来,或者只剩一个官方导出包。**

**Claude Code**

  • 换了 Claude 账号后,Claude Code 的历史对话全没了
  • 升级或重装 Claude 桌面端后,Recents(最近对话)变成空的

**Codex**

  • 换了账号或 API provider 后,Codex 侧栏的历史会话不见了
  • 改了 model_provider / base_url / 自定义 provider 名后,旧会话从侧栏消失,归档的也找不到

**被封号 / 被锁号**

  • 账号被封,登不进去了,手里只有一个官方导出的 zip 数据包
  • 想把导出包里的对话恢复到现在用的 Claude Code 或 Codex 对话框
  • 想让现在用的 AI agent 读到这些旧对话的全部内容,接着上下文干活

In English: *"Claude Code history disappeared after switching accounts"*, *"Codex sidebar history missing after switching provider"*, *"my Claude account got banned, I only have the data export zip"*, *"how to import Claude data export into Claude Code / Codex"*, *"restore Claude conversations from export.zip"*, *"let my AI agent read my old Claude conversations"*.


这是什么 What is this

一个**Node 命令行工具**,把被挡住、没显示的对话重新接回你当前的桌面端。它有两种用法:

  1. 就地找回claude / codex):换账号、换 provider 后对话还在本机、只是被过滤掉了,把它们接回当前桌面端。
  2. 从导出包恢复import):账号被封、本机数据没了,只剩一个官方导出 zip,从里面重建对话,恢复进当前的 Claude Code / C