ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 leeovery

workflow-gates-rows

Claude Code 外掛,使用配對的 sent.json 紀錄與每個對話的 rows.json 儲存,繪製 workflow-gates mod 送出的回答所在的轉錄列。

leeovery@leeovery

leeovery/portal/tree/main/.claude/skills/workflow-gates-rows

已翻譯

關於這個 mod

workflow-gates-rows 是獨立的 Claude Code 外掛,會繪製 workflow-gates mod 送出之回答的轉錄列,並在旁邊顯示它回答的問題(例如:"Approve this task? → yes · Commit and continue to next task")。之所以獨立,是因為 Claude Code 會略過外掛自己的 render hooks,而那些 hooks 原本要處理這個外掛送出的提示列。它會把每一列和 mod 寫在對話資料夾裡的 sent.json 紀錄配對;無法配對的列只顯示回答。只有畫面會變,模型看到的仍是 Claude Code 原本的提示框架,按 ctrl+o 可以展開完整訊息。畫出的列會依 message id 儲存在 ~/.config/workflows/conversations/{session-id}/rows.json(或 WORKFLOWS_CONFIG_DIR 下),所以不論工作目錄如何變動,捲回去看或恢復的對話都會維持一致的呈現。Claude Code 刪除轉錄後,這個資料夾也會移除;但 session-end hook 從未觀察到結束的工作階段除外(例如安裝外掛的工作階段或發生當機的工作階段)。未執行 workflows,或沒有 home directory / WORKFLOWS_CONFIG_DIR 的對話,不會建立資料夾,並會使用 Claude Code 的預設呈現方式。

安裝

請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。

claude plugin marketplace add leeovery/portal
claude plugin install workflow-gates-rows
原文 / README

workflow-gates-rows

A Claude Code mod that draws the transcript row of an answer the workflow-gates mod sent as the question and the answer — Approve this task? → yes · Commit and continue to next task — in place of Claude Code's framing of a plugin's prompt. It is a plugin of its own because Claude Code skips a plugin's own render hooks on the row of a prompt that plugin submitted. It pairs a row with the record the mod leaves in the conversation's own folder as sent.json as it sends; a row it cannot pair shows the answer alone. It changes only the drawing: the model reads Claude Code's framing, and ctrl+o shows the message in full.

Each line it draws is kept in that folder, ~/.config/workflows/conversations/{session-id}/rows.json (under WORKFLOWS_CONFIG_DIR where that is set, beside the workflows' system config), under the row's message id, so scrolling back and a resumed conversation draw the row the same way, wherever the session's working directory has moved. The folder goes once Claude Code has deleted the conversation's transcript, and the lines with it, with one exception: a conversation whose end the session-end hook never saw — the session that first installed the hook, or one that crashed — keeps its folder. The mod names the folder the way the workflows' engine does. A conversation that does not run the workflows has no folder, nor does one in a process that names neither a home directory nor WORKFLOWS_CONFIG_DIR: there the mod writes nothing and draws the row as Claude Code does.

其他同名作品

更多類似作品