← all articles

Recover Claude Code session after a crash (and the context on your screen)

Claude Code crashed or your computer restarted, and the session you were deep in looks gone.

To recover Claude Code session history, open a terminal in the same project folder and run claude --continue, because Anthropic's docs say Claude Code saves sessions continuously to local transcript files.

For the part the transcript never had, like the docs tab or Slack thread you were reading, ReMynd's Claude switch sets up Claude Code with a ReMynd command and a skill, so Claude Code can search your screen history. If --continue finds nothing, run claude --resume and widen the session picker. ReMynd works from what was on your screen after install.

Lost a Claude Code session and the context you had on screen with it? Let Claude Code search what you saw. Download the ReMynd desktop app

Is a crashed Claude Code session gone for good?

In our view, the conversation itself is the part most likely to survive a crash. What you lose is the stuff around it, like the flags you launched with and whatever you were looking at outside the terminal. The screen part was never in the session to begin with.

Diagram: after a crash, the transcript comes back, launch flags need passing again, background tasks are gone, and what was on your screen was never in the session

Illustration made for this post: resume brings back the conversation, and the context around it is on you.

What comes back when you resume a Claude Code session?

Anthropic's session docs, checked December 2, 2026, list what a resume does and doesn't restore:

  • The conversation. Messages, tool calls and results come back from the transcript. If the session was compacted, it opens at a Conversation compacted row, and the messages that the last compaction summarized aren't loaded again.
  • The model and the permission mode. With claude --resume or --continue, the session continues on the model it was using, except in the cases the docs list. Resuming from a terminal without -p restores the permission mode, with exceptions there too.
  • Not your launch flags. Apart from reopening a background session, for claude --continue or claude --resume you pass flags such as --mcp-config, --add-dir and --settings again, because Claude Code doesn't restore them.
  • Not background work. Background Bash and monitor tasks aren't restored. A background subagent or command that ended with the old process shows up in the transcript as a note that it didn't finish.
  • Not your screen. In our view this is the part that hurts most after a crash, and Anthropic's best practices already tell you to hand Claude the evidence instead of describing it. The error you read in another terminal or the docs page you had open never went into the transcript.

Which command gets which session back?

Each entry point finds sessions a different way.

What you runWhat it doesSource
claude --continueReopens the most recent session in the current directoryAnthropic session docs
claude --resumeOpens the session picker; Ctrl+W widens it to all worktrees, Ctrl+A to every project on the machineAnthropic session docs
claude --resume <name>Resumes a session you named with claude -n or /renameAnthropic session docs
claude --resume <session-id>Works from any directory and searches other projects for that ID; the cross-project search resolves it only when exactly one other project holds a transcript for itAnthropic session docs
claude --resume <transcript-path>Resumes the session stored in that .jsonl fileAnthropic session docs
ReMynd's Claude switchSets up Claude Code with a ReMynd command and a skill, so it can search your screen historyReMynd's Claude Code page

How do I recover a Claude Code session after a crash?

Use this decision path, in order, cheapest step first:

  1. Go back to the same folder. Claude Code stores sessions per project directory, so open the terminal where you started.
  2. Run claude --continue. The common workflows page says that if there isn't a session yet, it prints No conversation found to continue and exits.
  3. Open the picker and widen it. Run claude --resume. If the session started in another worktree or project, press Ctrl+W or Ctrl+A.
  4. Go straight to the file. By default, transcripts are JSONL at ~/.claude/projects/<project>/<session-id>.jsonl. Pass that absolute path to claude --resume. The docs list a 30-day retention you can change with cleanupPeriodDays in settings.json.
  5. Pass your flags again. If the session used MCP servers or extra directories, add --mcp-config or --add-dir to the resume command.
  6. Bring back what was on screen. Ask Claude Code something like "search ReMynd for the stack trace from my other terminal before the crash." This needs ReMynd running before the crash.
  7. Name the next one. Start with claude -n auth-refactor or run /rename mid-session, so claude --resume auth-refactor finds it straight away.

How does ReMynd bring back what you saw?

ReMynd records your screen after you grant permission and keeps the searchable index on your computer. The setup on a Mac, from its Claude Code page:

  1. Download ReMynd for Mac, grant screen-recording permission, and let it run. There is nothing to search until it has been recording. Apple's guide says that permission lives in System Settings under Privacy & Security, Screen & System Audio Recording.
  2. In ReMynd, open Settings → Integrations and turn on Claude Code.
  3. In a terminal, run ~/.local/bin/remynd help to check the command is there.
  4. After you resume, ask Claude Code about something you saw before the crash, like a stack trace, a config value, or a page you had open.

You can run the same command yourself, like ~/.local/bin/remynd search "design review". That page calls it context at the moment you ask, not a copy of your screen that Claude keeps.

What are the limits?

  • ReMynd doesn't restore Claude Code's chat. --continue and --resume do that.
  • ReMynd captures only what is on your screen, starting from install. It cannot recover past work, and it cannot see background or cloud agents.
  • Claude Code does not get ReMynd's MCP server automatically. It gets the ReMynd command and a skill, and the CLI page has the steps to add the helper yourself.
  • Claude Code uses Anthropic's model under your account, so what it retrieves may be sent to that model, the same way anything you paste into it would be.
  • The steps above are for the CLI, as of December 2026. Anthropic says the desktop app, claude.ai/code and the VS Code extension each keep their own session list.
  • On a Mac, ReMynd needs Apple silicon and macOS 15 or later. ReMynd also runs on Windows 11 (x64 or arm64).

The short version

Resume first, then bring back the context from your screen. If the resumed session starts repeating a fix you already ruled out, read Claude Code keeps suggesting the fix I already tried. If the session came back but the agent's file edits need undoing, Claude Code rewind covers what /rewind restores and what it can't.

Don't want a crash to wipe out the context you had on screen? Let Claude Code search what you saw. Download the ReMynd desktop app

Pick up where you left off · 0:47 · watch with transcript →

common questions

How do I recover a Claude Code session after a crash? +
Open a terminal in the same project folder and run claude --continue. Anthropic's docs say sessions are saved continuously to local transcript files, and --continue reopens the most recent session in the current directory. If you want a different one, run claude --resume to open the session picker.
Why does claude --resume not show my session? +
The picker starts narrow. Anthropic's docs say Claude Code stores sessions per project directory, and by default the picker shows sessions from the current worktree. Press Ctrl+W to widen to all worktrees of the repository or Ctrl+A to widen to every project on the machine.
Where are Claude Code sessions stored? +
By default, as JSONL at ~/.claude/projects/<project>/<session-id>.jsonl. You can resume one directly with claude --resume and the absolute path to that file.
Does a resumed session bring back my MCP servers? +
Not on its own. Apart from reopening a background session, Anthropic's docs say that for claude --continue or claude --resume you pass flags such as --mcp-config and --add-dir again, because Claude Code doesn't restore them.
Can ReMynd restore my Claude Code chat? +
No. Claude Code's own --continue and --resume bring the conversation back. ReMynd covers what was on your screen outside the session, like a docs tab or a Slack thread, and it captures only what is on your screen, starting from install.