Claude Code Session Recovery — Development skill for Claude Code
Diagnose and repair Claude Desktop session metadata bugs on Windows and Mac — missing conversation history, lost transcripts, duplicate sessions, junction-induced splits, lost groupings.
How to install Claude Code Session Recovery
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open BasedGPT/claude-code-session-recovery and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code Session Recovery does
Diagnose and repair Claude Desktop session metadata bugs on Windows and Mac — missing conversation history, lost transcripts, duplicate sessions, junction-induced splits, lost groupings.
Alternatives in Development
- Om Tidy — Self-maintenance pass — acts on every hygiene flag: archives completed work, groups loose clusters, splits ove 4.6k ★
- Engage.Crash — Crash → root cause → reachability → empirical exploitability verdict (native bugs) 348 ★
- Bm Doctor — Diagnose and recover basemind when it isn't working (MCP tools missing/erroring, "no index", dead server) — ru 94 ★
README
Claude Code Desktop Session Recovery & Repair Tools
[](https://www.python.org/downloads/) [](LICENSE)
Supports Windows and macOS. Windows MSIX (Microsoft Store) install: `diagnose.py` works; write-bearing repair scripts do not — see [MSIX note](#msix-microsoft-store-installs) below.
Something broke somewhere with your sessions in Claude Desktop. Because I'm a bit special I've broken my Desktop sessions in lots of different ways. I made this to help you diagnose and hopefully fix it if something has gone wrong for you too.
Releases
Every change to this public repository is versioned. `VERSION`, the matching annotated `vX.Y.Z` tag, and the exact tagged commit are checked by [the release process](docs/release-process.md).
Fix it with Claude Code (or any AI)
This runs best from a **Claude Code CLI session** (or Codex/ChatGPT), not from Claude Desktop because the Desktop app needs to be closed to apply the fixes. If you run it from Desktop, the tool will detect it, warn you and give you instructions if you're still more comfortable running from Claude Desktop.
**Step 1 — open a CLI session**
Open a terminal (Windows Terminal, PowerShell, cmd, or macOS Terminal), then run:
claude
That starts Claude Code in your terminal.
**Step 2 — paste this prompt**
My Claude Code sessions are broken on Windows or macOS. Please help me fix them using https://github.com/BasedGPT/claude-code-session-recovery
1. Clone the repo and cd into it: `git clone https://github.com/BasedGPT/claude-code-session-recovery` then `cd claude-code-session-recovery`
2. Read AGENTS.md — it's written for AI assistants and explains how to use this repo safely
3. Read docs/session-recovery.md to understand the symptoms and repair tools
4. Run `python tools/diagnose.py` — it auto-detects all file paths from the environment, no configuration
Related Skills
Detecting Abstraction Decay In Context 20260815
Analyzing summarized context to locate missing operational metadata, provenance, or state information lost dur
Theclaude
A CLI tool that automatically scans Claude Code conversation logs to rescue deleted or lost files with smart f
Trackiq Amazon Listing Monitor
TrackIQ: Amazon Listing Monitor — an Agent Skill that watches listings daily and alerts only when something ac
Reparo
Repair — fix the bugs and apply the patch
03 Repair Batch Consistency
Repair Prompt: Batch Consistency and Mirror Recovery
Formux
Repair a form around completion, recovery, and trust
Related Agents
Packager Troubleshooter
Use this agent when packaging fails or needs changes — yarn build:package:windows mac linux, PyInstaller error
Sstack Concurrency Attacker
Concurrency lens attacker. Attacks every mapped surface for parallel race conditions, TOCTOU windows, double-s
Bead Recovery Specialist
Use this agent for bd/Dolt incident response — a dolt-server that won't start or has orphaned, server sprawl,