[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
- Put a spelling rule in
CLAUDE.md, e.g.Use "Runpod", never "RunPod". - Start a session and talk about that company.
- The auto-generated session title comes back as "RunPod ..." (the model's training-default capitalization), ignoring the
CLAUDE.mdrule.
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
SessionStarthook returninghookSpecificOutput.sessionTitle, butSessionStartfires at startup with no conversation content (payload is justsource/cwd/session_id/etc.). So a hook can only stamp a filesystem-derived name, not a content-aware corrected title. UserPromptSubmit/Stopdo not acceptsessionTitle.
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)
- Have the auto-namer respect simple spelling/brand conventions from
CLAUDE.md(even a lightweight pass), or - 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.