Agent Teams: Color-code iTerm2 tab/pane headers to match agent color
Feature Request
When using Agent Teams with teammateMode: "iterm2", each teammate spawns in a new iTerm2 split pane. Teammates are assigned colors (blue, green, yellow, etc.) which are shown in the main conversation.
Request: Set the iTerm2 tab/pane header color to match the agent's assigned color when spawning. This makes it easy to visually identify which pane belongs to which agent.
How it could work:
iTerm2 supports tab coloring via ANSI escape sequences:
# Set tab color to blue
printf "\033]6;1;bg;red;brightness;30\a\033]6;1;bg;green;brightness;100\a\033]6;1;bg;blue;brightness;255\a"
When the teams system spawns a teammate pane, it could send the appropriate escape sequence based on the agent's color assignment (blue, green, yellow, etc.) to the new session.
Current workaround: Tab names are set via it2 session set-name, but without color coding it's hard to distinguish agents at a glance in a busy workspace.
🤖 Generated with Claude Code
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗