ClaudeMods
☰
EN
● 0 online · Views 0 times
SponsorsSubmit a project
GitHub repositories · by leeovery

workflow-gates-rows

A Claude Code plugin that draws the transcript row of an answer the workflow-gates mod sent as the question and the answer, replacing Claude Code's framing of a plugin's prompt, with rows persisted per conversation.

leeovery@leeovery

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

Translated

About this mod

workflow-gates-rows is its own Claude Code plugin because Claude Code skips a plugin's own render hooks on the row of a prompt that plugin submitted. It redraws the transcript row to show the question the workflow-gates mod sent together with the answer (for example "Approve this task? → yes · Commit and continue to next task") instead of Claude Code's framing. It pairs rows with a sent.json record the mod leaves in the conversation's own folder; a row it cannot pair shows the answer alone. Only the drawing changes: the model still reads Claude Code's framing, and ctrl+o shows the message in full. Each drawn line is stored at ~/.config/workflows/conversations/{session-id}/rows.json (under WORKFLOWS_CONFIG_DIR when set), keyed by message id, so scrolling back and resumed conversations render consistently regardless of the working directory. The folder is removed once Claude Code deletes the conversation's transcript, except for conversations whose end the session-end hook never saw. Conversations that do not run the workflows, or processes with neither a home directory nor WORKFLOWS_CONFIG_DIR, get no folder and the row is drawn as Claude Code does.

Installation

Check the author's README for the marketplace and plugin name first. Commands may change as the repository evolves.

claude plugin marketplace add leeovery/tick
claude plugin install workflow-gates-rows
Original text / 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.

Other works with the same name

Similar projects