← Claude Code Hub
✦ Tip #032 Mar 23, 2026

Tell Your Claude Code Sessions Apart at a Glance

Use /rename and /color to give your Claude Code sessions visual identity. Name + color = find any session instantly.

TL;DR Use /rename to name your session and /color to change the prompt bar color. When you have multiple sessions open or need to find an old one with /resume, name + color is the difference between "which one was it?" and knowing instantly.

Managing sessions in Claude Code is one of its weakest areas. Everything looks the same: same bar, same color, no title. If you work with parallel sessions or need to pick up a conversation from days ago, telling them apart is a memory exercise.

/rename and /color don't solve the root problem, but they make it much more manageable. With a descriptive name and a distinct color, each session has visual identity. And when you use /resume to browse past sessions, the name you gave it shows up as searchable text.

Result:

> /rename auth-refactor
> /color blue

# The prompt bar now shows "auth-refactor" with a blue border.
# When you run /resume, the session is listed as "auth-refactor".

How to use it

1. Name at startup (recommended)

claude -n "auth-refactor"

The name appears on the prompt bar and in /resume. You can resume the session directly:

claude -r "auth-refactor"

2. Rename during the session

/rename auth-refactor

Without arguments, /rename auto-generates a name based on the conversation. My recommendation: name it yourself. Auto-generated names are generic and hard to remember.

3. Assign a color

/color blue

Changes the border color of the input bar. Useful when you have multiple terminal tabs open — each with a different color.

4. Find sessions with /resume

/resume

Opens an interactive picker. You can search by name, rename a session, or preview it. And it's no longer limited to the current directory: it widens the search to other worktrees and projects. Every way back in is in resume sessions in Claude Code.

Reference

Command What it does
claude -n "name" Name the session at startup
/rename name Rename the current session
/rename (no args) Auto-generate name from context
/color color Change the prompt bar border color
/resume Interactive session picker
claude -r "name" Resume a session by name from CLI
Limitation Detail
Directory Sessions are tied to the working directory, but the picker is no longer limited to it: Ctrl+W and Ctrl+A widen the search to other worktrees and projects (resume from anywhere).
Color persistence Color applies to the current session. It does not persist when resuming.

Official docs: CLI reference — Session flags

Free guide

51 tips to master Claude Code.

One page per tip. Five chapters. What I actually use daily in production — no theory, no fluff.

  • I. Getting started 10 tips
  • II. Awareness 3 tips
  • III. Mastery 22 tips
  • IV. Autonomy 10 tips
  • V. Comparison 6 tips
Are you a professional Web developer?

You'll receive the guide by email · You join the Gravitas newsletter · Unsubscribe anytime

of 51
#

Wmedia · 51 Tips
Free guide · 51 tips · 5 chapters

51 tips to master Claude Code.

Are you a professional Web developer? · Unsubscribe anytime