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

dashboard

统一工作台:为子代理和 mmrun 评审提供状态栏,另有七页面板(Overview / Agents / Reviews / GPU / Timeline / Usage / Progress;Reviews、GPU 和 Progress 会在有数据后显示);Progress 页面列出按项目划分的进度板,在每次输入导致文件变化或产生提交后记录。

Paradox07127@Paradox07127

Paradox07127/claude-utopia/tree/main/plugins/dashboard

原帖图片1
已翻译

关于这个 mod

claude-utopia

正在积极开发中。 此仓库会持续更新,接口、名称和默认值可能随版本变化。请 Star 或 watch 此仓库以跟进变更。

简体中文

四个基于 mods(函数钩子)的 Claude Code 插件,以及两个代理模板。

| 插件 | 功能 | |---|---| | dashboard | 提示列上方显示运行中子代理和 mmrun 评审的状态栏,提示列下方显示上下文使用量和最紧张的速率限制窗口,并提供七页工作台(Overview / Agents / Reviews / GPU / Timeline / Usage / Progress),通过 /dashboard、/subagents、/mmrun、/gpu、/timeline 打开。Reviews、GPU 和 Progress 标签页会在有数据后显示:~/.claude/mmruns 文件夹、GPU 主机、进度板。Timeline 页面把主循环的回合显示为模型请求和工具调用组成的瀑布图,并提供最慢工具和回合的热点视图。转录中会渲染子代理卡片、测试摘要和被阻止命令的通知。 | | harness | 技能:ai-code-cleanup、interrogate、shape-task、verify-change、setup。保护机制:拒绝被阻止模型的子代理;拒绝在共享主工作树中执行会丢弃未提交工作的 git 命令;拒绝会把 API key 配置文件(~/.claude.json 及备份、Claude 设置、Codex 配置和认证信息、grok 认证信息、OpenViking 配置)或环境转储(env、printenv、export -p、set 等)写入转录的工具调用;当主线程空闲到提示缓存即将过期时运行 /compact。 | | mm | 跨模型代码评审和委派:没有提供 --models 时,/mm:review 会并行运行 codex / grok / agy 作为只读评审者,/mm:run 会在自己的工作树中把任务交给另一个模型。提供 mmrun CLI。保护机制拒绝读取 mmrun 的 *.raw 事件流(单独 tail 50 行以内的情况除外),并把前台 mmrun wait 移到后台。 | | progress | 按项目划分的进度板。每次你输入的回合改变了文件或产生提交后,插件会请求 Sonnet 将工作记录为 1–3 个节点(标题、摘要、状态、类型、指向早期节点的链接);主模型不会为此消耗 token。你可以按项目选择一次,将进度板保存在 ~/.claude/progress/ 下或与项目一起提交。插件还会把进度板镜像到可选的 Artifact 画布。不依赖 dashboard 也能工作;与它一起使用时,工作台的 Progress 页面会列出进度板。 | | agents/ | 可复制到 ~/.claude/agents/ 的 worker 和 researcher 子代理模板。 |

截图

worker 子代理运行时提示列上方的状态栏,以及已派遣代理的转录卡片和测试摘要。上下文使用量与速率限制窗口只显示在提示列下方的一行中:

终端中的状态栏和转录卡片

工作台的 Timeline 页面:最近一回合的每次模型请求、工具调用和关键路径。

终端中的工作台 Timeline 页面

两张截图都来自 language 设为 English 的真实终端会话。使用 zh-CN 时会绘制相同的中文界面;参见简体中文。

要求

  • Claude Code 2.1.287 或更高版本(mods 从此版本起默认启用)。绘制功能在终端和 Desktop Code 标签页中有效;VS Code 面板和 claude -p 会运行钩子但不绘制。
  • harness:python3。
  • mm:至少需要 codex、grok 或 agy CLI 之一,以及 bash、git、jq、python3。grok 和 agy 的只读隔离使用 sandbox-exec,因此仅支持 macOS;codex 使用自己的沙箱。
  • dashboard GPU 页面:通过密钥登录主机,并在主机上提供 nvidia-smi(或 tegrastats)。
  • 可选:/mm:run 会为前端任务建议 /impeccable skill,verify-change 会建议 codegraph_impact MCP 工具。两者都不随本仓库提供,会在已安装时使用;没有它们插件也能工作。

安装

让 Claude 执行:把下面内容粘贴到 Claude Code 会话中。

Fetch and follow the instructions in https://raw.githubusercontent.com/Paradox07127/claude-utopia/main/INSTALL.md

或者手动执行:

claude plugin marketplace add Paradox07127/claude-utopia
claude plugin install dashboard@claude-utopia
claude plugin install harness@claude-utopia
claude plugin install mm@claude-utopia
claude plugin install progress@claude-utopia

然后启动新的 Claude Code 会话。随时运行 setup 技能(/harness:setup)来查看和更改下面的选项。

选项

使用 /plugin configure <plugin>@claude-utopia 设置,或使用带 JSON 字符串对象的 claude plugin configure <plugin>@claude-utopia --values-stdin 设置。变更会在下一次会话生效。

| 插件 | 键 | 默认值 | 含义 | |---|---|---|---| | dashboard | language | auto | UI 语言:auto、zh-CN 或 en。auto 会依次遵循设置中的 language、LC_ALL / LANG,否则使用英语。 | | dashboard | gpuHosts | empty | 以逗号分隔的 ssh 主机;在 Bash 中执行 ssh <host> … 会打开该主机的 GPU 页面。 | | dashboard | cacheTtlMinutes | 60 | 后备提示缓存 TTL:空闲达到这些分钟数后,状态栏会警告下一条消息将重写提示缓存。只在得知真实 TTL 前使用;从转录读取或模型切换报告的 TTL 会覆盖它。 | | dashboard | toastPeerAsks | true | 当另一个 Claude Code 会话请求权限或其回合失败时显示提示。其他会话的提示只会在你最近两分钟内输入过的会话中显示;如果没有输入过,则显示在每个会话中。 | | dashboard | toastPeerReplies | true | 当另一个会话在持续两分钟或更久的回合后回复时显示提示。显示规则相同。 | | dashboard | askSound | false | 另一个会话请求权限或失败时,随提示播放短促铃声。需要 toastPeerAsks。 | | dashboard | toastRuns | true | mmrun 模型返回、失败或变得过期时显示提示。 | | harness | language | auto | 同上,用于 harness 提示。 | | harness | blockedSubagentModels | empty | 逗号分隔;模型名称包含任一项的子代理会被拒绝。留空则全部允许。 | | harness | sharedTreeGitGuard | true | 在主工作树中,拒绝会丢弃未提交变更或重写 HEAD 的 git 命令:checkout <path>、checkout --force / -f、restore(仅 --staged 除外)、stash(list、show、create 除外)、clean(-n / --dry-run 除外)、switch --discard-changes / --force / -f、reset --hard、commit --amend。链接工作树不受影响。 | | harness | idleCompact | true | 主线程空闲到提示缓存即将过期时自动运行 /compact:缓存为 1h 时提前 10 分钟,达到 100k token 或更多;缓存为 5m 时提前 1 分钟,达到 200k 或更多。TTL 从转录读取。 | | mm | reviewModels | codex,grok | 未提供 --models 时 /mm:review 使用的模型。 |

progress 没有选项。

技能、命令文档,以及插件发送给模型的每条指令都使用英语;技能描述也带有中文触发词,以便中文提示匹配。Claude 会用你的语言回复。只有绘制出的 UI 遵循 language。

隐私与信任

Mods 会在进程内以你的用户权限运行,就像任何插件钩子一样。mm 会根据你安装的外部模型 CLI 各自的账号和条款,把评审中的代码发送给这些 CLI。这里没有任何后台联络。

当 ~/.claude/agents/ 或项目的 .claude/agents/ 中存在 worker.md 或 researcher.md 时,harness 会隐藏内置的 general-purpose 代理。

许可证

MIT

安装

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

claude plugin marketplace add Paradox07127/claude-utopia
claude plugin install dashboard
原文 / README

claude-utopia

Under active development. This repo is updated continuously, and interfaces, names and defaults can change between versions. Star or watch the repo to follow the changes.

简体中文

Four Claude Code plugins built on mods (function hooks), plus two agent templates.

| Plugin | What it does | |---|---| | dashboard | A status band above the prompt for running subagents and mmrun reviews, a line under the prompt with context use and the tightest rate-limit window, and a seven-page workbench (Overview / Agents / Reviews / GPU / Timeline / Usage / Progress) opened with /dashboard, /subagents, /mmrun, /gpu, /timeline. The Reviews, GPU and Progress tabs show once they have data: an ~/.claude/mmruns folder, a GPU host, a progress board. The Timeline page draws the main loop's turns as a waterfall of model requests and tool calls, with a hotspot view of the slowest tools and turns. Renders subagent cards, test summaries and blocked-command notices in the transcript. | | harness | Skills: ai-code-cleanup, interrogate, shape-task, verify-change, setup. Guards: refuse subagents on blocked models, refuse git commands that discard uncommitted work in the shared main worktree, refuse tool calls that would print API-key config files (~/.claude.json and its backups, Claude settings, Codex config and auth, grok auth, OpenViking config) or an environment dump (env, printenv, export -p, set, …) into the transcript, run /compact when the main thread idles until the prompt cache is about to expire. | | mm | Cross-model code review and delegation: /mm:review runs codex / grok / agy in parallel as read-only reviewers, /mm:run hands a task to another model in its own worktree. Ships the mmrun CLI. A guard refuses reading mmrun's *.raw event streams (except a lone tail of 50 lines or fewer) and moves a foreground mmrun wait to the background. | | progress | A per-project progress board. After each turn you typed that changed files or made a commit, the plugin asks Sonnet to record the work as 1–3 nodes (title, summary, status, kind, links to earlier nodes); the main model spends no tokens on it. The board is kept under ~/.claude/progress/ or committed with the project, as you choose once per project. The plugin mirrors the board to an optional Artifact canvas. Works without dashboard; with it, the workbench's Progress page lists the board. | | agents/ | worker and researcher subagent templates to copy into ~/.claude/agents/. |

Screenshots

The status band above the prompt while a worker subagent runs, with the transcript cards for the dispatched agent and the test summary. Context use and the rate-limit window show only in the line under the prompt:

Status band and transcript cards in the terminal

The workbench's Timeline page: each model request of the last turn, its tool calls and the critical path.

Workbench Timeline page in the terminal

Both screenshots come from a real terminal session with language set to English. With zh-CN, the same UI is drawn in Chinese; see 简体中文.

Requirements

  • Claude Code 2.1.287 or later (mods are on by default from that version). Drawing works in the terminal and the Desktop Code tab; the VS Code panel and claude -p run the hooks without drawing.
  • harness: python3.
  • mm: at least one of the codex, grok or agy CLIs, plus bash, git, jq, python3. The grok and agy read-only fence uses sandbox-exec, so it is macOS only; codex uses its own sandbox.
  • dashboard GPU page: key-based ssh to the hosts and nvidia-smi (or tegrastats) on them.
  • Optional: /mm:run suggests the /impeccable skill for frontend tasks, and verify-change suggests the codegraph_impact MCP tool. Neither ships here; they are used when installed, and the plugins work without them.

Install

Let Claude do it: paste this into a Claude Code session.

Fetch and follow the instructions in https://raw.githubusercontent.com/Paradox07127/claude-utopia/main/INSTALL.md

Or by hand:

claude plugin marketplace add Paradox07127/claude-utopia
claude plugin install dashboard@claude-utopia
claude plugin install harness@claude-utopia
claude plugin install mm@claude-utopia
claude plugin install progress@claude-utopia

Then start a new Claude Code session. Run the setup skill (/harness:setup) at any time to review and change the options below.

Options

Set with /plugin configure <plugin>@claude-utopia, or claude plugin configure <plugin>@claude-utopia --values-stdin with a JSON object of strings. Changes take effect in the next session.

| Plugin | Key | Default | Meaning | |---|---|---|---| | dashboard | language | auto | UI language: auto, zh-CN or en. auto follows the settings language, then LC_ALL / LANG, else English. | | dashboard | gpuHosts | empty | Comma-separated ssh hosts; ssh <host> … in Bash opens that host's GPU page. | | dashboard | cacheTtlMinutes | 60 | The fallback prompt cache TTL: after this many idle minutes the band warns that the next message rewrites the prompt cache. Used only until the real TTL is known; a TTL read from the transcript or reported by a model switch overrides it. | | dashboard | toastPeerAsks | true | Toast when another Claude Code session asks a permission or its turn fails. Other sessions' toasts show only in the session you typed in last within two minutes, or in every session when you typed in none. | | dashboard | toastPeerReplies | true | Toast when another session replies after a turn of two minutes or more. Shown by the same rule. | | dashboard | askSound | false | Play a short chime with the toast of another session asking a permission or failing. Needs toastPeerAsks. | | dashboard | toastRuns | true | Toast when an mmrun model returns, fails or goes stale. | | harness | language | auto | Same as above, for the harness toast. | | harness | blockedSubagentModels | empty | Comma-separated; a subagent whose model name contains any entry is refused. Empty allows all. | | harness | sharedTreeGitGuard | true | In the main worktree, refuse git commands that discard uncommitted changes or rewrite HEAD: checkout <path>, checkout --force / -f, restore (except --staged alone), stash (except list, show, create), clean (except -n / --dry-run), switch --discard-changes / --force / -f, reset --hard, commit --amend. Linked worktrees are exempt. | | harness | idleCompact | true | When the main thread sits idle until just before the prompt cache expires, run /compact automatically: with a 1h cache 10 minutes before, at 100k tokens or more; with a 5m cache 1 minute before, at 200k or more. The TTL is read from the transcript. | | mm | reviewModels | codex,grok | Models /mm:review uses when no --models is given. |

progress has no options.

Skills, command docs and every instruction the plugins send to the model are in English; skill descriptions also carry Chinese trigger words so Chinese prompts match them. Claude replies in your language. Only the drawn UI follows language.

Privacy and trust

Mods run in-process with your user permissions, like any plugin hook. mm sends the code under review to the external model CLIs you have installed, under their own accounts and terms. Nothing here phones home.

harness hides the built-in general-purpose agent when worker.md or researcher.md exists in ~/.claude/agents/ or the project's .claude/agents/.

License

MIT

其他同名作品

更多类似作品