मुख्य सामग्री पर जाएँ
Skillpedia
विविध5.1k · #15042

peon-ping-rename

यह क्या करती है

यह सेशन का नाम तय करती है, ताकि peon-ping सूचनाएँ और टर्मिनल टैब आसानी से अलग पहचाने जा सकें। यह उन लोगों के लिए है जो एक साथ कई Claude Code सेशन चलाते हैं।

कब इस्तेमाल करें

  • ✓जब आप एक साथ कई Claude Code सेशन चलाते हैं और हर एक का नाम रखना चाहते हैं।
  • ✓जब आप चाहते हैं कि सूचना में साफ़ सेशन नाम दिखे।
  • ✓जब आप सेशन का नाम वापस स्वचालित पर सेट करना चाहते हैं।

Skill का लिंक

https://github.com/PeonPing/peon-ping/blob/main/skills/peon-ping-rename/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/PeonPing/peon-ping/blob/main/skills/peon-ping-rename/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“इस सेशन का नाम Auth Refactor रख दीजिए, ताकि मैं इसे अपने टर्मिनल टैब में ढूँढ सकूँ।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एक hook इस सेशन के लिए नाम सहेजता है और टर्मिनल टैब का शीर्षक तुरंत अपडेट करता है। बिना नाम के कमांड देने पर यह स्वचालित पर लौट जाता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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

अक्सर पूछे जाने वाले सवाल

सेशन का नाम कितना लंबा हो सकता है?

नाम 50 अक्षरों तक सीमित हैं।

कौन-से अक्षर चलते हैं?

अक्षर, संख्याएँ, स्पेस, बिंदु, हाइफ़न और अंडरस्कोर।

क्या नाम बदलने में मॉडल टोकन खर्च होते हैं?

स्किल कहती है कि यह hook कमांड को बिना मॉडल टोकन खर्च किए संभालता है।

जानकारी

लेखक का मूल विवरण

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

लोकप्रियता

GitHub स्टार
5.1k
रैंकिंग में स्थान
#15042
लाइसेंस
MIT
अपडेट की गई
19/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills