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]

查看原始來源 ↗

更多類似作品