Freeive

claude-code·Published 2026.06.01

Claude Code /color: Color Each Session to Avoid Window Mix-ups

A beginner-friendly, hands-on walkthrough of the /color command, which assigns different prompt colors to tell multiple sessions apart at a glance.

When you work with several Claude Code windows open at once, there are moments where you think, "wait, which task am I looking at?" The command that paints each window a different color so you can tell them apart at a glance is /color.

Definition (what it is)

/color is a command that changes the prompt color of the current session.

The prompt is the spot where you type commands — the part where the cursor blinks waiting for input. If you make this color different per session, even with several windows open you can immediately tell "this is task A, that one is task B" just by the color.

How to use it (by difficulty)

Basic — specify a color

/color blue

Put the color name you want in English in place of blue and it switches to that color. Use common color names like red or green.

Applied — get a random color

/color

Just typing it without a color name assigns a random color. It's convenient when you don't have a color in mind and want a color that won't clash with other windows quickly.

Common pitfalls

  • The color applies only to the current session. If you open a new window, you have to set it again.
  • Depending on the terminal's own theme, the same color name may look slightly different. Avoid colors that are too similar and pick ones that are clearly distinguishable.

Real-world example

If you assign colors like blue for the frontend window and green for the backend window, you can instantly tell which window is which by color even with several open. It also reduces the mistake of typing a command into the wrong window.

Taking it further

Distinguishing by color keeps you from mixing up multiple windows. If you set color rules by task type (e.g., red for experiments, blue for actual deployment), you also get the effect of spotting risky windows at a glance and being more careful with them.

Summary

/color is a command that changes the current session's prompt color. Give it a color name and it switches to that color; leave it out and it picks a random one. It's handy for telling windows apart when working with several open.

Based on Claude Code v2.1.154 (2026.05)

#Claude Code#ClaudeCode#color#AI Coding#Vibe Coding#Developer

Comments

Comments 0

Checking sign-in status…

Loading comments…

Recent

More notes.