peon-ping-rename
できること
現在のセッションに名前を付け、peon-pingの通知とターミナルのタブを見分けやすくします。同時に複数のClaude Codeセッションを動かしている人が対象です。
使う場面
- ✓複数のClaude Codeセッションを動かしていて、それぞれに名前を付けたいとき。
- ✓通知に、分かりやすいセッション名を表示させたいとき。
- ✓セッションの名前を自動に戻したいとき。
スキルのリンク
https://github.com/PeonPing/peon-ping/blob/main/skills/peon-ping-rename/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このセッションをAuth Refactorに名前変更して、ターミナルのタブで見つけられるようにしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
フックがこのセッションの名前を保存し、すぐにターミナルのタブのタイトルを更新します。名前を付けずにコマンドを呼ぶと、自動の名前に戻ります。
技術的な内容(元の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:
- 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
よくある質問
セッション名は何文字まで可能ですか?
名前は50文字までに制限されています。
使える文字は何ですか?
英数字、スペース、ドット、ハイフン、アンダースコアが使えます。
名前の変更はモデルのトークンを消費しますか?
スキルによると、フックがコマンドを処理するため、モデルのトークンは使いません。
詳細
作者による元の説明
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
- 更新日
- 2026/10/19
コメント
- …
このリポジトリの他のスキル
peon-ping-config
5.1kエージェントが、音量、サウンドパック、パックの切り替え、どのサウンドカテゴリを鳴らすかなど、peon-pingのサウンド設定を変えられるよう支援します。
peon-ping-log
5.1kエージェントが、Peon Trainerに腕立て伏せやスクワットを記録し、更新された回数を報告できるよう支援します。
peon-ping-toggle
5.1kエージェントが、セッション中にpeon-pingのサウンドをミュートしたり、ミュートを解除したりできるよう支援します。他の変更は設定ツールに案内します。
peon-ping-use
5.1kエージェントが、現在のチャットで再生されるキャラクターの声を選べるよう支援します。GLaDOS、Peon、Kerriganなどが選べます。