{"name":"\/rename","slug":"rename","family":"slash","title":"Slash commands","noun":"slash command","description":"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](\/docs\/en\/sessions#name-your-sessions) instead","description_source":"docs","described_by":{"doc":"claude-code\/commands","title":"Commands"},"presence":{"first_seen":null,"removed_in":null,"in_current_build":false,"newest_mined":"2.1.308","builds":0,"mined_builds":149,"first_cited":{"version":"2.1.26","released_at":"2026-01-30 02:13:52","spans":6}},"aliases":[],"entries":[{"version":"2.1.301","anchor":"tip-for-multiple-sessions-is-hidden-in-some-cases-the-claud","heading":"The tip about \/color and \/rename is skipped in more cases","line":"The tip suggesting \/color and \/rename for telling sessions apart is now hidden in some extra cases","released_at":"2026-10-15 14:34:23","reason":"found in this entry's text, named in this entry"},{"version":"2.1.290","anchor":"bridge-remote-control-peers-can-run-effort-model-rena","heading":"Remote Control users can run \/effort, \/model, \/rename and \/usage while Claude is working","line":"Someone connected through Remote Control can now run `\/effort`, `\/model`, `\/rename` and `\/usage` straight away while Claude is mid-reply","released_at":"2026-10-05 18:12:44","reason":"found in this entry's text, named in this entry"},{"version":"2.1.248","anchor":"list-agents-can-withhold-session-names-and-directories","heading":"\/list-agents can withhold session names and directories","line":"\/list-agents can hide directories and unnamed sessions, pointing you at \/rename.","released_at":"2026-08-27 20:35:36","reason":"named in this entry, found in this entry's text"},{"version":"2.1.232","anchor":"a-session-that-loses-its-name-to-another-live-session-is-ren","heading":"A session that loses its name to another live session is renamed and told why","line":"If another live session already holds your session name, yours gets renamed and both you and Claude are told.","released_at":"2026-08-13 21:30:53","reason":"named in this entry, found in this entry's text"},{"version":"2.1.232","anchor":"rename-can-hand-a-name-over-to-another-live-session","heading":"\/rename can hand a name over to another live session","line":"\/rename can now hand a name to another live session, or report a newer rename won.","released_at":"2026-08-13 21:30:53","reason":"named in this entry, found in this entry's text"},{"version":"2.1.221","anchor":"rename-rejects-names-that-resolve-to-nothing","heading":"\/rename rejects names that resolve to nothing","line":"\/rename now tells you when a name is empty or can't be generated instead of silently blanking it.","released_at":"2026-08-03 22:16:25","reason":"named in this entry, found in this entry's text"},{"version":"2.1.221","anchor":"renaming-a-session-propagates-the-new-name","heading":"Renaming a session propagates the new name","line":"Renaming a session now cleans up the title and pushes the new name everywhere, not just locally.","released_at":"2026-08-03 22:16:25","reason":"named in this entry"},{"version":"2.1.116","anchor":"rename-command-aliases-and-non-interactive-support","heading":"\/rename Command Aliases and Non-Interactive Support","line":null,"released_at":"2026-04-20 19:24:52","reason":"found in this entry's text"},{"version":"2.1.113","anchor":"custom-session-titles-via-sdk-protocol","heading":"Custom Session Titles via SDK Protocol","line":null,"released_at":"2026-04-17 19:09:22","reason":"found in this entry's text"},{"version":"2.1.75","anchor":"concurrent-session-detection","heading":"Concurrent Session Detection","line":null,"released_at":"2026-03-13 15:51:07","reason":"found in this entry's text"}],"entries_total":13,"docs":[{"source":"claude-code","path":"commands","title":"Commands","documented":true},{"source":"claude-code","path":"agent-sdk\/typescript","title":"Agent SDK reference - TypeScript","documented":false},{"source":"claude-code","path":"agent-view","title":"Manage multiple agents with agent view","documented":false},{"source":"claude-code","path":"best-practices","title":"Best practices for Claude Code","documented":false},{"source":"claude-code","path":"changelog","title":"Claude Code changelog","documented":false},{"source":"claude-code","path":"claude-code-on-the-web","title":"Use Claude Code in the cloud","documented":false},{"source":"claude-code","path":"cli-reference","title":"CLI reference","documented":false},{"source":"claude-code","path":"costs","title":"Manage costs effectively","documented":false},{"source":"claude-code","path":"cross-session-messaging","title":"Message your other Claude Code sessions","documented":false},{"source":"claude-code","path":"headless","title":"Run Claude Code programmatically","documented":false}],"docs_total":13,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/slash\/rename","family_url":"https:\/\/changelogs.core-directive.com\/reference\/slash.json"}