Auto-name sessions based on first prompt

Resolved 💬 2 comments Opened Mar 18, 2026 by csabapalfi Closed Mar 18, 2026

Feature request

I'd love sessions to get auto-named based on the first user prompt (similar to how ChatGPT titles conversations). Currently the only auto-naming happens in Plan Mode when accepting a plan.

Current state

  • Manual naming works great: claude -n name, /rename, or R in the session picker
  • But most sessions stay unnamed, making /resume a wall of "explain this function" style entries

Proposed approach

One lightweight option: allow hooks (e.g. UserPromptSubmit or Stop) to return a session_name field that the harness applies. This would let users wire up their own naming logic without changing core behavior.

Alternatively, a built-in option (e.g. --auto-name or a setting) that asks the model to generate a short name after the first exchange.

Why it matters

Named sessions are dramatically easier to find and resume. But naming manually is just enough friction that most sessions stay unnamed.

---
🤖 Created with Claude Code

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗