How-To
How to Resume an Old Claude Code Session
Resume a past Claude Code session with --resume, --continue, or /resume. How each option works, what the picker's search does, and how to reopen any session.
Run claude --resume to choose a saved Claude Code session or claude --continue to reopen the most recent eligible session in your current directory. If the session belongs to another project, press Ctrl+A in the picker. If you know its ID, run claude --resume <session-id>.
The three built-in ways to resume
claude --continue (or -c) reopens the most recent eligible session in the current directory.
claude --resume (or -r) opens the session picker. Type to filter it, or pass a session ID to jump straight to a specific session.
/resume opens the picker from inside a running Claude Code session.
All three restore the session's context so Claude picks up with the history intact, rather than starting cold.
Resume a session from another worktree or project
The picker initially shows sessions associated with the current worktree. Press Ctrl+W to include the repository's other worktrees or Ctrl+A to show all projects on the machine. When you pick a session from an unrelated project, Claude Code can copy a command that changes to that project and resumes the session.
If you pass an ID from a different directory, Claude Code searches the current project and its worktrees first, then looks for a unique match elsewhere. If an older build cannot find it, run the command from the original project directory. See where Claude Code stores its transcript files to locate the ID.
Resuming a session you can't place
If you remember a line from the conversation but cannot identify it in the picker, search the saved transcript files by content.
Two ways through it:
- Search the files. With the default location and ripgrep installed, run
rg -il --glob '*.jsonl' -- 'something you remember' ~/.claude/projects. For a matching session transcript, use the filename without.jsonlas the ID. - Search your saved sessions with LLMnesia. LLMnesia for Claude Code builds a local keyword index from the supported session files you import. Find a saved conversation by a phrase you remember and copy its resume command.
If you cannot place the session at all, work through the methods for finding an old Claude Code conversation first, then come back and resume it.
Keeping sessions easy to return to
These habits make a session easier to find later.
- Use
--continuefor recent work in the same project. - Keep projects in stable directories. Moving or renaming a project directory means its future sessions land in a new folder, splitting your history.
- Name or index sessions you expect to revisit. A meaningful session name helps in the picker. A local index helps when you remember the conversation's contents.
Frequently asked
How do I resume a previous Claude Code session?
Run claude --resume (or -r) to open the session picker, filter it with a search term, and choose a session. Press Ctrl+A to show sessions from other projects. Use claude --continue (or -c) to return to the most recent session in your current directory. Inside Claude Code, use /resume.
What is the difference between --resume and --continue?
claude --continue reopens the most recent eligible session in the current directory. claude --resume opens a picker you can filter and widen across worktrees or projects. Pass a session ID to resume a known session directly.
How do I reopen a session that isn't the most recent one?
Run claude --resume <session-id> to skip the picker. For a saved local session, the ID is the filename without .jsonl. Claude Code checks the current project and its worktrees first, then looks for a unique match in other projects on the machine.
Can I resume a Claude Code session from a different folder?
Yes. In the session picker, Ctrl+W shows worktrees for the same repository, and Ctrl+A shows all projects on the machine. Selecting a session from an unrelated project may copy a terminal command to your clipboard. If you know the session ID, claude --resume <session-id> can find it from another directory.
How does LLMnesia help me resume a Claude Code session?
After you import the local session folder and indexing finishes, search for a phrase you remember. A saved result can show the matching session and give you a terminal resume command.
Sources
Related reading
Search all your AI conversations in one place, LLMnesia indexes your ChatGPT, Claude, Gemini, Grok, and 10+ other AI chats locally on your device. No account, no cloud, completely private. Install LLMnesia free →