terminal-title

Updates terminal window titles to reflect the current Claude Code task.

Updated Aug 12, 2026
One-click install
npx skills add https://github.com/Barbaros911/As-mine --skill terminal-title-barbaros911
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: terminal-title
Source: https://github.com/Barbaros911/As-mine/tree/main/.claude/skills/claude-code-terminal-title
Command: npx skills add https://github.com/Barbaros911/As-mine --skill terminal-title-barbaros911

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Developers running multiple Claude Code terminal sessions lose track of which terminal handles which task, forcing them to click through windows to find the right session. ## Core Features & Use Cases - Automatic Title Updates: Sets a descriptive terminal window title at the start of each session and whenever the high-level task changes. - Directory Prefixing: Automatically prefixes titles with the current project directory name for at-a-glance identification across terminals. - Sanitized Input Handling: Strips control characters, limits title length, and writes titles atomically to a file so shell hooks can preserve them. - Use Case: You run three Claude Code terminals on different repos. Each window shows titles like my-project | Debug: Auth API Flow, so you instantly pick the right one. ## Quick Start Ask Claude to help with any task and the terminal title will update automatically to summarize that task.

Frequently Asked Questions about terminal-title

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set the terminal window title from a bash script?▼

Use ANSI escape sequences by printing '\033]0;Your Title\007' to the terminal. This works in xterm-compatible terminals, iTerm2, Alacritty, screen, and tmux, and the script sanitizes input and limits length to 80 characters.

How to identify multiple Claude Code terminal sessions?▼

Set a descriptive window title per session summarizing its task, prefixed with the project directory name. This produces titles like 'my-project | Debug: Auth API Flow' so each terminal is recognizable at a glance.

Does the title script work with tmux and iTerm2?▼

Yes, the script detects xterm, rxvt, screen, and tmux terminal types and falls back to a generic escape sequence for others. It is compatible with macOS Terminal, iTerm2, Alacritty, and most modern emulators.

Why does my terminal title reset after running a command?▼

Shell precmd hooks can overwrite window titles. The script writes the title atomically to ~/.claude/terminal_title so shell hooks can read and preserve it across prompt redraws.

Can I add a custom prefix to the terminal title?▼

Yes, set the CLAUDE_TITLE_PREFIX environment variable, for example an emoji. The script sanitizes it to 20 characters and prepends it before the directory name in the final title.