Claude Code setup guide
Resume a previous Claude Code session
Short answer. If you closed the terminal halfway through a task, reopen the conversation from its project folder. The right command depends on whether you want the latest session or a particular one. Open a terminal in the same project folder and run claude --continue.
By CWYN · Last updated · Not affiliated with Anthropic · Published
1. Continue the latest session from its project
Open a terminal in the same project folder and run claude --continue. This loads the most recent eligible conversation in that directory. Check the conversation before sending a follow-up.
2. Pick an older conversation
From the shell, run claude --resume to see the session picker. From a Claude Code prompt, use /resume to open the picker and switch conversations. Highlight the conversation you want and press Enter. If you just used /clear, see how to recover the conversation with /rewind.
3. Give a conversation a name you can reuse
At the Claude Code prompt, enter /rename csv-export-debug. Leave the session with /exit, then reopen it from the shell with claude --resume csv-export-debug. Choose a distinct name if you have several sessions for the same task.
4. Check the worktree if your session is missing
The picker starts with the current worktree and includes sessions that added its directory. Press Ctrl+W in the picker to see sessions from all worktrees of the repository. To reopen a session created with claude -p, pass its session ID to claude --resume directly.
If you chose to keep a worktree on exit, resume the worktree where you made your edits using the command Claude printed.
Sources · Local session storage, picker scope, worktrees and named resume · In-session rename, resume and exit