Last updated: November 25, 2026
TL;DR
Claude Code saves every conversation locally as you work, so you can pick one up after you exit or run /clear. Run claude -c to reopen the most recent session in the current directory, claude -r <name> or claude -r <session-id> to open a specific one, or /resume inside a running session to open the picker. Name a session with claude -n or /rename so it's easy to find. A resume brings back the conversation, the model and, from a terminal, usually the permission mode, but not launch flags such as MCP config or added directories, so pass those again. Everything below comes from Anthropic's sessions docs and CLI reference.
Pick the right way back in
| Command | What it does |
|---|---|
claude -c | Reopens the most recent session in the current directory |
claude -r | Opens the session picker |
claude -r auth-refactor | Resumes the session named auth-refactor |
claude -r <session-id> | Resumes the session with that ID, from any directory |
claude -r auth-refactor "Finish this PR" | Resumes it and sends a first prompt |
/resume | Switches to another session from inside the one you're in |
If there's no session in the directory yet, claude -c prints No conversation found to continue and exits. In a script, claude -c -p "Check for type errors" continues the last conversation without opening the interactive view; our headless guide covers that mode.
Name sessions so you can find them
A name makes a session resumable by name and easy to spot in the picker. There are three ways to set one from the CLI:
- At startup:
claude -n auth-refactor. - Mid-session:
/rename auth-refactor. The name also shows on the prompt bar. - In the picker: highlight a session and press
Ctrl+R.
A session you never name still gets a generated title, a short summary of your first prompt, and that title works with claude -r too. The default display name, such as my-app-3f, does not: it identifies running sessions but isn't a resume handle.
If a name matches more than one session, claude -r <name> opens the picker with the name filled in as a search, while /resume <name> reports an error.
Use the session picker
Run claude -r with no argument, or /resume, to open it. By default it lists sessions from the current worktree and from sessions elsewhere that added this directory with /add-dir.
| Shortcut | Action |
|---|---|
โ / โ or k / j | Move between sessions |
Enter | Resume the highlighted session |
Space | Preview the session |
Ctrl+R | Rename the highlighted session |
/ or start typing | Search. Paste a pull or merge request URL to find the session that created it |
Ctrl+W | Widen to all worktrees of the repository |
Ctrl+A | Widen to every project on this machine |
Ctrl+B | Filter to the current git branch |
Esc | Leave the picker or the search |
Picking a session from another worktree of the same repository resumes it in place. Picking one from an unrelated project copies a cd and resume command to your clipboard instead.
Know what a resume brings back
- ๐ฌ The conversation: messages, tool calls and results. A compacted session opens at the compaction and continues from its summary; our /compact guide covers what that keeps.
- ๐ง The model the session was using, with a few exceptions in the docs.
- ๐ The permission mode, when you resume from a terminal with
claude -c, orclaude -rwith an ID or a name that matches one session. A session that ended in bypass mode starts in the mode a new session would. From the picker or/resume, a session comes back in plan mode if it ended there; otherwise it takes the mode your launch or current session is in. Our permissions guide explains the modes. - ๐ฏ An active goal and session-scoped scheduled tasks, with limits.
- โ Not interrupted tools. A tool that was still running when the last process ended isn't run again, and background work that ended with it shows up as a note that it didn't finish.
What it doesn't bring back are the flags you launched with: MCP server config, plugin directories, added directories, extra settings, fallback models and tool allow or deny lists. Pass them again on the resume command. Directories you added mid-session with /add-dir need passing at launch too.
Avoid the traps
- Two terminals, one session. Resuming the same session in two terminals at once makes both write to one transcript, and messages from one can go missing later. To try a different approach, run
/branchinside the session instead: it copies the conversation into a new session and leaves the original in the picker. - Script sessions are hidden. Sessions started with
claude -por the Agent SDK, and sessions whose first prompt was/loop, don't appear in the picker or inclaude -c. Resume one withclaude -r <session-id>. - Transcripts expire. They're stored as JSONL under
~/.claude/projects/and kept for 30 days by default; thecleanupPeriodDayssetting changes that. Our settings guide covers where settings live. - Rewind still works. Checkpoints are saved with the conversation, so
/rewindworks after a resume. See our rewind guide.
Frequently asked questions
How do I resume the last Claude Code session?
Run claude -c in the same directory. It reopens the most recent session there, or prints "No conversation found to continue" if there isn't one.
How do I resume a specific Claude Code session?
Run claude -r with the session's name or ID, as in claude -r auth-refactor. Run claude -r with no argument, or /resume inside a session, to choose from the picker.
Why doesn't my session show up in /resume?
The picker shows the current worktree by default. Press Ctrl+W for all worktrees or Ctrl+A for every project. Sessions started with claude -p, the Agent SDK or a first /loop prompt are left out; resume those by session ID.
Does resuming keep my MCP servers and settings?
No. Launch flags such as MCP config, plugin directories, added directories, extra settings and tool lists aren't restored. Pass them again when you resume.
How long does Claude Code keep sessions?
Transcripts are kept for 30 days by default. Change it with the cleanupPeriodDays setting.
Next: the rest of the CLI
Resuming is one of a handful of commands that cover a working day. Our Claude Code CLI guide lists the rest, from starting a session to switching permission modes.
Stop guessing. Score your first workflow.
Score one workflow in about five minutes. Nine questions, a grade, and the specific gap holding it back - no call required.
Related Posts

Claude Code slash commands: the built-ins worth knowing, and how to make your own
Which Claude Code slash commands to learn first, grouped by the moment you need them, the aliases and removed commands that trip up old habits, and how to make your own command with a skill in .claude/skills.

Claude Code rewind: undo edits with checkpoints, and what they miss
Claude Code saves a checkpoint before every prompt. How to open the rewind menu, choose between restoring code, the conversation or both, summarize from a point, and what checkpoints don't cover, so you know when Git has to do the undo.

Claude Code statusline: show the model, context and cost at a glance
The Claude Code statusline runs a script you choose and shows what it prints. Set it up with /statusline or by hand, choose which session fields to show, keep it fast, and fix it when it goes blank.
