alonbaron/claude-skills/tree/main/mods/workflow-watch
workflow-watch
实时查看正在运行的 Workflow:每个阶段开始和结束时显示当前正在做什么,并在面板、提示列上方的横幅和状态列中同步展示。
关于这个 mod
这是一个跟踪会话最新 Workflow 运行的 mod(由功能 hooks 组成的插件),实时绘制各个阶段:面板、阶段运行时提示列上方的横幅、状态列,以及每个阶段完成时的 toast。/workflow-watch 会打开面板并以文字打印相同报告,这也是移动应用唯一显示的内容。
每一行代表一个 subagent:阶段、结果、标签、脚本请求的模型别名及其解析出的 id、努力程度、输出 token、耗时,以及它当前正在调用的工具或单行结果。构建循环的阶段各有一行结果(plan、scout、spec、build、measure、refute、arbiter、fix、close);其他 workflow 则使用通用结果行。
它每两秒读取 Claude Code 自己的文件:~/.claude/projects/<project>/<session>/subagents/workflows/<run>/ 下的 journal.jsonl(阶段)、agent-<id>.meta.json(别名)和 agent-<id>.jsonl(模型、努力程度、token 和工具调用)。这个布局属于内部实现;布局改变时,mod 会什么都不显示,而不是猜测。
通过 marketplace 安装(/plugin install workflow-watch@alonbaron),或使用 claude --plugin-dir <this folder> 为一个会话加载。面板需要 144 列宽的终端;也可以使用 /workflow-watch 让它以更窄的宽度显示。scripts/tracker.mjs 可在会话外将相同行渲染为 HTML 或 PNG。
检查方式:claude plugin validate mods/workflow-watch、claude plugin test mods/workflow-watch;会话在旁边生成类型后,再运行 tsc -p mods/workflow-watch。
安装
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add alonbaron/claude-skills claude plugin install workflow-watch
原文 / README
workflow-watch
A mod (a plugin of function hooks) that follows the newest Workflow run of the session and draws its stages live: a pane, a band above the prompt while stages run, the status line, and a toast as each stage finishes. /workflow-watch opens the pane and prints the same report as text, which is all the mobile app shows.
Each row is one subagent: phase, outcome, label, the model alias the script asked for and the id it resolved to, the effort level, output tokens, elapsed time, and either the tool it is calling right now or its result in one line. The build loop's stages get a result line each (plan, scout, spec, build, measure, refute, arbiter, fix, close); any other workflow gets a generic one.
It reads Claude Code's own files under ~/.claude/projects/<project>/<session>/subagents/workflows/<run>/ every two seconds: journal.jsonl for the stages, agent-<id>.meta.json for the alias, agent-<id>.jsonl for model, effort, tokens and tool calls. That layout is internal; when it moves, the mod shows nothing rather than guessing.
Install with the marketplace (/plugin install workflow-watch@alonbaron) or load it for one session with claude --plugin-dir <this folder>. The pane needs a terminal of 144 columns, or /workflow-watch to seat it narrower. scripts/tracker.mjs renders the same rows to HTML or PNG from outside a session.
Check it: claude plugin validate mods/workflow-watch, claude plugin test mods/workflow-watch, tsc -p mods/workflow-watch once a session has laid the types beside it.
