buddy-reroll

Installation
SKILL.md

Claude Code Buddy Reroll

背景原理

Claude Code 的 /buddy 寵物系統原理:

  • Bones(骨架):外觀、物種、稀有度、屬性,全部由 hash(userID + SALT) 確定性生成,每次啟動實時計算
  • Soul(靈魂):名字與個性,由模型生成,存在 ~/.claude.jsoncompanion 欄位
  • SALT'friend-2026-401'(Claude Code 2.1.89+)
  • reroll 原理:暴力搜尋新的 15 字元 salt,使 hash(userID + newSalt) 骰出目標寵物,然後 patch Claude Code binary

userID 來源

config.oauthAccount?.accountUuid  // OAuth 登入用戶
?? config.userID                   // API Key 用戶(存在 ~/.claude.json)
?? 'anon'
Installs
15
GitHub Stars
5
First Seen
Apr 1, 2026
buddy-reroll — kevintsai1202/buddy