Feature request: Display PID or session identifier in terminal title
The Problem
When one finds oneself running multiple Claude Code sessions against the same repository—as one occasionally must when juggling parallel workstreams—the terminal window titles become rather unhelpfully identical. Each proudly declares "my-project" (or whichever repository you're working in), offering precisely zero assistance in distinguishing the session that's been productive for three days from the one that's quietly consuming 100% CPU in the background like an uninvited guest at a buffet.
This afternoon I discovered a zombie Claude process that had been spinning since Saturday, blissfully unaware its terminal had long since departed. Identifying which process to kill required a rather tedious archaeological expedition through lsof, ps, and pgrep. The culprit and the victim shared a working directory; only their PIDs told them apart.
The Proposal
Include the PID (or a short session identifier) in the terminal window title. Rather than:
my-project
Perhaps:
my-project (31302)
Or even:
my-project [a3f9]
Why This Matters
- Multiple sessions, same repo: Parallel workstreams, background tasks, or simply forgetting one left a session running
- Orphaned processes: When a session loses its terminal, the title was the last hope for identification
- Activity Monitor confusion: macOS displays process names as version numbers (e.g., "2.1.12"), making the terminal title the only human-readable identifier
The implementation cost is trivial; the quality-of-life improvement for power users, considerable.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗