Claude Code session
Claudepath
Move Claude Code projects without losing session history — CLI tool to update all path references after renaming or relocating a project directory
Install
pipx install claudepathFound in the project README. Check it for setup steps after installing.
git clone https://github.com/Mahiler1909/claudepath.gitFrom the README
claudepath
Move or rename Claude Code projects without losing session history, memory, and context.
The Problem
When you move or rename a project directory, Claude Code loses all your session history because sessions are keyed to the absolute path of your project. You end up with orphaned data in ~/.claude/projects/ and a fresh start.
claudepath fixes this by updating all path references in Claude Code's data files after a move.
Installation
Homebrew (macOS/Linux)
Usage
Move a project
Moves the directory on disk and updates all Claude Code references:
Remap after a manual move
If you already moved the directory yourself, just update Claude's references:
Preview changes (dry run)
See exactly what would change without modifying anything:
List tracked projects
Update claudepath
Update to the latest version — auto-detects whether you installed via Homebrew or pipx:
You can also force a specific method:
Restore from backup
List and restore from automatic backups:
Merge sessions when destination already has Claude data
If you opened Claude Code at the new location before running claudepath remap, Claude Code will have already created a new project directory there. Use --merge to combine the sessions from both directories:
Without --merge, claudepath will fail with a clear error suggesting you add the flag.
Full help
What it updates
Note: file-history/, todos/, tasks/, and shell-snapshots/ are keyed by session UUID, not by project path — they don't need updating.
Options
Environment Variables
Backup & Rollback
By default, claudepath creates a backup before making any changes:
The backup includes:
- The full project data directory (~/.claude/projects/{encoded}/)
- ~/.claude/history.jsonl
- Affected usage-data/session-meta/*.json files (token usage…Details
- Repository
- Mahiler1909/claudepath
- Language
- Python
- License
- MIT
- Last updated
- 3 July 2026
- Topics
- anthropicclaudeclaude-codeclideveloper-toolshomebrewpipxproject-managementpythonsession-history
FAQ
What is Claudepath?
Move Claude Code projects without losing session history — CLI tool to update all path references after renaming or relocating a project directory It is a session for Claude Code, from Mahiler1909/claudepath on GitHub.
How do I install Claudepath?
Run pipx install claudepath, then follow the setup in the README.
Is Claudepath popular?
Mahiler1909/claudepath has 25 GitHub stars and 7 forks. It was last updated on 3 July 2026.
More sessions & history
Eyes On Claude Code
27joe-re/eyes-on-claude-code
Claude Code session monitoring application.
Grok Build Desktop
26JaydenCJ/grok-build-desktop
Grok Build Desktop — a native desktop client for the official Grok Build CLI. Claude-Desktop-style coding UI: non-blocking streaming, conversations, MCP + Skills hub, prompt library. Tauri 2 + React 19 + Rust.
Claude Context Visualizer
28h4ni0/claude-context-visualizer
Visualize what's filling the context window of a Claude Code session
Contextzip
26jee599/contextzip
Cut Claude Code context 60-90%. Live stdout today, session-history compression coming v0.2.
Claude Code Recap
30noluyorAbi/claude-code-recap
Browse every recent Claude Code session across all your projects and jump back into any of them. Shows project path, summary, git branch, model, turn count, and a ready-to-paste resume command. --open re-opens a whole working set in terminal tabs. Local files only: no network, no telemetry.
Cortexes
25XBlueSky/cortexes
Personal knowledge vault plugin for Claude Code — session recording, memory distillation, and hybrid semantic + BM25 retrieval.
Browse the most popular Claude Code mods, all sessions & history, or the skills and MCP server directories.