[FEATURE] API/tool for setting terminal tab title from within a session
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Claude Code already sets the terminal title internally (green indicator on completion, occasional workstream labels),
but there's no way for the agent to programmatically set the tab title to reflect the current workstream.
ANSI escape sequences (\033]0;Title\007) sent via the Bash tool are captured by the TUI and never reach the parent
terminal. /dev/tty fails in MSYS, and PowerShell's $Host.UI.RawUI.WindowTitle targets the wrong layer.
Proposed Solution
Use case: When running multiple Claude Code sessions in parallel tabs, labeling each with the active workstream
("Inbound Triage — Creator Economy", "Market Analysis — Edge AI") helps navigate between them.
Proposed solutions (any would work):
- A setTitle tool callable from the agent
- Automatic title derived from the active slash command/skill (zero agent-side changes)
- Pass-through for ANSI title sequences from Bash output to the terminal emulator
Alternative Solutions
_No response_
Priority
Medium - Would be very helpful
Feature Category
CLI commands and flags
Use Case Example
_No response_
Additional Context
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗