peon-ping-rename
What it does
It names the current session so peon-ping notifications and terminal tabs are easy to tell apart. It is for people who run several Claude Code sessions at once.
When to use it
- ✓When you run several Claude Code sessions and want each one named.
- ✓When you want a notification to show a clear session name.
- ✓When you want to reset a session name back to automatic.
Skill link
https://github.com/PeonPing/peon-ping/blob/main/skills/peon-ping-rename/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Rename this session to Auth Refactor so I can find it in my terminal tabs.”
5 new skills a week. 1 minute to read.
How it works
A hook saves the name for this session and updates the terminal tab title right away. Calling the command with no name resets it to automatic.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
peon-ping-rename
Give the current session a custom name shown in desktop notification titles and the terminal tab title.
How it works
When the user types /peon-ping-rename <name>, a UserPromptSubmit hook intercepts the command before it reaches the model:
- Extracts the session ID and name
- Writes
session_names[session_id] = nameto.state.json - Immediately updates the terminal tab title via ANSI escape sequence
- Returns confirmation (zero tokens used)
On every subsequent hook event, peon.sh reads session_names[session_id] as the highest-priority project name. Multiple tabs in the same repo each get independent names.
Usage
/peon-ping-rename Auth Refactor
/peon-ping-rename API: payments
/peon-ping-rename ← reset to auto-detect
Names are capped at 50 characters. Allowed: letters, numbers, spaces, dots, hyphens, underscores.
Manual fallback (if hook fails)
1. Get the session ID
echo "$CLAUDE_SESSION_ID"
2. Write name to state
python3 -c "
import json, os, time
state_path = os.path.expanduser('~/.claude/hooks/peon-ping/.state.json')
try:
state = json.load(open(state_path))
except:
state = {}
state.setdefault('session_names', {})['SESSION_ID_HERE'] = 'My Session Name'
json.dump(state, open(state_path, 'w'), indent=2)
"
3. Trigger a hook event to refresh the tab title
Submit any prompt — peon.sh will pick up the new name on the next UserPromptSubmit or Stop event.
Reset
/peon-ping-rename
Or remove the session ID from session_names in .state.json directly.
Priority
/peon-ping-rename > CLAUDE_SESSION_NAME env var > .peon-label file > notification_title_script > project_name_map > notification_title_override > git repo name > folder name
FAQ
How long can a session name be?
Names are capped at 50 characters.
Which characters are allowed?
Letters, numbers, spaces, dots, hyphens, and underscores.
Does renaming use up model tokens?
The skill says the hook handles the command without using model tokens.
Details
Original description by the author
Rename the current Claude session for peon-ping notifications and terminal tab title. Use when user wants to give this session a custom name like "/peon-ping-rename Auth Refactor". Call with no argument to reset to auto-detect.
repo: PeonPing/peon-ping
Popularity
- GitHub stars
- 5.1k
- Ranking position
- #15042
- License
- MIT
- Updated
- 10/19/2026
Comments
- …
More skills from this repository
peon-ping-config
5.1kHelps your agent change peon-ping sound settings, such as volume, sound packs, pack rotation, and which sound categories play.
peon-ping-log
5.1kLets your agent log your pushups or squats in the Peon Trainer and report your updated rep count.
peon-ping-toggle
5.1kLets your agent mute or unmute peon-ping sounds during a session, and point you to the settings tool for other changes.
peon-ping-use
5.1kLets your agent pick which character voice plays for the current chat, such as GLaDOS, Peon, or Kerrigan.
Similar skills
blucli
394kHelps your agent find, play, pause, group, and adjust the volume of Bluesound and NAD speakers through the blu command.
camsnap
394kHelps your agent grab snapshots, short clips, or motion events from network cameras and local webcams that you have set up.
eightctl
394kHelps your agent check and control an Eight Sleep pod, including its temperature, alarms, and sleep schedules.