Allow persistent prompt bar color via setting, flag, or hook output
Resolved 💬 2 comments Opened Apr 16, 2026 by onlygenerated Closed Apr 16, 2026
Summary
/color <name> changes the prompt bar color for the current session only. There's no way to set it automatically on launch.
Motivation
I use a SessionStart hook that assigns each session a random color + planet name (e.g. "magenta Jupiter") shown in my status line. I'd like the prompt bar to match so the session's color identity is visible in both places without typing /color magenta manually every launch.
Proposed options (any one would solve this)
- A
colorfield insettings.json(user or project scope) read at startup. - A
--color <name>CLI flag. - A
hookSpecificOutput.colorfield thatSessionStarthooks can emit. - An env var like
CLAUDE_PROMPT_COLORhonored at launch.
Current workarounds
None clean — /color isn't writable from hooks, Claude can't invoke slash commands, and there's no persistent field. Best current option is glancing at the status line and typing /color <name> each session.
Environment
Claude Code on Windows 11, shell: bash.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗