[FEATURE] Auto session-title generator ignores CLAUDE.md spelling/brand conventions, with no way to enforce or post-process

Open 💬 0 comments Opened Jun 22, 2026 by danstotts-ops

What

The automatic session-title generator does not honor spelling/brand conventions defined in CLAUDE.md, and there is no supported way to enforce them or post-process the generated title.

Repro

  1. Put a spelling rule in CLAUDE.md, e.g. Use "Runpod", never "RunPod".
  2. Start a session and talk about that company.
  3. The auto-generated session title comes back as "RunPod ..." (the model's training-default capitalization), ignoring the CLAUDE.md rule.

Why it happens (as far as I can tell on v2.1.138)

The title is produced by a separate, isolated Haiku call that does not load CLAUDE.md, memory, or output-style instructions, so user spelling/brand rules never reach it.

Why there's no workaround today

  • No hook event fires after the namer with the generated title as input, so a simple find/replace (RunPod -> Runpod) is impossible.
  • The only title override is a SessionStart hook returning hookSpecificOutput.sessionTitle, but SessionStart fires at startup with no conversation content (payload is just source/cwd/session_id/etc.). So a hook can only stamp a filesystem-derived name, not a content-aware corrected title.
  • UserPromptSubmit/Stop do not accept sessionTitle.

Net result: for users who don't work in per-project git repos (e.g. working out of a home directory), the only "fix the source" lever produces worse titles than the auto-namer, and the smart auto-title can't be spelling-corrected at all.

Requested fix (either would solve it)

  1. Have the auto-namer respect simple spelling/brand conventions from CLAUDE.md (even a lightweight pass), or
  2. Expose the generated title to a post-name hook so it can be rewritten (this overlaps with #69411, which requests exposing the auto-generated title to hooks/templates).

Environment

  • Claude Code 2.1.138
  • macOS

Either path would let teams keep brand spelling consistent in session titles without giving up content-aware auto-naming.

View original on GitHub ↗