session-nametag
A Claude Code mod that names and colors every session when it starts, so a
desktop full of sessions (and the Remote Control list on your phone) is easy
to tell apart.
/rename [Opus 5.5] hess-laundry/fix/backfill #2 · fix the backfill script @ LUIS-DESKTOP Wed Oct 7th, 2026 9:05 am
/color pink
- Name from a template: model, folder, git branch, instance number,
machine, start time. Change the style with
/nametag <preset>.
- Topic you set:
/nametag topic fix the backfill script puts what you
are working on in the name.
- Color per folder: each folder hashes to one of the eight
/color
colors, and moves to the next free one if another live session has it.
- Stays current: after a turn that switched branches, a
/model, or a
! cd you type into another folder, the name is updated. A /rename you type yourself stops that for the session.
- Resume aware: a session reopened with
--resume or /relaunch gets its
number and color back. A session it never tagged (an older resume, or one
already running when you install the mod) keeps its name and color until
you run /nametag force.
Install
/plugin install session-nametag --marketplace lperezmo/session-nametag
Mods need CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1.
Presets
#2 only shows when a second session is open in the same folder, and the
branch only shows inside git.
| Preset | Example |
|---|
compact | hess-laundry #2 |
branch | hess-laundry/fix/backfill #2 |
status | 🧺 hess-laundry/fix/backfill #2 · fix the backfill script |
host | hess-laundry/fix/backfill #2 @ LUIS-DESKTOP |
model | [Opus 5.5] hess-laundry/fix/backfill #2 @ LUIS-DESKTOP |
timed | [Opus 5.5] hess-laundry/fix/backfill #2 @ LUIS-DESKTOP Wed 9:05 am |
full (default) | [Opus 5.5] hess-laundry/fix/backfill #2 · fix the backfill script @ LUIS-DESKTOP Wed Oct 7th, 2026 9:05 am |
Your own template
/nametag template {folder}{/branch}{ #nth}{ · topic}
/nametag help lists every token.
| Token | Example |
|---|
model | Opus 5.5 |
family | Opus |
folder | hess-laundry (the repository, so worktrees and subfolders share it) |
dir | the folder the session started in |
remote | lperezmo/hess-laundry |
branch | fix/backfill |
nth | 2 (hidden for the first session in a folder) |
num | 1 (always shown) |
host | LUIS-DESKTOP |
topic | fix the backfill script (set with /nametag topic) |
codename | brisk-otter (fixed for the session) |
sigil | 🧺 (an emoji per folder) |
todaycount | 7 (the 7th session started today on this machine) |
datetime | Wed Oct 7th, 2026 9:05 am |
date | Oct 7th, 2026 |
day | Wed |
time | 9:05 am |
updated | 2:14 pm, or Thu 2:14 pm on a later day |
updateddatetime | Thu Oct 8th, 2026 11:00 am |
updateddate | Oct 8th, 2026 |