@plosson/mvcp
v0.1.1
Published
Move Claude Code project history when you relocate a project directory
Maintainers
Readme
mvcp
Move Claude Code project history when you relocate a project directory.
Claude Code stores conversation history in ~/.claude/projects/ using encoded directory paths (slashes replaced with hyphens). When you move a project, the history gets orphaned. mvcp fixes that.
Install
# npm
npm install -g @plosson/mvcp
# or run directly
npx @plosson/mvcp mv /old/path /new/pathUsage
Move project history
# After moving your project from /home/user/old/project to /home/user/new/project
mvcp mv /home/user/old/project /home/user/new/projectDry run
mvcp mv --dry-run /old/path /new/pathList all project histories
mvcp lsHow it works
Claude Code encodes directory paths by replacing / with -:
/home/user/projects/myapp → -home-user-projects-myappThese are stored in ~/.claude/projects/. When you move a project, mvcp renames the history directory to match the new location.
