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

ember

Claude Code 外掛 "ember" 會在旋轉列說明 Claude 正在做什麼,在提示詞上方顯示輪到誰,追蹤子代理,在完成或有待處理問題時發出提示音,並加入動畫火焰面板。

已翻譯

關於這個 mod

Ember 是一個建置在 function-hooks 外掛 API(2.1.286,早期存取)上的 Claude Code 外掛。它用直白的語言描述目前步驟,取代一般的旋轉提示文字,並在提示詞上方繪製狀態帶,顯示 Working、2 agents working、Needs your OK 和 Your move 等狀態。輪到你時,它會回顯你上一個要求。子代理活動也算工作,"your move" 和提示音會等到所有代理回報後才出現。持續 20s 或更久的工作完成時,它會提示一次;問題或權限提示停留 10s 時,也會提示一次;完成後五分鐘還可以選擇發出閒置提醒。指令:/ember(狀態)、/ember mute、/ember unmute,以及 /ember pane(桌面應用程式中的動畫火焰)。載入方式:複製儲存庫並執行 claude --plugin-dir ./ember,或在 shell 設定檔中設定 CLAUDE_CODE_PLUGIN_DIRS。授權條款:MIT。

安裝

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

claude plugin marketplace add nickdemari/ember
claude plugin install ember
原文 / README

Ember

A Claude Code mod that follows what you and Claude are doing. Built for an ADD brain: nothing to set up and nothing to manage. It says what Claude is doing right now, whose move it is, and calls you back when it's yours.

What it does

Ember lives in the chat itself. In the terminal:

✳ Reading login.ts… (4s · ↓ 146 tokens)
● Working  3 steps

and once Claude is done:

◆ Your move  2m  You asked: fix the flaky login test
  • The spinner line says what Claude is doing, in plain words, where it would say "Pontificating".
  • The band above the prompt says whose move it is: ● Working, ● 2 agents working, ▲ Needs your OK: Bash, ◆ Your move. When it's your move it also shows what you last asked, for when you come back to it. Nothing on it moves or counts seconds.
  • Subagents count as work. While agents run, the band says so and the spinner line quotes their latest step. "Your move" and the chime wait until the last one has reported.
  • Chimes. One when work of 20 seconds or more finishes, one when a question or permission prompt has sat for 10 seconds.
  • Idle nudge. Five minutes after Claude finishes with no reply from you: one chime and one line in the transcript, once. The model never reads that line.

The desktop app gets the same band and transcript line; there the band also says the step, since the spinner row already does its own narrating.

Commands, all optional:

  • /ember says it's following and whether sound is on.
  • /ember mute and /ember unmute switch the chimes. The setting is kept between sessions.
  • /ember pane opens a pane. In the desktop app it shows an animated flame that sleeps until you prompt, wakes while Claude works, bounces when Claude is blocked on you, and grows through a long stretch of work.
<table align="center"> <tr> <td align="center"><img src="docs/rest.svg" width="120" alt="Ember asleep"><br><sub>asleep</sub></td> <td align="center"><img src="docs/work.svg" width="120" alt="Ember while Claude works"><br><sub>working</sub></td> <td align="center"><img src="docs/blocked.svg" width="120" alt="Ember when Claude is waiting on you"><br><sub>needs you</sub></td> <td align="center"><img src="docs/done.svg" width="120" alt="Ember when it is your move"><br><sub>your move</sub></td> </tr> </table>

Loading it

git clone https://github.com/nickdemari/ember.git
claude --plugin-dir ./ember

To load it in every terminal session, name the folder in your shell profile:

export CLAUDE_CODE_PLUGIN_DIRS="$HOME/path/to/ember"

In the desktop app's Code tab there is no flag to pass. Ask Claude to load its plugin-authoring skill and copy this folder into the session's mods folder, then pick Enable for this session when asked.

Ember is written against the function-hooks plugin API of Claude Code 2.1.286. That API is early access: it can change between releases, and whether hooks modules load at all depends on your version and account.

Checking a change

npx -p typescript tsc -p .
claude plugin validate .
claude plugin test .

tsc needs .claude-plugin/types/, which the engine writes the first time it loads the mod.

Layout

  • hooks/register.tsx: every hook, the band and the pane.
  • hooks/creature.ts: the flame as one SMIL-animated SVG per mood, and the caption beside it.
  • hooks/narrate.ts: tool calls in plain words.
  • types/index.d.ts: the state contract.
  • fx/: the chime.

License

MIT

更多類似作品