estack-migrate-claude-session-history

Migrate Claude Code session transcripts between project directories with path rewriting.

1|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/ElliotDrel/e-stack --skill estack-migrate-claude-session-history
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: estack-migrate-claude-session-history
Source: https://github.com/ElliotDrel/e-stack/tree/main/skills/estack-migrate-claude-session-history
Command: npx skills add https://github.com/ElliotDrel/e-stack --skill estack-migrate-claude-session-history

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill facilitates the migration of Claude Code sessions from one project to another, ensuring seamless continuity and access to chat history.

Core Features & Use Cases

  • Session Migration: Migrate entire Claude Code sessions (transcripts and subagent sidecar files) between projects.
  • Path Rewriting: Automatically rewrites all path encodings in the session files to reflect the new project directory.
  • Backup and Verification: Provides a full backup of the source and target directories for safety, along with end-to-end verification to ensure the migration's integrity.

Quick Start

Run the 'migrate-claude-session-history' skill with the command 'migrate this session to new-project'.

Frequently Asked Questions about estack-migrate-claude-session-history

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I move Claude Code chat history to a different project directory?

You can migrate Claude Code chat history by running the Skill, which transfers session transcripts and subagent sidecar files while rewriting path encodings to reflect the new project directory.

Does migrating Claude Code sessions preserve the original conversation context?

Yes, the migration preserves conversation context and metadata by transferring complete session files and updating internal path encodings to match the new project directory.

Do I need Python to migrate Claude Code session files?

Yes, Python is required because the Skill uses Python scripting for path encoding manipulation and data verification during the session migration process.

Is it safe to transfer Claude Code sessions, or is there a risk of data loss?

Transferring Claude Code sessions is safe because the process creates full backups of source and target directories and performs end-to-end verification to prevent data loss.

What is the best way to rewrite file path encodings when changing project directories?

The best way is using an automated migration script that updates all session metadata and path encodings to accurately reflect the new project directory structure.