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.
To resume a Claude Code session, cd into the project it belongs to, then run claude --resume and pick it from the picker — or claude --continue for the most recent one. Both commands only see sessions for the directory you are standing in, even --resume when you pass a specific session ID, so resuming an old session from a different project starts with knowing (or finding) which directory it lived in. Here is how each option works, and what to do when you can't place it.
The three built-in ways to resume
claude --continue (or -c) — reopens the most recent session in the current directory, no questions asked. This is the "get me back to what I was just doing" option.
claude --resume (or -r) — opens a picker of your saved sessions that you can filter by typing a search term, so you can choose which one to reopen. Use this when the session you want is not the most recent. You can also pass a session ID (claude --resume <id>) to jump straight to a specific one — but like the picker, this only finds sessions belonging to the current directory.
/resume — the same picker, available from inside a running session, so you can switch to another conversation without leaving Claude Code.
All three restore the session's context so Claude picks up with the history intact, rather than starting cold.
The one thing to know about directories
Both claude --continue and claude --resume only operate on the current directory's sessions — and that holds even when you pass a specific session ID to --resume. Try to resume a session from the wrong directory and Claude Code reports it as not found, even though the file is sitting right there under ~/.claude/projects.
So resuming an old session always starts the same way: cd into the project directory it belongs to, then run --continue or --resume there.
Resuming a session you can't place
The built-in tools assume you can recognise the session yourself — by its entry in the picker, or by knowing the directory to run --continue in. Often you can't — you remember what you were doing (a tricky migration, a bug you finally cracked) but not enough to pick it out of a list.
Two ways through it:
- Search the files by content. Every session is a plain file under
~/.claude/projects, named by its session ID.rg -i "something you remember" ~/.claude/projectswill point you at the file — its parent folder is the project, and the filename (minus.jsonl) is the ID.cdinto that folder and runclaude --resume <that-id>to reopen it. - Let a tool find it and hand you the command. LLMnesia indexes your Claude Code sessions and makes them searchable by keyword across every project. Find the session by a phrase you remember, and it either reopens it in the Claude Desktop app in one click, or copies a ready-to-run terminal command — for the right folder — that resumes that exact session.
Keeping sessions easy to return to
The friction with resuming is almost never the resume command itself — it is finding the right session first. A few habits help:
- Use
--continuefor same-day work so you never lose the thread of an active task. - Keep projects in stable directories. Moving or renaming a project directory means its future sessions land in a new folder, splitting your history.
- Index your sessions for search if you regularly return to work from weeks ago. Once every session is searchable by keyword, "which project was that in?" stops being a question you have to answer from memory.
Once you find the session, resuming it is one command — the work is in surfacing the right one, and that is exactly the gap search fills.
Frequently asked
How do I resume a previous Claude Code session?
cd into the project directory the session belongs to, then run claude --resume (or -r) to open a picker of that project's saved sessions, filter it with a search term, and choose one — or claude --continue (or -c) to jump straight into the most recent session there. From inside a running session you can also use the /resume command.
What is the difference between --resume and --continue?
claude --continue (or -c) reopens the most recent session in the current directory without asking. claude --resume (or -r) opens a picker of that directory's saved sessions that you can filter with a search term, then reopen the one you pick. Use --continue to get back to what you were just doing, and --resume to choose an earlier session in the same project.
How do I reopen a session that isn't the most recent one?
From the project directory it belongs to, run claude --resume <session-id> — the ID is the filename (minus .jsonl) under that project's folder in ~/.claude/projects — to skip straight past the picker. Find the ID by searching the files with ripgrep, or with a tool like LLMnesia that indexes them by keyword.
Can I resume a Claude Code session from a different folder?
Not directly. Both claude --continue and claude --resume — even with a session ID — only operate on the current directory's sessions; the reliable way is to cd into the project the session belongs to first, then resume it there. If you do not know which project that is, a tool like LLMnesia can find the session and hand you a ready-to-run command for the correct folder.
How does LLMnesia help me resume a Claude Code session?
LLMnesia indexes your Claude Code sessions and makes them searchable by keyword. When you find the one you want, it reopens it in the Claude Desktop app in one click, or copies a ready-to-run terminal command that resumes that exact session in the correct project folder — so you never have to remember which directory it lived in.
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 →