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

clawd-actor

一個 Claude Code 模組,Clawd 會在提示列上方演出 spinner 的 -ing 單字,以及目前正在執行的工具。

Brian Huang | kxhuang.eth@BrianHuang18

1/

I made Clawd act out whatever Claude is doing while it works. Clawd now cooks when the spinner says "Sautéing" – a little Claude Code mod Feel free to take a look and make it more funny! https://github.com/BrianHuang813/clawd-actor

已翻譯

關於這個 mod

Clawd 會在 Claude 工作時走上提示列上方的小舞台,演出 spinner 的 -ing 單字(Sautéing、Pondering、Herding…)以及正在執行的工具(Bash 會打字、Read 會思考、Agent 會牧羊、MCP 會施法)。26 個場景每 30 秒更換一次,舞台會依終端機寬度調整,最多 60 欄;閒置時不會繪製任何內容。複製後可透過 /plugin marketplace add BrianHuang813/clawd-actor 安裝,也可以在複製後使用 claude --plugin-dir。Hooks 會在 Spinner 上觀察 ui.render、記錄 tool.call,並驅動一個在 session.start 中啟動的 140 ms 畫格計時器;場景是 4 列儲存格網格的純函式。

安裝

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

claude plugin marketplace add BrianHuang813/clawd-actor
claude plugin install clawd-actor
原文 / README

clawd-actor

A Claude Code mod: while Claude works, Clawd walks onto a little stage above the prompt and acts out what is going on — the spinner's -ing word (Sautéing, Pondering, Herding…) and whatever tool is running right now.

Clawd thinking, cooking, juggling, conjuring, hatching an egg, dancing, herding sheep and typing while Bash runs

Eight scenes at the real frame rate, each cut to a few seconds (a real turn changes scene every 30 s). Every frame is the mod's own output, rendered by tools/.

What it does

  • Acts out the spinner word. 26 scenes, matched by word stem, so Flambéing cooks and Dilly-dallying strolls. A word it does not know falls back to what the turn is doing (typing for tool use, talking while responding, thinking otherwise).
  • Acts out the running tool. Bash types, Read/Grep/Glob think, Edit/Write sketch, Agent herds sheep, Web* checks the weather, TodoWrite/Skill juggles, MCP tools cast spells, anything else is hammered at the forge. When the tool returns, the show goes on.
  • Changes scene every 30 seconds on long turns, in an order shuffled per turn, never the same scene twice in a row.
  • Wanders the stage. Clawd strolls left and right with its props, swinging arms and legs, hopping at each turn; the stage follows the terminal width (up to 60 columns).
  • Leaves when the turn ends, and draws nothing while idle (the frame timer only redraws during a turn).

| Scene | Spinner words (some of them) | | --- | --- | | think | Pondering, Musing, Clauding, Noodling, Ruminating | | cook / bake / brew | Sautéing, Simmering, Whisking / Baking, Kneading / Brewing, Percolating | | walk / run / moonwalk | Moseying, Wandering / Scampering, Galloping / Moonwalking | | herd | Herding, Wrangling, Mustering | | spin | Spinning, Churning, Reticulating, Combobulating | | magic / levitate | Conjuring, Manifesting, Transmuting / Levitating, Hyperspacing | | hatch / grow | Hatching, Incubating / Sprouting, Germinating | | forge / compute | Forging, Crafting, Creating / Computing, Crunching, Synthesizing | | dance / juggle / honk | Vibing, Grooving, Boogieing / Juggling / Honking, Booping | | sketch / weather / thunder | Sketching, Doodling / Misting, Billowing / Thundering | | dig / flow | Burrowing, Spelunking / Flowing, Undulating |

Install

Requires a Claude Code build with function-hook mods (claude plugin validate knows hooks.json modules). Developed and tested on Claude Code 2.1.289.

From this repository as a marketplace:

/plugin marketplace add BrianHuang813/clawd-actor
/plugin install clawd-actor@clawd-actor
/reload-plugins

Or straight from a clone, for one session:

git clone https://github.com/BrianHuang813/clawd-actor
claude --plugin-dir ./clawd-actor

Plays well with other band mods

The stage is drawn in the AbovePrompt band. The hook always calls next(e) and stacks what the mods beneath it draw under the stage, so other band mods keep showing. A band mod that answers without calling next(e) hides everything beneath it — if Clawd never shows up, look for one.

How it works

  • ui.render on Spinner only observes: it remembers the word and mode and lets the engine draw the spinner as usual.
  • tool.call notes the tool in flight and forgets it when the call returns.
  • One timer, started in session.start, advances a frame counter in $.state every 140 ms while a turn runs; the band reads it, which subscribes it to redraws. A timer started inside a turn.start hook does not outlive that dispatch, which is why it lives in session.start.
  • Whether to draw at all follows the band's own isWorking prop.
  • hooks/scenes.ts is pure: a 4-row grid of cells, a scene per name, sceneAt() choosing the scene for a frame and frameRows() turning the grid into coloured runs.

Develop

claude plugin validate .
claude plugin test .

The tests check that every scene keeps the stage size at 30, 40 and 60 columns and moves Clawd about, that a turn opens on the spinner word and then rotates through every other scene, that a running tool takes over, and that the timer animates Clawd during a turn and lets go after it.

Block characters and symbols are drawn one cell wide; a terminal font that draws some of them wider may shift a frame.

To regenerate assets/demo.gif after changing a scene (Node 22+ and Python with Pillow):

node tools/frames.ts > frames.json      # the frames, straight from hooks/scenes.ts
python tools/render.py frames.json assets/demo.gif

tools/render.py uses DejaVu Sans Mono and draws block elements as exact rectangles; edit the font path at its top for your system.

Notes

Clawd is Claude Code's mascot; the sprite follows the one on Claude Code's welcome screen. This is a fan-made mod, not affiliated with or endorsed by Anthropic.

Showcase: I made Clawd act out whatever Claude is doing while it works. Clawd now cooks when the spinner says "Sautéing" – a little Claude Code mod

Feel free to take a look and make it more funny! https://github.com/BrianHuang813/clawd-actor Clawd 依 spinner 文案演戲

更多類似作品