# Claude Code Tab Labels: Tell Your Terminals Apart

> Running several Claude Code sessions? Each terminal tab is relabelled with what it is working on now (your latest prompt, not the first), with a colour per session in the tab title and status line. No API calls, free and open source.

Claude Code Tab Labels: Tell Your Terminals Apart is a free AI agent skill on Agensi by Seunghoon Jung, in Productivity. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Seunghoon Jung](https://www.agensi.io/creators/seunghoon-jung)
- Category: [Productivity](https://www.agensi.io/skills/productivity)
- Version: 1.0
- Last updated: 2026-11-27
- Security: scan passed (2026-11-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/claude-code-tab-labels-tell-your-terminals-apart
- Tags: claude-code, terminal, tabs, productivity, hooks, statusline

## About this skill

When you run several Claude Code sessions side by side, it's easy to forget which tab is doing what. Claude Code titles a session after its first prompt, but half an hour later that tab may be working on something else entirely.

This skill installs **claude-tab-label**, a small open-source CLI that keeps every tab labelled with its **current** task:

- **Tab title**: your latest real prompt behind a coloured square that stays the same for the whole session, e.g. `🟩 fix refund rounding test`
- **Status line**: the same colour, the session name (from `/rename`) and the latest prompt, shown above your existing status line
- **Smart filtering**: short replies like "ok" or "yes" and slash commands keep the current label
- **Resume-aware**: reopening a session restores its label

**Why it's safe to try**
- No API calls and no tokens used: it reads your prompt locally and sets the title
- Backs up `settings.json` before any change, and `uninstall` restores it exactly
- Keeps your existing status line (including claude-gh-guard) running underneath
- Works on macOS, Linux and Windows. Node 18+, zero runtime dependencies, MIT licensed

## Requires

- Node.js 18+
- Claude Code

On Windows, Git for Windows is recommended (Claude Code runs status line commands through Git Bash).

## Known limitations

Requires Node.js 18+. Only works in interactive Claude Code CLI sessions. May require `CLAUDE_CODE_DISABLE_TERMINAL_TITLE=1` to prevent title flickering.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Claude Code Tab Labels: Tell Your Terminals Apart skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill help me manage multiple concurrent Claude Code sessions?

This skill automates terminal title updates and status line enhancements, solving the 'tab overload' problem where multiple Claude Code sessions look identical in your terminal. It adds session-specific colors and task-based labels so you can identify the right window at a glance.

### Does this work with other AI tools like Cursor or Copilot?

This skill is built exclusively for the Claude Code CLI environment. It is not compatible with IDE extensions like Cursor or GitHub Copilot, and it requires Node.js 18+ to run the labeling engine.

### Do I need to manually edit my Claude Code configuration files to get this working?

The setup process is automated; once triggered, the skill modifies your Claude Code `settings.json` to register the necessary terminal sequence hooks. It handles the complex regex injection required to wrap status lines without you needing to manually edit configuration files.

### Can I use Claude Tab Label if I'm working over SSH or inside tmux?

Yes, the skill is compatible with standard SSH and tmux environments, though you may need to ensure your server-side configurations allow for terminal title escape sequences to see the labels correctly.

### Will my tab labels change every time I send a short message like 'ok' or '/clear'?

The skill includes a smart filter that ignores short responses (like 'yes' or 'done') and slash commands. It specifically pulls the first line of your actual task prompts to ensure your tab labels remain descriptive and relevant.

### What exactly is included in this skill package?

Your purchase includes the full automation skill, the underlying `claude-tab-label` utility, and the pre-configured terminal hooks. You also receive documentation on customizing label thresholds and color settings via environment variables.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
