Nodes/quadmoon's ComfyUI nodes/Save Smart Negative Config
ComfyUI Node

Save Smart Negative Config

Save a Negative Prompt Per Model, So You Stop Reusing the Wrong One

By traugdor·Created 3 years ago·Updated 9 months ago· 16
Save Smart Negative Config
  • trigger
  • TEXT
negative
config_name

Negative prompts are model-specific - the "text, watermark, low quality" boilerplate that cleans up one checkpoint can fight another. This node lets you save a negative once, tied to the specific checkpoint it belongs to, and reuse it later without retyping or cross-model contamination. It's the "save" half of the pack's Smart Negative system.

Why you'd reach for it

If you've built up a stock negative that you paste into every workflow, this is the node that makes it a library instead of a habit. You write the negative once, give it a name, and from then on the pack's matching CLIPTextEncode - Smart Negative loader can pull it for you - keyed to the model it was saved under, so an anime negative never silently leaks onto a photoreal model. It also plays nice with the author's design philosophy across this pack: save configs that are per model, because that's how prompts actually behave.

How it works

It takes the negative text plus a trigger from Load Model - Smart (the per-model key) and writes it into the pack's config store - a JSON file named qmSmartNodesConfig.json in ComfyUI's working directory. Entries are stored under the model's hash and labeled checkpointname - configname. Save to the same name again and it updates that slot; pick a new name and it adds a new slot. The TEXT output just echoes back the negative you saved, so you can keep using it downstream in the same graph.

Inputs and outputs

  • negative - the negative prompt text (comes in on a wire - from your own text or the pack's converters).
  • trigger - the SMART_TRIGGER output from Load Model - Smart.
  • config_name - the name you're saving this under; Load Config - Smart gives you a dropdown of existing ones.

Output: TEXT, the negative you just saved.

Installing it

Part of "quadmoon's ComfyUI nodes". ComfyUI Manager: search the pack title or Install via GIT URL with https://github.com/traugdor/ComfyUI-quadMoons-nodes.git. Manual:

cd ComfyUI/custom_nodes
git clone https://github.com/traugdor/ComfyUI-quadMoons-nodes.git

Restart ComfyUI. No models or dependencies.

Common issues

The trigger is mandatory and it's the thing people forget: without wiring in the trigger from Load Model - Smart, there's no per-model key to file under, so the save can't do its job - make sure you're loading your checkpoint with the smart loader, not the core one. And remember the rename hazard from the loader's article: rename the checkpoint file and the hash changes, making saved configs unreachable. Also worth knowing - you can't type directly into this node's negative input; it's wire-only, so string-convert or text nodes feed it.

CategoryQuadmoonNodes/SmartNodes

Inputs (3)

NameTypeDefaultDescription
negativeSTRING
triggerSMART_TRIGGER
config_nameSTRING

Outputs (1)

NameTypeDescription
TEXTSTRING