Feature request: /name command to rename the current session
Resolved 💬 3 comments Opened Mar 18, 2026 by robertw-openspace Closed Mar 22, 2026
Problem
When Claude Code is auto-launched (e.g., from .zshrc with claude --continue), there's no opportunity to pass -n to name the session. The only way to name a session is at launch time via -n/--name, which means users who auto-launch can't take advantage of named sessions without exiting and re-entering.
Proposed solution
Add an in-session /name or /rename slash command that sets or updates the display name of the current session. This name would then appear in /resume and the terminal title, just like -n does today.
Use case
- Users who auto-launch Claude Code on terminal open (via shell profile) can't name their sessions without exiting and re-entering
- Users who want to name a session based on what they end up working on, rather than deciding upfront
🤖 Generated with Claude Code
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗