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.

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 --resumeor--continue, the session continues on the model it was using, except in the cases the docs list. Resuming from a terminal without-prestores the permission mode, with exceptions there too. - Not your launch flags. Apart from reopening a background session, for
claude --continueorclaude --resumeyou pass flags such as--mcp-config,--add-dirand--settingsagain, 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 run | What it does | Source |
|---|---|---|
claude --continue | Reopens the most recent session in the current directory | Anthropic session docs |
claude --resume | Opens the session picker; Ctrl+W widens it to all worktrees, Ctrl+A to every project on the machine | Anthropic session docs |
claude --resume <name> | Resumes a session you named with claude -n or /rename | Anthropic 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 it | Anthropic session docs |
claude --resume <transcript-path> | Resumes the session stored in that .jsonl file | Anthropic session docs |
| ReMynd's Claude switch | Sets up Claude Code with a ReMynd command and a skill, so it can search your screen history | ReMynd's Claude Code page |
How do I recover a Claude Code session after a crash?
Use this decision path, in order, cheapest step first:
- Go back to the same folder. Claude Code stores sessions per project directory, so open the terminal where you started.
- Run
claude --continue. The common workflows page says that if there isn't a session yet, it printsNo conversation found to continueand exits. - Open the picker and widen it. Run
claude --resume. If the session started in another worktree or project, press Ctrl+W or Ctrl+A. - Go straight to the file. By default, transcripts are JSONL at
~/.claude/projects/<project>/<session-id>.jsonl. Pass that absolute path toclaude --resume. The docs list a 30-day retention you can change withcleanupPeriodDaysin settings.json. - Pass your flags again. If the session used MCP servers or extra directories, add
--mcp-configor--add-dirto the resume command. - 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.
- Name the next one. Start with
claude -n auth-refactoror run/renamemid-session, soclaude --resume auth-refactorfinds 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:
- 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.
- In ReMynd, open Settings → Integrations and turn on Claude Code.
- In a terminal, run
~/.local/bin/remynd helpto check the command is there. - 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.
--continueand--resumedo 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