Feature request: persistent per-project session name and color
Feature Request
Allow configuring a default session name and color per project, so they are automatically applied when opening Claude Code in that repository.
Use Case
When working across multiple projects, it's helpful to visually distinguish sessions by color and name. Currently, /color and /rename must be run manually each time. It would be great to have a project-level config (e.g., in .claude/settings.local.json or CLAUDE.md) that sets these automatically.
Proposed Solution
Support optional fields in .claude/settings.local.json:
{
"sessionDefaults": {
"color": "purple",
"name": "note-catalog"
}
}
Or a <user-prompt-submit-hook> / session-start hook that can invoke internal CLI commands like /color and /rename.
Current Workaround
None — /color and /rename are internal CLI commands and cannot be called from hooks or shell scripts.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗