ClaudeModsClaude Code 模组目录
☰
● 0 人在线 · 浏览 0 次
+ 提交作品
← 返回作品集
GitHub 仓库 · 主题与外观

clawd-park — Claude Code 插件 · ClaudeMods

回报这个作品这是你的作品?认领

在 ClaudeMods 了解这款 Claude Code 插件,查看原始来源与所需权限。 在 Claude Code 的旋转指示器下显示像素恐龙公园的模组:珊瑚色霸王龙演绎智能体的工作,每次测试失败都会让陨石更接近。不调用模型,不消耗 token。

YYair@finebutwhy

1/

It's a Claude Code mod, free and open source: claude plugin marketplace add falkoro/clawd-park claude plugin install clawd-park@clawd-park Repo: falkoro/clawd-park on GitHub PRs welcome, new dinos especially 🦕

已翻译

关于这个 mod

clawd-park 在 Claude Code 旋转指示器下绘制一个 8 行的像素恐龙公园。珊瑚色霸王龙会映射智能体的活动:思考时漫步、读取时吃草、编辑时跺脚、运行命令时咆哮、子智能体启动时下蛋。测试失败会让陨石更接近,连续三次失败会触发灭绝事件;地面会持续记录自上次灭绝以来的回合数。

通过插件市场安装:

/plugin marketplace add falkoro/clawd-park
/plugin install clawd-park@clawd-park

它通过 tool.call 和 turn.start/turn.complete 钩子观察每一步,通过 Spinner 渲染位置绘制到每 50 ms 重绘一次的 Raster,并仅将分数存储在自己的 $.store 中。不调用模型,不消耗 token,任何内容都不会离开本机。命令:/park、/park off、/park on。采用 MIT 许可证。

安装

请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。

claude plugin marketplace add falkoro/clawd-park
claude plugin install clawd-park
原文 / README

clawd-park

A Claude Code mod that puts a pixel dinosaur park under the spinner. A coral T-rex acts out what the agent is doing, and every failing test run brings the meteor closer.

A real Claude Code turn: the T-rex under the spinner as Claude runs a failing test three times, the meteor comes in and lands, then Claude reads the code and fixes the bug

A real turn in Claude Code, also as an MP4: three failing test runs bring the meteor down, then Claude finds the bug and fixes it.

It makes no model calls and costs no tokens. Nothing leaves your machine.

Install

In Claude Code:

/plugin marketplace add falkoro/clawd-park
/plugin install clawd-park@clawd-park

The park opens with your next turn. To try a checkout without installing it: claude --plugin-dir plugins/clawd-park.

What happens in the park

Rex acts out each step of the agent's work, tagged with what it is: [reading cart.ts], [running npm test].

| The agent is | Rex | | --- | --- | | thinking | wanders about | | reading or searching | walks to a fern and grazes | | editing or writing | stomps on the spot | | running a command | roars | | on the web | wanders while a pterodactyl flies laps overhead | | starting a subagent | lays an egg; the hatchling trails Rex until its helper is done, then walks off |

The meteor

A test run is a Bash command such as npm test, pytest, go test ./... or npx vitest run.

  • A failing run (a non-zero exit, or output like 2 failed or FAIL) brings the meteor in. It's tagged [tests failed 1x], then [tests failed 2x], closer each time.
  • A passing run breaks it up in a shower of sparks: [tests pass].
  • Three failing runs in a row bring it down. Flash, dust, and Rex is a fossil: EXTINCTION: 3 failing test runs in a row.

A run that never happened, because you rejected it or a hook blocked it, doesn't count either way.

The ground keeps score: 41 turns since the last extinction. Every turn that ends without one adds to it, an extinction sets it back to 0, and the count is kept between sessions.

Configure

  • /park shows the count and how close the meteor is.
  • /park off closes the park for the rest of the session, and /park on opens it again.
  • To close it for good, turn off "Show the park" in /plugin.

The park draws only in the terminal. On the desktop the spinner is left alone.

How it works

  1. Watching. tool.call gives the mod each step and its result, turn.start and turn.complete the turn around them. A subagent's own turns don't end the park's.
  2. Drawing. The Spinner render site (ui.render on Spinner) keeps the normal spinner line and adds an 8-row Raster below it. A 50 ms timer draws each frame and repaints the Raster in place with $.ui.blit.
  3. Keeping score. The count is the one thing saved, in the mod's own $.store.

Develop

claude plugin validate plugins/clawd-park --strict
claude plugin test plugins/clawd-park

The tests cover the step and verdict rules, the meteor, the drawing, and the mod against a stubbed engine: the Raster, the frame timer, the count, extinctions, /park and the options. CI runs the same commands.

Ideas and pull requests are welcome: a new step for Rex to act out, a new dinosaur, a bug.

License

MIT. Rex wears the coral of Clawd, the Claude Code mascot.

Showcase: It's a Claude Code mod, free and open source:

claude plugin marketplace add falkoro/clawd-park claude plugin install clawd-park@clawd-park

Repo: falkoro/clawd-park on GitHub

PRs welcome, new dinos especially 🦕 clawd-park:開源 Claude Code mod,可裝恐龍主題外掛

查看原始来源 ↗

更多类似作品