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
SessionRenametool that Claude can invoke - Making
/nameinvocable from skills via theSkilltool - A hook event (e.g.,
session-end) that could trigger auto-naming
Use case
A skill like /mark-session could:
- Summarize the conversation (key actions, PR numbers, files changed)
- Generate a descriptive, unique session name
- 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.
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗