Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By thomast8v2.0.1MITIn 1 marketplace
Auto-names each Claude Code session with a kebab-case Haiku title. A Stop hook spawns a detached background worker after the first assistant turn (zero prompt latency, no hook-timeout race) that titles off both prompt and reply and writes a custom-title record to the transcript. One-shot per session, recursion-safe, slugified-prompt fallback.
Run automatically on Claude Code events. Claude doesn't decide.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
UserPromptSubmit hook that renames each Claude Code session on its very first prompt by asking Haiku for a kebab-case summary.
See the marketplace README for install/uninstall, examples, and prerequisites. This file is a short plugin-local reference.
UserPromptSubmit per session, runs claude -p --model haiku --no-session-persistence with a "give me a 3-5 word kebab-case title" instruction.hookSpecificOutput.sessionTitle. The Claude Code harness applies that to the session pill, the /resume list, and the on-disk session JSON.{}.The harness honors sessionTitle only on the hook's first invocation per session. Emitting it on later invocations is silently ignored, which means a naive "rename on every prompt" design would burn ~10 seconds of Haiku latency per prompt for zero effect. A marker file at $TMPDIR/claude-session-titles/<session-id>.done enforces the one-shot.
The nested claude -p call itself fires UserPromptSubmit, which would re-invoke this script. The outer invocation sets CLAUDE_TITLE_HOOK_NESTED=1 before calling claude; the inner invocation sees that env var and exits with {} immediately.
If claude isn't on $PATH, the call times out (20s perl alarm), or the output is empty, the script slugifies the first 50 characters of the user's prompt instead. You always get some title.
hooks/hooks.json — wires the script to the UserPromptSubmit event with a 25s harness-level timeout and a "Generating session title..." status message.hooks/session-title.sh — the script itself.Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub thomast8/claude-session-title --plugin session-titlePlugins from other owners that cover similar ground