Skip to content
Skillpedia
Misc5.1k · #15042

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.md

Copy 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

Use this skill to help me: https://github.com/PeonPing/peon-ping/blob/main/skills/peon-ping-rename/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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:

  1. Extracts the session ID and name
  2. Writes session_names[session_id] = name to .state.json
  3. Immediately updates the terminal tab title via ANSI escape sequence
  4. 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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills