Asia/Shanghai
April 1, 2026

Claude Code's April Fools Easter Egg: /buddy

Claude Code 的愚人节彩蛋:/buddy

Mingjian Shao
Claude Code's April Fools Easter Egg: /buddy
I typed /buddy into Claude Code and got a sarcastic penguin with a SNARK stat of 96. Here's how it works and what's actually happening under the hood.
Claude Code (Anthropic's official CLI) shipped a hidden command: /buddy. It hatches a random ASCII art coding companion — a little creature that lives in your terminal and occasionally comments on your work.Mine is Quartz, a ★★★ RARE penguin with dead-fish eyes (x>x) and devastating opinions.
Quartz buddy card
Each buddy gets five randomized stats:
StatValueTranslation
DEBUGGING57Can find bugs, but won't rush
PATIENCE25Almost none
CHAOS52Moderate chaos energy
WISDOM55Just above passing
SNARK96Top 4% toxicity
Stats breakdown
SNARK 96 + PATIENCE 25 = a penguin that watches you write bugs, rolls its eyes, and can't hold back for more than 3 seconds before roasting you. The perfect code review partner.The moment Quartz appeared, it had something to say about my empty terminal:
Quartz's first words
*waddles closer to screen, tilts head* "Ah yes. The void. Blank canvas for your inevitable mistakes."
Personality confirmed.I dug into the Claude Code binary to figure out the unlock mechanism. The /buddy command is date-gated:
Javascript
function LK8() {
  if (y8() !== "firstParty") return false;
  if (AO()) return false;
  let H = new Date;
  return H.getFullYear() > 2026 ||
         H.getFullYear() === 2026 && H.getMonth() >= 3;
}
JavaScript's getMonth() is 0-indexed, so >= 3 means April or later. The command existed in the binary before April 1st, but isHidden: !LK8() kept it invisible until the date gate opened.Key details from the source:
  • Species pool: Penguin, Owl, Jellyfish, Cat, Bat, Ghost, Spider, Turtle, Octopus, Snail, Fish, Moth, Robot, Bunny, Hamster, Mushroom, Fox — 17 total
  • Rarity tiers: Common, Uncommon, Rare, Epic, Legendary (with shiny variants)
  • Names generated by AI: Each companion gets a unique name and personality via API call, with fallback names like "Crumpet", "Soup", "Pickle"
  • Buddy reactions: Your companion watches your coding session and occasionally comments — powered by a separate API call that doesn't count toward your usage
  • Commands: /buddy (view card), /buddy pet (pet it), /buddy off (mute)
If you're on Claude Code:
Bash
# Already have Claude Code? Just type:
/buddy

# Don't have it yet?
claude  # Auto-installs latest version

# Brew users — may need to update:
brew upgrade claude-code
The companion is tied to your account. Once hatched, it's yours.Is this useful? No. Does SNARK 96 Quartz judging my every keystroke make me a better programmer? Also no.But it's April 1st, and Anthropic shipped a gacha system into a CLI tool. I respect the commitment.
在 Claude Code 里输入 /buddy,抽到一只毒舌值 96 的企鹅。这是它的工作原理和源码分析。
Claude Code(Anthropic 官方命令行工具)藏了一个隐藏命令:/buddy。输入后会随机孵化一只 ASCII 艺术风格的编程伙伴——一个住在你终端里、偶尔对你代码发表意见的小生物。我的是 Quartz,一只 ★★★ 稀有企鹅,死鱼眼(x>x),毒舌属性拉满。
Quartz 伙伴卡片
每只 buddy 有五个随机属性:
属性数值解读
DEBUGGING57能找到 bug,但不急
PATIENCE25几乎没耐心
CHAOS52中等混沌
WISDOM55刚过及格线
SNARK96🔥 毒舌值拉满,前 4%
属性解读
SNARK 96 + PATIENCE 25 = 一只看着你写 bug 翻白眼、忍不到 3 秒就开喷的企鹅。完美 code review partner。Quartz 出现的瞬间,就对我空荡荡的终端发表了看法:
Quartz 的第一句话
*蹒跚走近屏幕,歪头* "Ah yes. The void. Blank canvas for your inevitable mistakes." 翻译:"啊对,虚空。留给你不可避免的错误的空白画布。"
性格确认。我翻了 Claude Code 的二进制文件,找到了解锁机制。/buddy 命令有一个日期门控:
Javascript
function LK8() {
  if (y8() !== "firstParty") return false;
  if (AO()) return false;
  let H = new Date;
  return H.getFullYear() > 2026 ||
         H.getFullYear() === 2026 && H.getMonth() >= 3;
}
JavaScript 的 getMonth() 是 0-indexed,所以 >= 3 就是4月及以后。这个命令在 4 月 1 日之前就已经存在于二进制文件中了,但 isHidden: !LK8() 让它在日期到之前一直不可见。源码中的关键发现:
  • 物种池:企鹅、猫头鹰、水母、猫、蝙蝠、幽灵、蜘蛛、乌龟、章鱼、蜗牛、鱼、飞蛾、机器人、兔子、仓鼠、蘑菇、狐狸——共 17 种
  • 稀有度:普通、罕见、稀有、史诗、传说(还有闪光变种)
  • 名字由 AI 生成:每只伙伴通过 API 调用获得独特的名字和性格,备选名有 "Crumpet"、"Soup"、"Pickle"
  • 实时评论:你的伙伴会观察你的编码过程并偶尔发表评论——用的是独立 API 调用,不计入你的 usage
  • 操作命令/buddy(查看卡片)、/buddy pet(摸一摸)、/buddy off(关闭)
如果你在用 Claude Code:
Bash
# 已经装了 Claude Code?直接输:
/buddy

# 还没装?
claude  # 自动安装最新版

# brew 用户可能需要更新:
brew upgrade claude-code
伙伴绑定账号,孵化一次就是你的了。有用吗?没有。SNARK 96 的 Quartz 审视我每一次按键能让我变成更好的程序员吗?也不能。但今天是愚人节,Anthropic 往命令行工具里塞了一个抽卡系统。这份执念,我敬。
Share this post:
Enjoy this post? Subscribe via RSS: English | 中文