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

agent-theater

Claude Code 提示列上方的小型像素劇場:橘色 Claude 坐在桌前演出每次工具呼叫,旁邊的螢幕顯示真實指令,而 Haiku 會用你要求的語言旁白。

afu-it@afu-it

afu-it/agent-theater/tree/main/plugins/agent-theater

原貼文圖片1
已翻譯

關於這個 mod

agent-theater 會在 Claude Code 提示列上方加上一座像素劇場。小小的橘色 Claude 坐在桌前,把代理程式正在做的事演出來;旁邊的螢幕顯示實際執行的指令或檔案,以及 Haiku 以冷靜資深工程師的口吻、用你要求的語言寫成的一行旁白。劇場涵蓋 8 個場景:思考、讀取、編輯、測試、執行、錯誤、完成。當某一步偏離你的要求時,旁白和螢幕標題會變成黃色,並顯示 "off track"。

使用 /theater 切換劇場(設定會跨工作階段保留),或用 /theater on、/theater off 明確設定;/theater demo 會播放全部 8 個場景。劇場只跟隨主要代理程式,不包含子代理程式。

每段旁白都是用你自己的帳號發出的一次小型 Haiku 呼叫:工具執行期間最多每 4 秒一次,回合結束時再產生一次摘要。用 /theater off 關閉後,所有呼叫都會停止。

在 Claude Code 內使用 /plugin marketplace add afu-it/agent-theater 安裝,接著執行 /plugin install agent-theater@agent-theater 和 /reload-plugins。需要 Claude Code 2.1.287 或更新版本。原始碼、hook 程式碼和 Remotion 宣傳專案都在儲存庫中;授權為 MIT。

安裝

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

claude plugin marketplace add afu-it/agent-theater
claude plugin install agent-theater
原文 / README

agent-theater

A tiny pixel theater above your Claude Code prompt. Little orange Claude sits at a desk and acts out whatever the agent is doing, while the monitor beside him shows the real command or file and a one-line narration.

agent-theater demo

Promo (40 s, sound on)

Watch the 40 s promo

| Scene | Claude | Monitor | |---|---|---| | think | thought bubble over his head, then a light bulb when the idea lands | > _ thinking... | | read | flips the pages of a book, eyes scanning | $ cat <file> with code scrolling | | edit | types, keys lighting up | $ vim <file> with the edit typing out | | test | thumps the monitor | a progress bar filling | | run | hits Enter while a cog spins over his head | $ <command> with a spinner | | error | scowls, flushes red, arms flailing, steam puffing | the screen flashes red with the real error | | done | arms up, confetti | ✓ OKAY and a summary of the turn |

The narration is written by Haiku in the voice of a calm senior engineer, in the language of your request. When a step drifts away from what you asked, the narration and the monitor's title turn yellow and say off track.

Install

Needs Claude Code 2.1.287 or later (claude --version). Mods run in the terminal and the desktop Code tab.

Inside Claude Code:

/plugin marketplace add afu-it/agent-theater
/plugin install agent-theater@agent-theater
/reload-plugins

Or from your shell:

claude plugin marketplace add afu-it/agent-theater
claude plugin install agent-theater@agent-theater --scope user

If the theater does not show up, restart Claude Code.

Use

| Command | What it does | |---|---| | /theater | Turn it on or off (remembered across sessions) | | /theater on / /theater off | Set it explicitly | | /theater demo | Play all eight scenes, three seconds each |

The theater follows the main agent only; subagents are left out.

Cost

Each narration is one small Haiku call on your own account: at most one every four seconds while tools run, plus one summary when a turn ends. Turn it off with /theater off and no calls are made.

Develop

git clone https://github.com/afu-it/agent-theater
claude --plugin-dir ./agent-theater/plugins/agent-theater
claude plugin validate ./agent-theater/plugins/agent-theater
claude plugin test ./agent-theater/plugins/agent-theater

The folder is watched, so every save reloads the mod. The art lives in hooks/stage.ts; the hooks, timers and narration in hooks/register.tsx.

The promo is a Remotion project in videos/. It draws the theater with the mod's own stage.ts, so the film matches the terminal frame for frame. Music and sound effects are not in the repo; add your own under videos/public/bgm/chiptune.wav and videos/public/sfx/, then:

cd videos && npm install
npx remotion render src/index.ts TheaterWide out/agent-theater-wide.mp4
npx remotion render src/index.ts TheaterTall out/agent-theater-tall.mp4

Uninstall

/plugin uninstall agent-theater@agent-theater

License

MIT

更多類似作品