Claude Archive Chats — Development skill for Claude Code
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.
Related Skills
Claude Code Session To New Account Full
/handoff + /continue: carry a Claude Code session over to another account or session Install For one project,
Ccid
Find any Claude Code session ID in a keystroke, and hand the session to Codex or another agent to carry on. Me
Sjresume
scrubjay — continue a session from ANOTHER machine here (hand-off), then /resume it
Bough
Visualize your Claude Code session history as a diagram of the work you actually did: days, tasks, prompts and
Claude Session Explorer
Second Brain: a private, local dashboard for your Claude Code history. Mind map, sessions, agents, what's inst
Session Knowledge
Turn your Claude Code session history into a searchable local knowledge base — 13 MCP tools, pure stdlib, noth
Related Agents
Session Logger
Use this agent to consolidate temp logs into official session logs. Run this to process work that was automati
Sub Coordinator
SUB coordinator — a seat-scoped coordinator on its own machine, working under a HUB coordinator on another mac
Xcode Release Manager
Use this agent when you need to create a new release build of the iOS app. This includes building the app for