29 minutes ago · Tech · hide

I run a lot of Claude Code sessions in parallel, and the agent view (claude agents) is where I spend my day. By default, Claude Code titles each session with a short summary of its first prompt, written by Haiku. That’s fine until you have three sessions called something like “improve test sharding performance” and you can’t tell which project any of them is about. So I asked Claude to make sessions name themselves after the project, with an emoji. I type “let’s add some emojis to our dotfiles” and get 🏠 dotfiles. Implementation Claude Code hooks can do this out of the box. A UserPromptSubmit hook receives the prompt, and if it prints hookSpecificOutput.sessionTitle, that becomes the session title, same as /rename. The hook also gets session_title when the session already has one, so it only renames on the first prompt and never fights with a manual /rename. { "hookSpecificOutput": { "hookEventName": "UserPromptSubmit", "sessionTitle": "🧪 testlanes" } } The hook is a bash script that…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town