PratushR

Claude Archive Chats — Development skill for Claude Code

Development community

Claude Code skill: carry a project's session history to another machine.

How to install Claude Archive Chats

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

What Claude Archive Chats does

Claude Code skill: carry a project's session history to another machine.

Alternatives in Development

  • Create Handoff — You are tasked with writing a handoff document to hand off your work to another agent in a new session 10k ★
  • Claude Usage — A local dashboard for tracking your Claude Code token usage, costs, and session history 864 ★
  • Coding Agent Session Search — Unified TUI and CLI to index and search your local coding agent session history across 11+ providers (Codex, C 708 ★

README

archive-chats

A Claude Code skill that makes a project's **conversation history** travel with it.

Claude Code writes each session to a `.jsonl` file under `~/.claude/projects//`. That is the only copy — there is no cloud backup, and it lives outside your project folder. So cloning your project onto a new machine brings the code and none of the conversations. Open Claude Code there and the session picker is empty.

Worse, it does not stay put: transcripts older than `cleanupPeriodDays` — **30 days by default** — are deleted silently on startup, no warning and no undo ([docs](https://code.claude.com/docs/en/data-usage)). The skill checks whether you have raised that limit and offers to.

This skill copies those transcripts (and your memory files) into the project itself, strips the credentials out of them, sets up git to carry them safely, and writes a `MIGRATION.md` explaining how to put them back. Restored, sessions reappear in the picker — clickable and resumable, not a summary or an approximation.

Install

Clone straight into your personal skills directory:

git clone https://github.com/PratushR/claude-archive-chats ~/.claude/skills/archive-chats

Or download `SKILL.md` and drop it at `~/.claude/skills/archive-chats/SKILL.md`.

Skills are discovered when a session starts, so restart Claude Code afterwards.

Use

/archive-chats

**First run** creates `Chats/sessions/` and `Chats/memory/`, redacts credentials out of the copies, adds a `.gitattributes` line-ending guard, writes `MIGRATION.md`, adds a rule to your `CLAUDE.md`, and pushes to a private GitHub repo.

**Later runs** refresh the archive, redact again — a refresh re-imports whatever Claude has read since — and push. The `CLAUDE.md` rule also teaches Claude to refresh `Chats/` whenever you say "push to github", so the archive stays current on its own.

What it gets right

Things that are easy to get wrong doing this by hand:

  • **Credentials in the transcripts.