Skip to content

Feature request: /name command to rename the current session #35994

Description

@robertw-openspace

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions