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이 있습니다.