BasedGPT

Claude Code Session Recovery — Development skill for Claude Code

Development community

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

[![Python 3.11+](https://img.shields.io/badge/python-3.11%2B-blue.svg)](https://www.python.org/downloads/) [![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](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