hal-session-auto-rename

Reviewed at commit 9ce7faa

Automatically name each session and rename it as the conversation evolves

Made by
Vinta Chen
What we checked

Names your session after the first turn and renames it every few turns (default 5) by sending the recent conversation text to Haiku on your own Claude account, or to a local Ollama if you choose that. It uses the /rename command, never touches a title you set yourself, and stores only which sessions you named and its own last title.

Review details

Static review of the source at the pinned commit; not run. Delta review of the changes since c2bb1a7; the rest carries over from the review at that commit. The delta only touches plugin.json (version 2.0.7, an extra keyword, and the local Ollama option renamed from gemma4:26b-nvfp4 to gemma4:31b-mlx); hooks/register.ts is unchanged in the range, and it takes the model name from the option text after the slash, so the new name needs no code change. Registers turn.complete (schedules title generation on the first turn and every N turns, skipping aborted turns and sub-agents), classic.UserPromptSubmit, command.run for rename, classic.SessionStart, session.end and session.append. Runtime calls: $.session.messages and $.session.id (sends the first 1500 and last 2000 characters at most, without slash command and system-reminder rows), $.model.complete (claude/haiku, 30 tokens max, 30 s timeout, uses tokens on the user's account), $.http.fetch to http://localhost:11434/api/generate only when the Ollama option is chosen, $.command.run('rename'), $.store.get and $.store.set keyed by session id, $.env.get of CLAUDE_CODE_ENTRYPOINT, $.clock.after. The title is sanitized and slugified before use. No files are read or written, no programs run, no other hosts. npm dependencies: none.

What it uses
  • Reads your prompts: yes
  • Sees tool calls: no
  • Blocks or changes tool calls: no
  • Reads or writes files: no
  • Runs programs on your machine: no
  • Calls the model (uses tokens): yes
  • Sends data over the network: yes
  • Stores data: yes
  • Shows something on screen: no
Hooked events
Made this mod? Add a badge to your README

modsforClaude badge for hal-session-auto-rename

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/hal-session-auto-rename.svg)](https://modsforclaude.com/mods/hal-session-auto-rename/)

← All mods