npx claudepluginhub strml/cc-tab-titlesAutomatically sets terminal tab titles to an AI-generated summary of your Claude Code session
A Claude Code plugin that automatically sets your terminal tab title to an AI-generated summary of what you're working on.
Before: Every tab shows Claude Code
After: Tabs show things like Fixing sandbox hook exclusions or Building React dashboard
[slug] new session title.[slug] objective summary using Haiku and sets the tab title via OSC escape sequences. Runs in the background so it doesn't block./renameRun Claude Code's built-in /rename <name> and automatic Haiku titles stop overriding the tab until you /rename to a different value. Use this whenever you want a stable, hand-picked label.
/plugin marketplace add STRML/cc-tab-titles
/plugin install cc-tab-titles@STRML
Restart Claude Code after installing.
claude CLI in your PATH (used for Haiku summarization)python3 availableSet these environment variables to customize behavior:
| Variable | Default | Description |
|---|---|---|
CC_TAB_TITLES_MODEL | claude-haiku-4-5-20251001 | Model for title generation |
CC_TAB_TITLES_EFFORT | low | Effort level for the model |
CC_TAB_TITLES_DEBUG | (unset) | Set to 1 for debug logging to /tmp/claude-tab-titles/debug.log |
Works on both macOS and Linux. Terminal tab title setting uses OSC escape sequences supported by Ghostty, iTerm2, Terminal.app, and most modern terminals.
Claude Code resets the tab title when it starts processing. The UserPromptSubmit hook handles this with a short delay, but for fully persistent titles, add the included statusline.sh to your statusLine config — it re-applies the saved title every ~300ms:
{
"statusLine": {
"type": "command",
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/statusline.sh\""
}
}
If you use Claude Code's sandbox mode, add this to your excludedCommands in ~/.claude/settings.json so the nested claude -p call can reach the API:
{
"sandbox": {
"excludedCommands": ["bash ~/.claude/:*"]
}
}
(This is usually already present if you use other hooks.)
MIT
7-day visitors to each marketplace page
Matt Pocock's skills for real engineering, as an installable Claude Code plugin.
Development marketplace for Superpowers core skills library
Harness-native ECC skills, hooks, rules, MCP conventions, and operator workflows