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

一个位于 Claude Code 提示符上方的小型像素剧场:橙色小 Claude 坐在桌前演绎每次工具调用,旁边的显示器展示真实命令,而 Haiku 用你请求的语言进行旁白。
afu-it/agent-theater/tree/main/plugins/agent-theater

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 或更高版本。源代码、钩子代码和 Remotion 宣传项目都在仓库中;许可证为 MIT。
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add afu-it/agent-theater claude plugin install 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.

| 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.
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.
| 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.
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.
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
/plugin uninstall agent-theater@agent-theater
MIT