Show current task/agent description in terminal title for multi-instance distinction

Resolved 💬 3 comments Opened Mar 17, 2026 by nickname55 Closed Mar 20, 2026

Problem

When running multiple Claude Code instances in separate terminals (e.g., one for feature development, another for debugging), there's no quick way to tell which instance is doing what. You have to switch to each terminal and read the conversation context.

Proposal

Display the current task or subagent description in the terminal title bar / tab name. Claude Code already has task descriptions internally (e.g., "semantic search integration", "fix deploy script") — surfacing them in the terminal title would make multi-instance workflows much more productive.

Example

Instead of seeing two tabs both named claude:

[claude]  [claude]

You'd see:

[claude: semantic search integration]  [claude: fix deploy script]

Why this matters

  • Power users often run 2-3 Claude instances in parallel on different tasks
  • Switching between terminals without context is disorienting
  • Terminal title is already a standard mechanism (programs set it via ANSI escape \033]0;title\007)
  • Minimal implementation effort, high UX impact

Implementation idea

Set terminal title via escape sequence when:

  • A new conversation starts (use first user message summary or project name)
  • A subagent launches (use agent description)
  • A task is created (use task name)
sys.stdout.write(f"\033]0;claude: {task_description}\007")

🤖 Generated with Claude Code

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗