Feature request: let Claude set the session color in response to a prompt (agent-invocable /color)

Status Open
Maintainer reply None cached
Activity 0 comments · opened Jul 31, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

/color already sets the session color, and #78203 covers setting it at launch. The remaining gap is mid-session, natural-language use: I often don't know what color a session should be until I've described the work. "Run the financials docs pass — and make this conversation green" fails, because Claude cannot invoke /color. I have to state the task, then separately type /color green.

Claude has no tool for it, and the color isn't persisted in ~/.claude/jobs/<id>/state.json (which does store name/nameSource), so there's no hook or config workaround either.

Proposed Solution

Make session color agent-settable — e.g. a SetSessionColor({ color }) tool, or permitting Claude to invoke /color — accepting the existing palette (red, blue, green, yellow, purple, orange, pink, cyan, default).

This is the same capability as auto-naming, which the harness already derives from the opening prompt (nameSource: "auto"), extended to color.

Alternative Solutions

The launch-time flag in #78203 solves the scripted case but not the conversational one. A per-directory default (#77839, closed) doesn't help when several sessions share a working directory — which is exactly when color matters most.

Explicitly not a request for a CLI flag or a settings.json key; both framings are already consolidated under #78203.

Priority

Medium - Would be very helpful

Feature Category

Interactive mode (TUI)

Use Case Example

Multiple concurrent agent sessions in the same repo. I describe each task in one prompt and end with "make this one orange" — the session is filed visually at the moment I decide, with no follow-up command.

Additional Context

Related: #78203 (launch flag), #79350 (closed dup), #77839 (closed, per-directory default), #80776 (sidebar tagging).

Claude Code v2.1.220, Windows 11.

View original on GitHub ↗