Pipe Edit Prompt
Swap the prompts inside a pipe without rebuilding it
- pipe
- pipe
Once you've built an Easy-Use pipe - model, CLIP, VAE, conditioning, all bundled onto one wire - changing just the prompt normally means going back to the loader and re-encoding everything downstream of it. easy pipeEditPrompt skips that. It reaches into an existing pipe, re-encodes new positive and negative prompts, and hands the pipe back out with everything else untouched. It's the quick "same setup, different prompt" node.
The obvious use is a second pass with a different intent: generate a base image, then edit the pipe's prompt for a refiner or img2img stage that emphasizes something new. It's also handy for branching - take one loaded pipe and fork it into two prompt variants without duplicating the loader.
How it works
The pipe already carries a reference to the CLIP/text encoder it was built with. easy pipeEditPrompt uses that same encoder to turn your new positive and negative strings into fresh conditioning, then writes that conditioning back into the pipe in place of the old. Model, VAE, latent and sampler settings ride through unchanged. Because it reuses the pipe's own encoder, the new prompt is encoded exactly the way the original was - no mismatch between how the base and edited prompts were processed.
The inputs and outputs
There are only three inputs and they're all obvious:
pipe- the pipe you want to edit.positive- the new positive prompt. Whatever was there before is replaced.negative- the new negative prompt, likewise replaced.
Output is the single pipe, ready for the next node.
Note the scope: this is the focused version. The pack also ships a fuller easy pipeEdit that can splice conditioning with replace/concat/combine/average modes and edit other pipe fields. easy pipeEditPrompt deliberately does one thing - overwrite the two prompts - which is exactly what you want most of the time and keeps the node dead simple.
How to install it
Via ComfyUI Manager: search "ComfyUI Easy Use", install, restart. Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/yolain/ComfyUI-Easy-Use
Then install.bat / pip install -r requirements.txt, restart ComfyUI. Already installed on comfy.icu.
Common issues
The main thing to understand is that this replaces, it doesn't append. Whatever prompt was baked into the pipe upstream is gone after this node - if you wanted to add to it rather than swap it, you're looking for the concat behavior in the fuller easy pipeEdit, not this one.
Second, both prompt boxes are always live. If you fill in positive but leave negative blank, you've just cleared the pipe's negative prompt. That's occasionally what people want and occasionally a surprise, so if your negative-prompt effects vanish after this node, an empty negative box is the reason. Type the negative back in, or use the fuller edit node if you only want to touch one side.
And the usual Easy-Use requirement: it needs a real pipe from a loader upstream. It edits pipes, it doesn't create them.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| pipe | PIPE_LINE | — | |
| positive | STRING | — | |
| negative | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| pipe | PIPE_LINE | — |