[FEATURE] Feature request: make /rename session name settable via --name flag or hooks
Resolved 💬 6 comments Opened Mar 17, 2026 by ehagerty Closed May 22, 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
Currently /rename sets the session display name in the prompt header banner (the coloured label on the
right of the input line). This is very useful for tmux users running multiple Claude sessions in different
panes.
However, there's no way to automate it:
--nameonly sets the name in the session list, not the prompt banner/renameis a built-in command that can't be called fromSessionStarthooks- Hooks can only run shell commands, not CLI built-ins
Proposed Solution
Request: any of these would solve it:
- Make
--namealso set the prompt banner name - Allow
SessionStarthooks to return session metadata (e.g. display name) - Support a
CLAUDE_SESSION_NAMEenv var
This would enable claude -n "$(basename $PWD)" to auto-name the banner to the project directory — a big
QoL improvement for tmux workflows.
Alternative Solutions
_No response_
Priority
High - Significant impact on productivity
Feature Category
CLI commands and flags
Use Case Example
_No response_
Additional Context
_No response_
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗