ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 plaxagoras

clawd-tales

像素風 Clawd 在提示列上方演出每一次工具呼叫,小幫手依模型顏色走進畫面。以終端機為主,不呼叫模型。

已翻譯

關於這個 mod

clawd-tales

一隻像素風的 Clawd,在提示列上方的橫帶裡演出 Claude Code 正在做的事。

Claude Fables 會在桌面版 app 裡,用模型寫出你這場工作階段的漫畫。clawd-tales 改在終端機裡用範本畫,所以不花任何 token。

clawd-tales demo

45 秒的 /tales demo:Clawd 孵化,小幫手走進來,測試失敗、蟲子掉下來,Claude 在叫你,暴風雨來了,最後 Clawd 長大。

低頭一瞥就知道 Claude 在做什麼。紅色的 ! 加上跳起來的 Clawd,代表它在等你。下雨代表情境快滿了。

每次工具呼叫都有一個姿勢和一行說明。Read 時 Claude 翻書,Edit 時挖土,Grep 時躡手躡腳,Bash 時奔跑,網路搜尋時飛起來。子代理會以各自的小生物走進畫面,顏色依模型而定。

橫帶裡的一分鐘

你請 Claude 修一個失敗的測試。Clawd 跑去找 pytest,三隻蟲子掉到地上。它翻開書讀測試檔,接著挖進程式碼裡。紅色的 ! 冒出來,Clawd 跳起來:Claude 想執行一個指令。你在幾秒內核可,Clawd 笑開來,冒出愛心。測試轉綠,Clawd 把三隻蟲子全吃掉,這麼長的一輪就以一支舞收尾。

畫面會顯示什麼

| Claude Code 裡發生的事 | 橫帶裡的畫面 | |---|---| | 一次工具呼叫 | Clawd 擺出對應姿勢,說明列出檔案、模式或指令 | | 子代理啟動 | 一個小幫手走進來:Opus 是紫色,Sonnet 是青色,Haiku 是綠色,Fable 是金色 | | 子代理完成 | 它跑回 Clawd 身邊,兩個一起歡呼,冒出愛心 | | 權限對話框開啟 | Clawd 跳到紅色 ! 旁,說明變紅色 | | 測試執行失敗 | 蟲子掉到地上,一個失敗的測試一隻(最多 8 隻) | | 測試轉綠 | Clawd 把蟲子吃掉 | | 待辦清單 | 待辦項目像豆子一樣擺在地上,完成一項就吞掉一顆 | | 情境變滿 | 50% 出現雲,70% 下雨並撐傘,85% 打雷 | | 這一輪結束 | 不到 4 秒點個頭,到一分鐘內跳一下,到五分鐘內跳舞,更久則在山頂插旗。接著 Clawd 坐下、打哈欠、睡著。橫帶在 3 分鐘後隱藏;你的下一個提示會叫醒 Clawd,新的小幫手出現時橫帶也會回來 | | 方案額度用到 100% | Clawd 睡到重設時間。重設前一分鐘伸懶腰,額度重設後起床 | | Claude 在等子代理 | Clawd 戴上耳機。有兩個以上在外面時,它一次耍多顆球,每個小幫手一顆,用該小幫手的顏色 | | 三個以上子代理在外 | Clawd 繫上領帶,它現在是老闆了 | | 一次 MCP 工具呼叫 | 一圈顏色從 Clawd 身上擴散開來,每個伺服器各有自己的顏色 | | 每 50K token | 撒彩帶,這一輪最後的說明會顯示數量 | | Claude 在兩次工具呼叫之間想了一陣子 | 在它保持的姿勢上方,慢慢填滿一個思考泡泡 | | 連續五次工具呼叫都順利 | 出現連擊計數。到十次時,Clawd 戴上皇冠 | | 子代理失敗 | 它絆倒,再走回 Clawd 身邊,被摸摸頭 | | 同時有四個以上子代理在外 | 閒著的排成一列,跟在第一個後面走 | | 連續兩次錯誤 | Clawd 變成鬥雞眼,星星繞著轉。第三次就掀桌 | | 你很快核可權限提示 | 冒出愛心。讓一個提示等超過 30 秒,Clawd 就開始冒汗,說明裡出現計時器 | | 對話被壓縮 | Clawd 拿掃帚掃過舞台,天氣放晴 | | 工作階段開始 | Clawd 從天上掉下來。接續的工作階段會揮手打招呼。第一次工作階段,Clawd 從蛋裡孵出來 | | 200 次工具呼叫 | 幼體脫掉蛋殼帽,長成它最常做的那種工作:學者(閱讀)、偵探(搜尋)、建築工(編輯)、駭客(指令)、探險家(網路)或船長(小幫手)。每種都有專屬帽子,形態會隨你的習慣改變 |

小細節

  • 在提示裡謝謝 Claude,Clawd 會臉紅、變成愛心眼。如果開頭是「no」或「wrong」,它會揉著頭、眉毛上揚,不敢看你。
  • Clawd 會依工作換裝:規劃模式戴巫師帽,長時間一輪進行兩分鐘後戴安全帽,贏得皇冠後這一輪剩下的時間戴墨鏡。
  • git commit 會包一個包裹並噴出彩帶。git push 把紙飛機射出舞台。rm -rf 讓 Clawd 摀住眼睛。安裝套件時,箱子從天上掉下來。
  • 找不到指令時,sl 火車會開過舞台。
  • 等你的時候,Clawd 會揮手、眨眼、抓頭、東張西望、看蝴蝶。等得更久就去釣魚。睡著時,它會夢到最後做的那件事。
  • Clawd 偶爾會左右看,小幫手走進來時會轉頭看。坐著時會呼吸。
  • 天空跟著你的時鐘走:白天有太陽,晚上有星星。凌晨 1 點到 5 點,Clawd 戴著睡帽,旁邊放一杯咖啡。
  • 萬聖節、聖誕節、新年、情人節和 4 月 1 日,各有一套服裝或額外的彩蛋。
  • 偶爾會有鯨魚、幽浮或火車經過。一百場工作階段裡有一場會出現閃亮的 Clawd。

說明下方有一行狀態列,顯示 ctx 74% · 5h 22% · 7d 23%,再加上待辦數量和小幫手名單。數字到 80% 變黃色,到 95% 變紅色。

橫帶會隨終端機縮小:8 行時是完整橫帶,6 行時沒有天空,再小就只剩一行。

安裝

需要支援 mods(函式 hook)的 Claude Code 版本。在 2.1.289 上開發與測試;用 claude --version 看你的版本。安裝後開一個新的工作階段並輸入 /:如果清單裡沒有 /tales,代表 mod 沒有載入,你的版本很可能還不支援 mods。

claude plugin marketplace add plaxagoras/clawd-tales
claude plugin install clawd-tales@clawd-tales

開新的工作階段,然後執行 /tales demo。

只想在一個工作階段試用、不安裝:

git clone https://github.com/plaxagoras/clawd-tales
claude --plugin-dir ./clawd-tales

指令

| 指令 | 作用 | |---|---| | /tales demo | 播放一段短故事:孵化、小幫手、蟲子、豆子、天氣、權限請求和長大。不會動到你自己的 Clawd 的進度 | | /tales calm | 每秒一格,工具呼叫之間沒有人到處亂走 | | /tales lively | 回到每秒 5 格(預設) | | /tales off / /tales on | 隱藏或顯示橫帶 | | /tales | 顯示目前狀態 | | /tales hat <name> | 戴上高帽、畢業帽、船長帽、巫師帽、安全帽、獵鹿帽、毛帽、探險帽或蛋殼(none 脫掉)。跨工作階段保存 | | /tales face <name> | 眼鏡、墨鏡或鬍子(none 拿掉)。跨工作階段保存 | | /tales scarf on / off | 每個專案依專案資料夾得到自己的圍巾顏色,方便你分辨不同儲存庫。預設開啟 | | /tales holiday <name> | 預覽節日造型,直到下次重新啟動(auto 改回依日曆) |

開關與 calm 的設定會跨工作階段保存。

運作方式

它是一個 Claude Code mod:由函式 hook 組成的外掛,寫在 hooks/register.tsx。它監聽 tool.call、agent.spawn、classic.PermissionRequest、classic.UserPromptSubmit(用來判斷規劃模式)、session.measure 和各種輪次事件,並用 ui.render 在 AbovePrompt 橫帶上繪圖。每個終端機儲存格是兩個像素(用 ▀,加上前景色與背景色)。

  • 不連網,不呼叫模型。它只讀 hook 交給它的資料,唯一會保存的是你的設定(開關、calm、帽子、臉部配件、圍巾),以及 Clawd 的工具呼叫累計,存放在 Claude Code 的外掛儲存區。
  • 測試結果來自看起來像測試的指令(npm test、pytest、cargo test、go test 等)的 Bash 輸出。
  • 子代理結束是靠輪詢 $.agent.list() 偵測的。

限制

  • 指令不在清單上的測試執行器,永遠不會掉蟲子。
  • 小幫手結束的畫面可能晚一秒左右出現(calm 模式下約 5 秒),因為結束是用輪詢偵測的。

新增姿勢

姿勢是 hooks/art.ts 裡 sprite() 的像素列。哪個工具對應哪個姿勢與說明,由 hooks/story.ts 的 beat() 決定。執行 claude --plugin-dir .,你的修改會即時重新載入;claude plugin test . 會執行測試。歡迎提交 pull request,並附上新姿勢的簡短 GIF。

致謝

走路與歡呼的影格和基本色盤來自 henrik-thevibe 的 Claude Fables(MIT)。詳見 NOTICE。

Clawd 是 Anthropic 的吉祥物。本專案是非官方的粉絲作品,與 Anthropic 無關。

授權

MIT

安裝

請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。

claude plugin marketplace add plaxagoras/clawd-tales
claude plugin install clawd-tales
原文 / README

clawd-tales

A pixel Clawd that acts out what Claude Code is doing, in a band above your prompt.

Claude Fables draws a model-written cartoon of your session in the desktop app. clawd-tales does it in the terminal from templates, so it costs no tokens.

clawd-tales demo

The 45-second /tales demo: Clawd hatches, helpers walk in, tests fail and bugs drop, Claude calls for you, a storm rolls in, and Clawd grows up.

Glance down and you know what Claude is doing. A red ! and a jumping Clawd means it is waiting on you. Rain means the context is nearly full.

Every tool call gets a pose and a one-line caption. Claude reads a book for Read, digs for Edit, sneaks for Grep, runs for Bash, flies for web search. Subagents walk in as their own critters, colored by model.

A minute in the band

You ask Claude to fix a failing test. Clawd runs off to pytest and three bugs drop onto the ground. It reads the test file with a book open, then digs into the code. A red ! appears and Clawd jumps: Claude wants to run a command. You approve within a few seconds, and Clawd beams with hearts. The tests go green, Clawd eats all three bugs, and a turn that long ends in a dance.

What it shows

| Happening in Claude Code | In the band | |---|---| | A tool call | Clawd's pose and a caption naming the file, pattern or command | | A subagent starts | A helper walks in: purple for Opus, teal for Sonnet, green for Haiku, gold for Fable | | A subagent finishes | It runs back to Clawd and they cheer, with hearts | | A permission dialog opens | Clawd jumps next to a red ! and the caption turns red | | A test run fails | Bugs drop onto the ground, one per failing test (up to 8) | | The tests go green | Clawd eats the bugs | | A todo list | Pending items sit on the ground as pellets. Finishing one is a gobble | | Context fills up | Clouds at 50%, rain and an umbrella at 70%, lightning at 85% | | The turn ends | A nod if it took under 4 seconds, a hop up to a minute, a dance up to five, and past that a flag planted at the summit. Then Clawd sits, yawns and falls asleep. The band hides after 3 minutes; your next prompt wakes Clawd, and a new helper brings the band back | | A plan limit hits 100% | Clawd sleeps until the reset time. A minute before, it stretches, and once the limit resets it's up | | Claude waits on a subagent | Clawd puts on headphones. With two or more out, it juggles one ball per helper, each in that helper's color | | Three or more subagents out | Clawd wears a tie. It's the boss now | | An MCP tool call | A ring of color spreads from Clawd. Each server gets its own color | | Every 50K tokens | Confetti, and the count in the turn's last caption | | Claude thinks for a while between tool calls | A thought bubble fills in over the pose it is holding | | Five clean tool calls in a row | A combo counter. At ten, Clawd wears a crown | | A subagent fails | It trips, then walks back to Clawd for a pat on the head | | Four or more subagents out at once | The idle ones walk in a line behind the first one | | Two errors in a row | Clawd goes cross-eyed with stars circling. A third flips the table | | You approve a permission prompt quickly | Hearts. Leave one waiting past 30 seconds and Clawd starts to sweat, with a timer in the caption | | The conversation is compacted | Clawd sweeps the stage with a broom and the weather clears | | A session starts | Clawd drops in from the sky. A resumed session gets a wave hello. The very first session hatches Clawd from an egg | | 200 tool calls | The hatchling loses its eggshell cap and grows up into whatever work it did most: a scholar (reading), a detective (searching), a builder (editing), a hacker (commands), an explorer (the web) or a captain (helpers). Each wears its own hat, and the form can change as your habits do |

Small things

  • Thank Claude in your prompt and Clawd blushes with heart eyes. Start with "no" or "wrong" and it rubs its head, brows up, and can't look you in the eye.
  • Clawd dresses for the job: a wizard hat in plan mode, a hard hat two minutes into a long turn, and shades for the rest of a turn once it has earned the crown.
  • git commit wraps a parcel and pops confetti. git push sends a paper plane off the stage. rm -rf makes Clawd cover its eyes. Package installs drop boxes from the sky.
  • A command that isn't found sends the sl train across the stage.
  • While it waits for you, Clawd waves, winks, scratches its head, looks around and watches a butterfly. A longer wait and it goes fishing. Asleep, it dreams about the last thing it did.
  • Clawd glances left and right now and then, and looks over when a helper walks in. Sitting, it breathes.
  • The sky follows your clock: sun by day, stars at night. Between 1 and 5 am, Clawd wears a nightcap and keeps a mug of coffee nearby.
  • Halloween, Christmas, New Year's, Valentine's Day and April 1st each get a costume or something extra.
  • Now and then a whale, a UFO or the train passes through. One session in a hundred brings a shiny Clawd.

Under the caption, a status line shows ctx 74% · 5h 22% · 7d 23%, plus the todo count and a roster of the helpers. Numbers turn yellow at 80% and red at 95%.

The band shrinks with your terminal: the full band at 8 rows, no sky at 6, then a single line.

Install

Needs a Claude Code build with mods (function hooks). Built and tested on 2.1.289; run claude --version to see yours. After installing, start a new session and type /: if /tales isn't in the list, the mod didn't load, and your build probably doesn't support mods yet.

claude plugin marketplace add plaxagoras/clawd-tales
claude plugin install clawd-tales@clawd-tales

Start a new session, then run /tales demo.

To try it for one session without installing:

git clone https://github.com/plaxagoras/clawd-tales
claude --plugin-dir ./clawd-tales

Commands

| Command | What it does | |---|---| | /tales demo | Plays a short story: a hatching, helpers, bugs, pellets, weather, a permission call and growing up. Your own Clawd's progress isn't touched | | /tales calm | One frame a second, and nobody wanders between tool calls | | /tales lively | Back to 5 frames a second (the default) | | /tales off / /tales on | Hide or show the band | | /tales | Shows the current state | | /tales hat <name> | Puts on a top hat, grad cap, captain's hat, wizard hat, hard hat, deerstalker, beanie, pith helmet or eggshell (none takes it off). Saved between sessions | | /tales face <name> | Glasses, shades or a mustache (none takes them off). Saved between sessions | | /tales scarf on / off | Each project gets its own scarf color, picked from the project folder, so you can tell repos apart. On by default | | /tales holiday <name> | Previews a holiday look until the next restart (auto goes back to the calendar) |

Your on/off and calm settings are saved between sessions.

How it works

It is a Claude Code mod: a plugin of function hooks in hooks/register.tsx. It listens to tool.call, agent.spawn, classic.PermissionRequest, classic.UserPromptSubmit (for plan mode), session.measure and the turn events, and draws with ui.render on the AbovePrompt band. Each terminal cell is two pixels (▀ with a foreground and a background color).

  • No network, no model calls. It only reads what the hooks hand it, and the only things it saves are your settings (on/off, calm, hat, face, scarf) and Clawd's tool-call tally in Claude Code's plugin store.
  • Test results come from the Bash output of commands that look like test runs (npm test, pytest, cargo test, go test and similar).
  • Subagent end is detected by polling $.agent.list().

Limits

  • A test runner whose command isn't on the list never drops bugs.
  • A helper's finish can show a second or so late (about 5 seconds in calm mode), because the end is polled.

Add a pose

Poses are pixel rows in sprite() in hooks/art.ts. Which tool gets which pose and caption is beat() in hooks/story.ts. Run claude --plugin-dir . and your edits reload as you go; claude plugin test . runs the tests. Pull requests with a short GIF of the new pose are welcome.

Credits

The walk and cheer frames and the base palette come from Claude Fables by henrik-thevibe (MIT). See NOTICE.

Clawd is Anthropic's mascot. This is an unofficial fan project, not affiliated with Anthropic.

License

MIT

更多類似作品