[Feature Request] Add --name flag and rename subcommand for non-interactive session naming
Status Closed — duplicate
Reported on v2.1.58
Maintainer reply None cached
Activity 2 comments · opened Feb 25, 2026 · closed Feb 25, 2026
Bug Description
Feature request: Add a --name flag to set a session display name on startup (e.g. claude --name "my-feature-branch"), and/or a claude rename <session-id> <name> subcommand for scripting. Currently session naming is only possible interactively via /rename, which makes it impossible to automate (e.g. auto-naming sessions to the current git branch via a SessionStart hook or shell wrapper).
Environment Info
- Platform: darwin
- Terminal: zed
- Version: 2.1.58
- Feedback ID: 5f3ac88c-cc01-4fa4-a93e-f89914c616c2
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗