Nodes/Kinburg-Nodes/Set Accumulator (prompts)
ComfyUI Node

Set Accumulator (prompts)

Tag each branch's prompt so the judge can check it

By Kinburg·Created 3 months ago·Updated 6 days ago· 1
Set Accumulator (prompts)
    • text
    text
    namePROMPTS
    index0

    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.

    CategoryKinburg-Nodes/flow/accumulators

    Inputs (3)

    NameTypeDefaultDescription
    textSTRING
    nameSTRINGPROMPTSAccumulator name. A Get Accumulator (prompts) with the same name collects every Set that shares it.
    indexINT00–9999Position in the joined output. Auto-increments when you copy the node.

    Outputs (1)

    NameTypeDescription
    textSTRING