claude-code - 💡(How to fix) Fix [Feature Request] Programmatic session title / rename API

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…

Code Example

[]
RAW_BUFFERClick to expand / collapse

Bug Description Feature request: programmatic session title / rename API

Today there's no way to set or rename a Claude Code session title from inside the session. The VSCode extension auto-generates titles from conversation content, and they're often unhelpful for later search ("Untitled", generic summaries, etc.). I currently rename sessions by hand to prefix them with a ticket ID (e.g. [BLZ-14683] ...) so I can find them later.

I'd love any one of the following:

  1. A slash command — /rename-session "<title>" that updates the current session's title.
  2. A hook output field — let SessionStart / UserPromptSubmit / PostToolUse hooks return JSON like { "sessionMetadata": { "title": "..." } } to set the title programmatically.
  3. A skill-accessible API / tool — so a skill (e.g. my investigate-issue skill) can set the title as part of its workflow when it has the relevant context (ticket ID, bug summary, etc.). Use case: I have skills that operate on Linear tickets and always know the ticket ID up front. Being able to auto-title the session [BLZ-1234] <summary> would make my session history searchable without manual renaming.

Bonus: a settings.json option for a default title template (e.g. based on git branch — my branches are already named blz-14683-...) would solve the same problem more generally.

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 2.1.104
  • Feedback ID: f7be39f6-5f21-4ef0-bbed-241489343dd2

Errors

[]

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 [Feature Request] Programmatic session title / rename API