Preflight Checklist
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
exit to leave the current session
- Running
claude -n "session name" in the terminal
This interrupts the flow, especially when switching tasks frequently.
Related
/resume for session management
/clear for 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
Preflight Checklist
Problem Statement
Summary
Add a
/newslash command that ends the current session and immediatelystarts 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:
exitto leave the current sessionclaude -n "session name"in the terminalThis interrupts the flow, especially when switching tasks frequently.
Related
/resumefor session management/clearfor resetting context within a sessionProposed Solution
Proposed behavior
/new "session name"
to current
/clearbehavior, but as a fresh session)Alternative Solutions
Current workaround
exit+claude -n "name"from the terminalalias cn='claude -n'Priority
Medium - Would be very helpful
Feature Category
CLI commands and flags
Use Case Example
No response
Additional Context
No response