/rename
A Claude Code slash command, read out of the shipped bundle. No mined inventory carries it: everything below comes from what this site has written about it.
Rename the current session and show the name on the prompt bar. Without a name, auto-generates one from conversation history. Also available in non-interactive mode (-p); requires Claude Code v2.1.205 or later. From every rename surface, including claude.ai and the desktop app, Claude Code replaces control and invisible characters in the new name with spaces and caps the name at 200 characters. If the name is empty once invisible characters are removed, Claude Code rejects it and shows That name is empty once invisible characters are removed. Usage: /rename <name>. The character replacement and length cap require Claude Code v2.1.221 or later. If another live session on this machine already uses a name you pass, Claude Code applies a variant of it instead
Anthropic's own wording. Read off Commands, captured 2026-09-28.
In the changelogs
13Releases whose published page names /rename.
-
v2.1.301
The tip about /color and /rename is skipped in more cases
The tip suggesting /color and /rename for telling sessions apart is now hidden in some extra cases
found in this entry's text, named in this entry
-
v2.1.290
Remote Control users can run /effort, /model, /rename and /usage while Claude is working
Someone connected through Remote Control can now run
/effort,/model,/renameand/usagestraight away while Claude is mid-replyfound in this entry's text, named in this entry
-
v2.1.248
/list-agents can withhold session names and directories
/list-agents can hide directories and unnamed sessions, pointing you at /rename.
named in this entry, found in this entry's text
-
v2.1.232
A session that loses its name to another live session is renamed and told why
If another live session already holds your session name, yours gets renamed and both you and Claude are told.
named in this entry, found in this entry's text
-
v2.1.232
/rename can hand a name over to another live session
/rename can now hand a name to another live session, or report a newer rename won.
named in this entry, found in this entry's text
-
v2.1.221
/rename rejects names that resolve to nothing
/rename now tells you when a name is empty or can't be generated instead of silently blanking it.
named in this entry, found in this entry's text
-
v2.1.221
Renaming a session propagates the new name
Renaming a session now cleans up the title and pushes the new name everywhere, not just locally.
named in this entry
-
v2.1.116
/renameCommand Aliases and Non-Interactive Supportfound in this entry's text
-
v2.1.113
Custom Session Titles via SDK Protocol
found in this entry's text
-
v2.1.75
Concurrent Session Detection
found in this entry's text
-
v2.1.47
Improved /rename Behavior Setting
found in this entry's text
-
v2.1.40
LLM-Generated Session Names
found in this entry's text
-
v2.1.26
Terminal Tab Title Setting
found in this entry's text
First cited
6The earliest release whose published evidence quoted /rename was v2.1.26, 30 Jan 2026. That is the oldest release this project wrote about it, so it is a floor on the name's age and not the release that introduced it. It is not a presence reading: which builds carried the name is the table below.
Presence across releases
0The miner has never read a build containing this name. It is here because a changelog entry of ours names it, which is evidence that it existed and not evidence of which releases carried it. The inventory starts at v2.1.138 and everything older than that was never mined.
Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the slash command does. All slash commands.