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.
