ClaudeMods
☰
ZH-CN
● 0 人在线 · 浏览 0 次
赞助提交作品
GitHub 仓库 · 发布者 achimala

toons

Claude 工作时显示在旋转指示器下方的动画小短片。

已翻译

关于这个 mod

claude-toons

Claude 工作时,在旋转指示器下方绘制它正在做什么的短小动画。Claude Code 的吉祥物 Clawd 会在每个场景中登场,场景会跟随工作变化:测试变成城堡攻防战,寻找 bug 变成野外探险,长时间构建变成发射台上的火箭。

Claude Code 旋转指示器下方的 Clawd 动画

这是独立项目,与 Anthropic 没有隶属或背书关系。

成本

使用默认设置时,在 Claude Code 已有用量之上约增加 1 到 3%。

大多数场景来自随外挂附带的 138 个现成场景库,不产生费用。只有在你开始任务或发生失败时,才会请求模型绘制新场景,而且最多每分钟一次。按 API 价格计算,每次约 2 到 4 美分。

范围取决于你的工作方式。长任务通常接近 1%,因为一个新场景可以覆盖 Claude 工作的几分钟。快速、短促的来回操作通常接近 3%,因为几乎每条消息都会开始一个任务。这些数字假定 Claude Code 本身运行在 Opus 上。使用更便宜的模型时,占比会更高。

请求使用你的 Claude Code 登录信息,不使用其他凭据。使用订阅时,它们会像其他 Claude 用量一样计入套餐限额;使用 API key 时,费用记在该 key 上。Claude 闲置或隐藏动画时不会产生费用。

Scenes 设置决定场景来源:

| Scenes | Claude Code 之上的额外用量 | |---|---| | 仅现成场景 | 无。不会发出请求。 | | Mix(默认) | ~1–3% | | 仅新场景,每 15 秒一个新场景 | ~5–10% | | 仅新场景,尽可能快 | ~15–25% |

当有足够数据可以衡量时,/toons settings 会在 Claude 自己的工作成本旁边显示动画实际花费了多少。

安装

你需要带外挂 hook 模块的 Claude Code;这是一个抢先体验功能。本项目基于版本 2.1.287 构建。

  1. 克隆仓库:

    git clone https://github.com/achimala/claude-toons ~/src/claude-toons
    
  2. 在一个工作阶段试用:

    claude --plugin-dir ~/src/claude-toons
    

    给 Claude 任意任务。它工作时,动画会出现在旋转指示器下方。

  3. 要在每个工作阶段加载,请把文件夹的完整路径加入 ~/.claude/settings.json 的 env 区块,然后重启 Claude Code:

    {
      "env": {
        "CLAUDE_CODE_PLUGIN_DIRS": "/Users/you/src/claude-toons"
      }
    }
    

要更新,请在该文件夹中运行 git pull。运行中的工作阶段会自行取得变更。要卸载,请从 CLAUDE_CODE_PLUGIN_DIRS 移除该文件夹并删除它。

**什么都没显示?**运行 claude --debug,查找 toons 行。如果它说 hook 模块已关闭,说明你的 Claude Code 还没有这个功能。动画只会在 Claude 工作时、并且只会在终端中出现。

使用

  • /toons 显示或隐藏动画,即使任务正在进行也可以。隐藏后完全不会请求场景。这个选择会跨工作阶段记住。
  • /toons settings 打开设置和成本数字。同样的设置也位于 /config 的 Toons 下。

| 设置 | 作用 | |---|---| | Scenes | 仅现成场景免费。默认的 Mix 会为新内容增加现成场景之外的新场景。仅新场景会在每次场景都重新绘制时产生数倍成本。 | | Scene styles | 混合使用,或只使用 3D、像素艺术、文字艺术,也可以使用除 3D 以外的所有样式。 | | Director model | 绘制新场景的模型。默认是 Sonnet;Haiku 更便宜,Opus 更有创意。 | | New scene | 在仅新场景模式下,可以请求新场景的频率。 | | Director thinks | 让模型在每个新场景前先思考。默认关闭,因为思考会增加成本。 |

许可证

MIT。见 LICENSE。

安装

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

claude plugin marketplace add achimala/claude-toons
claude plugin install toons
原文 / README

claude-toons

Little animated cartoons of what Claude is doing, drawn under the spinner in Claude Code while it works. Clawd, the Claude Code mascot, stars in every scene, and the scene follows the work: tests become a castle siege, a bug hunt becomes a safari, a long build becomes a rocket on the pad.

Clawd in a cartoon under the Claude Code spinner

An independent project, not affiliated with or endorsed by Anthropic.

What it costs

On default settings, about 1 to 3% on top of what Claude Code already uses.

Most scenes come from a library of 138 ready-made scenes that ship with the plugin and cost nothing. A model is asked to draw a fresh scene only when you start a task or something fails, and at most once a minute. Each of those costs about 2 to 4 cents at API prices.

The range depends on how you work. Long tasks land near 1%, because one fresh scene covers minutes of Claude's work. Rapid short back-and-forth lands near 3%, because nearly every message starts a task. These figures assume Claude Code itself runs on Opus. On a cheaper model the share is larger.

The requests use your Claude Code login and nothing else. On a subscription they count toward your plan's usage limits like any other Claude use. On an API key they're billed to that key. Nothing is spent while Claude is idle or the cartoons are hidden.

The "Scenes" setting picks where scenes come from:

| Scenes | Extra on top of Claude Code | |---|---| | Ready-made only | Nothing. No requests are made. | | Mix (default) | ~1–3% | | Fresh only, a new scene every 15 seconds | ~5–10% | | Fresh only, as fast as possible | ~15–25% |

/toons settings shows what the cartoons have actually cost you, next to what Claude's own work costs, once there's enough to measure.

Install

You need Claude Code with plugin hook modules, an early-access feature. This was built on version 2.1.287.

  1. Clone the repo:

    git clone https://github.com/achimala/claude-toons ~/src/claude-toons
    
  2. Try it for one session:

    claude --plugin-dir ~/src/claude-toons
    

    Give Claude any task. The cartoons appear under the spinner while it works.

  3. To load it in every session, add the folder to the env block of ~/.claude/settings.json with its full path, then restart Claude Code:

    {
      "env": {
        "CLAUDE_CODE_PLUGIN_DIRS": "/Users/you/src/claude-toons"
      }
    }
    

To update, run git pull in the folder. A running session picks up the change on its own. To uninstall, remove the folder from CLAUDE_CODE_PLUGIN_DIRS and delete it.

Nothing shows up? Run claude --debug and look for a toons line. If it says hook modules are turned off, your Claude Code doesn't have the feature yet. Cartoons only appear while Claude is working, and only in the terminal.

Using it

  • /toons shows or hides the cartoons, even mid-task. Hidden means no scenes are requested at all. The choice is remembered across sessions.
  • /toons settings opens the settings and the cost figures. The same settings are in /config under "Toons".

| Setting | What it does | |---|---| | Scenes | "Ready-made only" is free. "Mix", the default, adds fresh scenes for news. "Fresh only" draws every scene new, at several times the cost. | | Scene styles | A mix, or only 3D, pixel art or text art, or everything but 3D. | | Director model | The model that draws fresh scenes. Sonnet by default. Haiku is cheaper, Opus is more inventive. | | New scene | How often fresh scenes may be requested, in "fresh only". | | Director thinks | Lets the model think before each fresh scene. Off by default, since thinking costs more. |

License

MIT. See LICENSE.

更多类似作品