ClaudeModsClaude Code 模组目录
☰
● 0 人在线 · 浏览 0 次
+ 提交作品
← 返回作品集
Reddit 帖子 · 游戏与娱乐 / 通知与提醒 / 主题与外观 / 工具与集成

Claude Pets:终端里的像素宠物成长 mod — Claude Code 插件 · ClaudeMods

回报这个作品这是你的作品?认领

在 ClaudeMods 了解这款 Claude Code 插件,查看原始来源与所需权限。 一个住在终端里的像素宠物 mod,会随你的工作方式成长为不同形态,还能陪玩小游戏。

uuppinote@uppinote
原帖图片1
已翻译

关于这个 mod

作者利用 Claude Code 的 function-hook API 做了个完全“没必要”的东西:一只住在会话旁边窗格里的像素宠物。它在小院子里蹦跳眨眼,工具运行时会停下并显示“…”,一轮结束时跳起来说“nice work!”,安静约两分钟后打盹,速率限制窗口超过 80% 时会流泪。用 /pet pat 可获得爱心和呼噜声。它随你成长:工具调用、完成的回合、抚摸和输出 token 给经验(只算输出 token,因为输入和缓存随对话长度增长而非工作量)。升级所需经验为 25×n²,一晚可到 Lv 5,此后放缓。Lv 15 变成带配饰的少年,Lv 40 进化。它还会根据你的使用方式形成性格:多用工具是抱笔记本的工人(成年后挥镐),长回合是学者,常抚摸是甜心,常喂游戏零食是玩家,这也是它进化的形态,二十分之一会得到稀有形态。院子会随之填满,并随你的时钟从早晨阳光到月亮星星。偶尔完成的回合会掉落礼物,三十二分之一的新宠物是闪光版。还有 /pet play 和 /pet quest 两个小游戏供等待长任务时玩。没有饥饿、衰减或死亡,只为让编码环境更温馨。支持八种小动物(猫、小鸡、狗、史莱姆、兔子、仓鼠、企鹅、青蛙)。整个项目是一个 register.tsx 响应会话事件,用半块字符在终端绘制,桌面和移动端用 SVG 卡片。作者花了约三天、58 次提交、19 个 PR 完成。mods AP

安装

请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。

/plugin marketplace add uppinote20/claude-pets
/plugin install pets@claude-pets
原文 / README

When Claude Code (Anthropic's coding CLI) got mods, I wanted to see what its function-hook API could actually do, and ended up building something completely unnecessary with it: a pixel pet that lives in a pane next to your session. https://reddit.com/link/1wwwq8v/video/2iauky8q6bth1/player It wanders around a little yard, bouncing and blinking. While tools run it stops and goes . . . , when a turn finishes it hops with a "nice work!", after about two minutes of quiet it naps, and when a rate-limit window passes 80% it tears up. /pet pat gets you hearts and a purr. It grows with you. Tool calls, finished turns, pats and output tokens give XP (only output tokens, since input and cache grow with conversation length, not with work done). Level n+1 takes 25 × n² XP, so you'll hit Lv 5 in an evening and it slows down from there. At Lv 15 it becomes a teen with an accessory, and at Lv 40 it evolves. Then I got carried away. It picks up a personality from how you use it: mostly tools and it's a worker that holds up a laptop (and swings a pickaxe as an adult), mostly long turns and it's a scholar that stops to read, lots of pats and it's a sweetie, lots of game snacks and it's a gamer. That's also the form it evolves into, and one in twenty gets a rare one instead. The yard slowly fills in to match, a building site or a library corner or a garden, and follows your clock from morning sun to moon and stars. Every so often a finished turn drops a gift, and one new pet in 32 shows up shiny. There are even two tiny games, /pet play and /pet quest , for when you're waiting on a long task. No hunger, no decay, no dying. The whole point is to make the coding environment a bit cozier, not to give you one more thing to feel guilty about. /plugin marketplace add uppinote20/claude-pets /plugin install pets@claude-pets Then /pet to let it out. There are eight critters (cat, chick, dog, slime, bunny, hamster, penguin, frog). For anyone curious: the whole thing is one register.tsx reacting to session events, drawn as half-block characters in the terminal and as an SVG card on desktop and mobile. I built it over about three days of Claude Code sessions (58 commits, 19 PRs), which says more about my self-control than anything. The mods API is early access, so a Claude Code update might break it until I catch up. I've mostly lived with it in the terminal, so if the card looks off on desktop, VS Code or mobile I'd really like to know. A new species is just a 12×12 and an 8×8 sprite written as string arrays, so new critters as PRs would make my day. https://github.com/uppinote20/claude-pets submitted by /u/uppinote [link] [comments]

查看原始来源 ↗

更多类似作品