[FEATURE] /new slash command to switch to a fresh session while preserving the current one
Status Closed — not planned
Maintainer reply None cached
Workaround ✓ Mentioned in thread ↓
Activity 9 comments · opened Feb 4, 2026 · closed Mar 13, 2026
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Starting a new session requires exiting (/exit) and re-running claude — a minor but frequent friction. /clear clears history but doesn't create a new session, so you can't
return to the previous context via /resume. There's no way to quickly switch to a fresh session while keeping the current one alive.
Proposed Solution
Add a /new command that preserves the current session (keeps it resumable), opens a fresh new session in-place, and allows users to /resume back to the previous session
later.
Alternative Solutions
Current workaround: /exit, then run claude, then claude --resume to return. This works but adds unnecessary friction when context-switching frequently.
Priority
Medium - Would be very helpful
Feature Category
Interactive mode (TUI)
Use Case Example
- I'm deep in a debugging session with significant context built up
- I need to quickly look something up or work on a different feature
- With /new, I switch to a fresh session, do the quick task
- Then /resume back to my debugging session with all context intact
- Similar to opening a new browser tab while keeping the old one
Additional Context
_No response_
9 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
This is not a duplicate of the suggested issues:
/clear+ submit as one action)/restartto refresh the environment (reload plugins/hooks) without exiting/cloneto fork/duplicate a conversation to try different approaches from the same pointMy request is specifically about switching to a brand-new session while preserving the current one, so you can
/resumeback to it later. The key difference is session persistence — none of the above issues address the ability to leave a session intact, start fresh, and return later. It's analogous to opening a new browser tab while keeping the old one.I found this while making the very same feature request.
Here's an idea though, you could try to wrap claude in a script that restarts on a specific exit code:
Then a
/newskill could do:exit 42Not tested it, but Claude came up with this.
Thanks @RickMeijer, that's a creative workaround idea!
Also, a small note on my previous comment: the "browser tab" analogy would work too, but even just being able to switch sessions within the same instance would be sufficient for my use case.
Also would like this feature, I try to keep my context windows in check and therefore my number of sessions is higher with discrete implementation in each. Having to exit and come back in is an odd behavior to try to remember each time.
Additionally, it would be great if
/newcould optionally accept a session name, like/new <session-name>.This would make it easier to identify and resume specific sessions later. Currently, sessions get auto-generated names, which makes it hard to find the right one when using
/resume.Example:
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
I would love this feature. I find myself using
/newvery frequently but then the session's history gets wiped out and I can't come back to it via/resume.This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.