claude-code - 💡(How to fix) Fix [Feature Request] Customizable session titles with project prefix support [1 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#54659Fetched 2026-04-30 06:39:35
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
labeled ×2

Fix Action

Fix / Workaround

sessionTitlePrefix in settings.json, with template vars like {cwd_basename}_ A SessionTitleGenerate hook to transform the title Or just make the title generator respect CLAUDE.md Currently there's no workaround — CLAUDE.md isn't read by the title generator, and hooks can't rename sessions. Thanks!

RAW_BUFFERClick to expand / collapse

Feature request: customizable session titles

Please add a way to influence auto-generated session titles. My use case: I want every title prefixed with the current project folder name, so sessions are easy to scan and group by project in history.

Any of these would work:

sessionTitlePrefix in settings.json, with template vars like {cwd_basename}_ A SessionTitleGenerate hook to transform the title Or just make the title generator respect CLAUDE.md Currently there's no workaround — CLAUDE.md isn't read by the title generator, and hooks can't rename sessions. Thanks!

extent analysis

TL;DR

Implementing a sessionTitlePrefix setting or a SessionTitleGenerate hook could allow for customizable session titles.

Guidance

  • Consider adding a sessionTitlePrefix option to the settings.json file, allowing users to specify a custom prefix with template variables like {cwd_basename}.
  • Introduce a SessionTitleGenerate hook that enables users to transform the auto-generated title based on their specific needs.
  • Evaluate the feasibility of making the title generator respect the CLAUDE.md file, potentially leveraging its content to customize session titles.
  • Investigate the current title generation logic to determine the best approach for integrating custom title prefixes or hooks.

Example

// settings.json example
{
  "sessionTitlePrefix": "{cwd_basename} - {session_name}"
}

Notes

The ideal solution depends on the existing architecture and the flexibility of the current title generation system. It may be necessary to weigh the trade-offs between adding a simple prefix setting versus introducing a more complex hook system.

Recommendation

Apply a workaround by introducing a sessionTitlePrefix setting, as it seems to be a straightforward and user-friendly solution, allowing for easy customization of session titles without requiring significant changes to the existing system.

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] Customizable session titles with project prefix support [1 participants]