Back to Blog

Resume a Claude Code session: claude -c, claude -r and /resume

Alex Kim
6 min read
Resume a Claude Code session: claude -c, claude -r and /resume

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

CommandWhat it does
claude -cReopens the most recent session in the current directory
claude -rOpens the session picker
claude -r auth-refactorResumes 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
/resumeSwitches 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:

  1. At startup: claude -n auth-refactor.
  2. Mid-session: /rename auth-refactor. The name also shows on the prompt bar.
  3. 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.

ShortcutAction
โ†‘ / โ†“ or k / jMove between sessions
EnterResume the highlighted session
SpacePreview the session
Ctrl+RRename the highlighted session
/ or start typingSearch. Paste a pull or merge request URL to find the session that created it
Ctrl+WWiden to all worktrees of the repository
Ctrl+AWiden to every project on this machine
Ctrl+BFilter to the current git branch
EscLeave 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, or claude -r with 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 /branch inside 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 -p or the Agent SDK, and sessions whose first prompt was /loop, don't appear in the picker or in claude -c. Resume one with claude -r <session-id>.
  • Transcripts expire. They're stored as JSONL under ~/.claude/projects/ and kept for 30 days by default; the cleanupPeriodDays setting changes that. Our settings guide covers where settings live.
  • Rewind still works. Checkpoints are saved with the conversation, so /rewind works 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.

#claude-code#Sessions#Resume#CLI#ai-agents
Free assessment

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.