Skip to content
BENIBIX Learn

/rename Command

Also known as /rename, Session name

It gives the current session a name.

Think of it like

It is like you write a name on the front of a book.

Example

Emma has five sessions that all start with fix. She names this one payment-bug, so next week she finds it in /resume at once.

Why it matters

A list of past sessions is only useful if you can tell them apart.

Definition

/rename gives the current session a name, and shows that name on the prompt bar while you work. Without a name, Claude Code makes one up from the chat. A good name makes the session easy to find in /resume later. Names longer than 200 characters are cut short. It also works in non-interactive mode, with claude -p.

Example code

console
/rename payment-bug
Name this session payment-bug.

Common mistake

Leaving every session with its made-up name. It reads well today, but a week later ten of them look alike.

Key takeaways

  1. 1
    Names the session. On the prompt bar.
  2. 2
    Found in /resume. By that name.
  3. 3
    Or made up. From the chat.

Learn it properly