SuperAPI AI 工具集

buddy-reroll

智能体与模型

查看项目

更新于 10-15 23:45

技能介绍

用途:帮助使用者在 Claude Code 的 /buddy 宠物系统中刷出指定物种或稀有度的宠物,例如 legendary 五星。

原理:宠物外观、物种、稀有度、属性由 hash(userID + SALT) 确定性生成,SALT 为 'friend-2026-401'(Claude Code 2.1.89+)。reroll 通过暴力搜索新的 15 字符 salt,使 hash 骰出目标宠物,然后 patch Claude Code binary。userID 自动侦测,OAuth 与 API Key 用户均适用。

使用方式:先确认 Python 已安装(Windows 用 py --version,Mac/Linux 用 python3 --version)。Bun 通常随 Claude Code 已安装,若无法执行再安装:Windows 用 powershell -c "irm bun.sh/install.ps1 | iex",Mac/Linux 用 curl -fsSL https://bun.sh/install | bash。然后进入 scripts/claude-pet-rebirth 目录执行,例如 Windows:py reroll.py --species owl --rarity legendary;Mac/Linux:python3 reroll.py --species owl --rarity legendary。执行前必须关闭 Claude Code 主程序(Terminal / Desktop App),VSCode 扩充不需关闭,否则 binary 被占用会导致 patch 失败。完成后重启并输入 /buddy 领取。

主要选项:--species 物种、--rarity 稀有度(默认 legendary)、--eye 眼睛、--hat 帽子、--shiny 闪光、--peak 最强属性、--dump 最弱属性、--name 名字。可用物种包括 duck、goose、blob、cat、dragon、octopus、owl、penguin、turtle、snail、ghost、axolotl、capybara、cactus、robot、rabbit、mushroom、chonk。稀有度由低到高为 common(60%)、uncommon(25%)、rare(10%)、epic(4%)、legendary(1%)。

限制:条件越多搜索越慢,legendary + shiny + 指定眼睛帽子 peak 同时指定时,期望尝试次数可达数千万次,需数分钟。建议优先指定物种与稀有度。若 SALT 变更,需更新 patcher.py 的 ORIGINAL_SALT 常数。Windows 上若 python 找不到,改用 py 指令。