claude-code - 💡(How to fix) Fix Allow Claude to set the session name and color [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#60643Fetched 2026-05-20 03:53:10
View on GitHub
Comments
2
Participants
2
Timeline
7
Reactions
0
Author
Timeline (top)
labeled ×3commented ×2closed ×1cross-referenced ×1
RAW_BUFFERClick to expand / collapse

Problem

Claude can observe the session name (it arrives as a system-reminder after /rename) but cannot set it. Same for /color. Both are user-only meta-commands intercepted by the CLI before reaching the model.

This forces the user to manually label every session, even when Claude has better information about the session's actual focus — especially in long sessions, /loop runs, and scheduled remote agents where no human is at the keyboard to rename.

Acceptance criteria

Claude should be able to:

  1. Set the current session's name to an arbitrary string.
  2. Set the current session's color to one of the supported values.
  3. Read back the current name and color (already partially true for name via system-reminder).

Out of scope (explicitly): any meta-command with side effects on context, config, auth, or process lifecycle (/clear, /compact, /config, /exit, /login, etc.).

Use cases

  • Autonomous /loop and scheduled-agent runs self-label by detected focus instead of staying as the default name.
  • Long sessions rename themselves when topic shifts ("debugging X" → "shipping X").
  • Color-coding by repo / branch / task type without user intervention.

Notes

Implementation is open — a dedicated tool, a whitelisted Skill-style invocation, or anything else that satisfies the criteria above. The point is the capability, not the mechanism.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Allow Claude to set the session name and color [2 comments, 2 participants]