Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

/rename

slash never mined documented JSON

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.

First seen — never in a mined build
Last seen — never in a mined build
Builds0 / 149on this box, as of v2.1.308
Written about v2.1.26 first named in a changelog, 30 Jan 2026

In the changelogs

13

Releases whose published page names /rename.

  1. 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

  2. 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, /rename and /usage straight away while Claude is mid-reply

    found in this entry's text, named in this entry

  3. 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

  4. 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

  5. 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

  6. 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

  7. 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

  8. v2.1.116
  9. v2.1.113
    Custom Session Titles via SDK Protocol

    found in this entry's text

  10. v2.1.75
    Concurrent Session Detection

    found in this entry's text

  11. v2.1.47
    Improved /rename Behavior Setting

    found in this entry's text

  12. v2.1.40
    LLM-Generated Session Names

    found in this entry's text

  13. v2.1.26
    Terminal Tab Title Setting

    found in this entry's text

First cited

6

The 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.

ReleaseDateThe span that was quoted
v2.1.2630 Jan 2026terminal tab title is set from /rename
v2.1.4718 Feb 2026Whether /rename updates the terminal tab title
v2.1.2213 Aug 2026That name is empty once invisible characters are removed. Usage: /rename <name>
v2.1.23213 Aug 2026Use /rename to pick a different name.
v2.1.24827 Aug 2026(session names and directories not chosen by a human are withheld on this connection - /rename a session on its own machine to give it an addressable name here)
v2.1.30115 Oct 2026Running multiple Claude sessions? Use /color and /rename to tell them apart at a glance.

Presence across releases

0

The 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.

Feedback