[Feature Request] Add --name flag and rename subcommand for non-interactive session naming

Resolved 💬 2 comments Opened Feb 25, 2026 by micthiesen 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

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗