[FEATURE] `/new` command to end current session and start a new named session
Status Fixed / completed
Maintainer reply None cached
Workaround ✓ Mentioned in description ↑
Activity 5 comments · opened Mar 19, 2026 · closed Aug 17, 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
## Summary
Add a /new slash command that ends the current session and immediately
starts a new named session, without requiring the user to exit and
relaunch Claude Code manually.
## Motivation
When working on multiple unrelated tasks, it's useful to keep each task
in its own named session for easy retrieval via /resume.
Currently, starting a new named session requires:
- Typing
exitto leave the current session - Running
claude -n "session name"in the terminal
This interrupts the flow, especially when switching tasks frequently.
## Related
/resumefor session management/clearfor resetting context within a session
Proposed Solution
## Proposed behavior
/new "session name"
- Saves and closes the current session
- Immediately starts a new session with the given name
- If no name is provided, starts an unnamed new session (equivalent
to current /clear behavior, but as a fresh session)
Alternative Solutions
## Current workaround
exit+claude -n "name"from the terminal- Shell alias:
alias cn='claude -n'
Priority
Medium - Would be very helpful
Feature Category
CLI commands and flags
Use Case Example
_No response_
Additional Context
_No response_
Showing cached comments. Read the full discussion on GitHub ↗
3 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
/clearis destructive to session history/cleartruncates the conversation from the active context, which means those messages are lost from the session transcript entirely. Tools that query session history won't find anything from before the clear.This makes
/newmore than a convenience feature. Right now the only way to preserve a conversation AND start fresh isexit+claude -n "name"./newwould let you do that without breaking flow, and without silently destroying history the way/cleardoes.Session history trail
This has been requested repeatedly under different framings since Dec 2025. The core issue is that
/clearis internally aliased as["reset", "new"]and creates a fresh session UUID (#37451), but its name implies "wipe context, keep session." That mismatch cascades:/resumecan't find the pre-clear conversation (#18311, #24729)/renamenames vanish because/clearcreates a new session (#33029)/newisn't just a convenience shortcut. It's the explicit version of what/clearalready does implicitly, but with proper session preservation and naming. Splitting the two would fix the semantic confusion and all the downstream bugs in one go.