auto-rename-session.sh
AI-powered session title generation (Haiku)
When to use this
- When running parallel Claude sessions and need descriptive tab titles to tell them apart
- When you lose track of what each session was working on after switching contexts
- When you want session history that is browsable by topic rather than by timestamp
How to use
-
Open the template on GitHub and copy its content:
hooks/bash/auto-rename-session.sh -
Place the file inside
.claude/hooks/in your project (or globally in~/.claude/to share across all projects). For shell scripts, make it executable:chmod +x auto-rename-session.sh - Review each command in the script, adjust paths and thresholds for your environment, then test it in a safe context before wiring it into hooks.