Nodes/antrobots ComfyUI Nodepack/Encode Conditioning (PIPE)
ComfyUI Node

Encode Conditioning (PIPE)

Add prompts to a pipe you already have

By antrobot1234·Created 3 years ago·Updated about a year ago· 28
Encode Conditioning (PIPE)
  • pipe
  • pipe
positive
negative
prependfalse

This is the node you reach for when you've already got a BASIC_PIPE rolling - model, CLIP, VAE, conditioning, all on one wire - and you want to add or extend the prompts without tearing the pipe apart. Feed it the pipe and some prompt text, and it encodes that text with the pipe's own CLIP and either tacks the result onto the existing conditioning or puts it in front. Out comes the same pipe, prompts updated. No unpacking, no re-loading, no separate CLIP Text Encode nodes floating around.

Why does that matter? In a piped workflow the whole idea is to keep everything on the rail (BASIC_PIPE is the model-CLIP-VAE-positive-negative bundle Impact Pack made standard). The friction comes when you need to change the prompt mid-graph - a second pass with extra style words, a region-specific addition, a refiner stage with its own emphasis. Without this node you'd have to pull the CLIP out of the pipe, encode, and stitch it back. This does it in place.

How it works

The node's own description is precise: it concatenates the conditioning you supply onto whatever's already on the pipe, or prepends it if you flip prepend to true. Under the hood it takes your positive/negative text, runs it through the pipe's CLIP to turn it into conditioning, and combines it with the pipe's current positive/negative. Concatenating conditioning is a normal ComfyUI move - it's how you stack prompt influences - and here it happens without leaving the pipe.

The inputs and outputs that matter

  • pipe (required) - the BASIC_PIPE you're adding to. Its CLIP does the encoding.
  • positive / negative (optional, multiline text) - the prompt text to encode and combine onto the pipe.
  • prepend (optional, default false) - false appends your new conditioning after the existing; true puts it first. Order can nudge how the model weighs things, so if the result feels off, try the other setting.

One output: pipe, the updated BASIC_PIPE. Wire it onward to your sampler or the next stage.

Installing it

It's a lightweight pure-Python pack - no weights, no big dependencies. ComfyUI Manager → Install Custom Nodes → search "antrobots ComfyUI Nodepack" → Install → restart is the easy route. Manual:

cd ComfyUI/custom_nodes
git clone https://github.com/antrobot1234/antrobots-comfyUI-nodepack

then restart ComfyUI. It shows up under antrobots-ComfyUI-nodepack/flow-control.

Common issues

This node adds conditioning - it doesn't replace. If you expected it to overwrite the prompt and instead your results look like both prompts smooshed together, that's working as designed; concatenation blends. To genuinely swap conditioning rather than extend it, use Op. Edit Basic Pipe, which overwrites the pipe's positive/negative slots.

It also needs a real pipe with a real CLIP to encode against - that's what does the work. If your pipe came from a node that left CLIP empty, there's nothing to encode with and you'll hit an error. Make sure the upstream loader actually populated the pipe. As always with this small solo pack, a genuine bug is a GitHub issue away - the author asks for them directly in the README.

Categoryantrobots-ComfyUI-nodepack/flow-control

Inputs (4)

NameTypeDefaultDescription
pipeBASIC_PIPE
positiveoptSTRINGpositive text to be encoded into conditioning
negativeoptSTRINGnegative text to be encoded into conditioning
prependoptBOOLEANfalseprepend the provided conditioning values to the pipe instead of appending them

Outputs (1)

NameTypeDescription
pipeBASIC_PIPE