Human readable benefits: When you’re running multiple Claude sessions in tmux panes, they all look the same. This gives each one a topic label in the status bar — automatically set from your first message — so you can glance at your panes and instantly know which session is doing what. No manual tagging, no inference cost, resets cleanly on /clear. Claude prompt to implement: Set up an auto-topic status line for Claude Code. Create a UserPromptSubmit hook that captures the first user message of each session (truncated to 60 chars) and writes it to /tmp/claude-topics/{session_id}. Add a SessionEnd hook that deletes that file when the reason is “clear”, so /clear resets the topic for the next conversation. Update the status line script to read the session’s topic file (using session_id from the JSON input) and append it to the display. The hooks go in ~/.claude/settings.json under hooks.UserPromptSubmit and hooks.SessionEnd, and the scripts go in ~/.claude/hooks/. This gives each concurrent Claude session its own topic label in the status bar, automatically set from your first message, with no inference overhead. submitted by /u/Latter-Tangerine-951
Originally posted by u/Latter-Tangerine-951 on r/ClaudeCode
