Feature request: Programmatic session rename (tool or skill-invocable /name)

Resolved 💬 4 comments Opened Mar 22, 2026 by seanzhang-notion Closed Apr 22, 2026

Feature Request

Is your feature request related to a problem?

Currently, /name is a built-in CLI command that can only be typed interactively by the user. There's no tool, hook, or API that allows Claude to programmatically rename a session. This means skills and automation workflows can't auto-summarize and name sessions.

Describe the solution you'd like

Expose a programmatic way to set the session name, such as:

  • A SessionRename tool that Claude can invoke
  • Making /name invocable from skills via the Skill tool
  • A hook event (e.g., session-end) that could trigger auto-naming

Use case

A skill like /mark-session could:

  1. Summarize the conversation (key actions, PR numbers, files changed)
  2. Generate a descriptive, unique session name
  3. Automatically apply it

This would help users organize and find past sessions without manual effort.

Current workaround

Claude generates a suggested name and asks the user to manually type /name <suggestion> in the prompt.

View original on GitHub ↗

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