Set Accumulator (prompts)
Tag each branch's prompt so the judge can check it
- text
Most compare workflows show you the images side by side but keep the prompts a mystery - you squint at the thumbnails and try to remember which branch used which prompt. Set Accumulator (prompts) fixes that by giving each branch's prompt a named label that a Get Accumulator (prompts) later collects into a single ----separated block. And that block has a specific consumer in mind: the pack's Image Compare and its Vision LLM Judge, which both read per-image prompts so the comparison (or the judge) can assess prompt adherence.
How it works
Same mechanics as the pack's other accumulators: the Set node is a pass-through - text in, text out - and the work is in the label. You set a name (default PROMPTS) and an index that auto-increments on copy. A matching Get Accumulator (prompts) collects every Set of that name in index order and joins the blocks with a --- line - the exact delimiter Image Compare's prompts input and the judge's prompts input expect. Unlike the generic texts pair, the separator is hardcoded to ---, so the two ends can't mismatch. That's the whole point of having a dedicated pair: it's tuned to the compare pipeline instead of asking you to configure it right.
Inputs and output
text- the generation prompt for this branch. Passes through unchanged.name- accumulator name, must match the Get node.index- position in the joined output, 0–9999, auto-incremented on copy.
The text output is your pass-through.
Install
Part of the Kinburg-Nodes pack: ComfyUI Manager (search "Kinburg-Nodes") or git clone https://github.com/Kinburg/Kinburg-Nodes into custom_nodes, then restart. No extra dependencies.
The gotcha
The --- separator is a real delimiter, not decoration - if one of your prompts itself contains a --- line, the downstream parser will split it into two prompts and everything after shifts by one. Keep prompts single-block. Also remember the accumulator contract: names must match between Set and Get, and you press Collect again on the Get side after adding or removing Sets, or the links go stale.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | — | |
| name | STRING | PROMPTS | Accumulator name. A Get Accumulator (prompts) with the same name collects every Set that shares it. |
| index | INT | 00–9999 | Position in the joined output. Auto-increments when you copy the node. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |