Flow Wrangler: graph-aware Smart Connect for ComfyUI #15472
Andy294753951
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I maintain ComfyUI Flow Wrangler, a frontend-only, MIT-licensed productivity extension for ComfyUI's node editor.
Its primary feature is Smart Connect. Select a set of disconnected nodes and press
Shift+W; the extension attempts to reconstruct plausible graph edges without modifying node execution or inference behavior.The interesting problem is candidate selection. Type compatibility is necessary, but often not discriminative: multiple values can share
IMAGE,MODEL, orCONDITIONINGwhile representing different workflow roles. A nearest-compatible-node heuristic can therefore produce links that are valid at the type level but wrong for the workflow.Flow Wrangler ranks candidates using observable evidence including slot names, node types and titles, graph topology, existing links, workflow branches, data-stage roles, namespace and group hints, and relative geometry. It includes role-specific handling for:
Hard constraints reject candidates that conflict with an expected role before soft scoring. Confidence and ambiguity checks can leave a high-risk input unresolved when competing candidates remain too close. This is intentional: a missing link is visible and easy to correct, while a plausible but semantically wrong link can silently send the wrong data through an entire branch.
The extension also includes Alt + Right Click Smart Connect, input swapping, output reroutes, data-flow layout, batch bypass, ComfyUI keybinding integration, and English / Simplified Chinese localization.
Repository and installation:
https://github.com/Andy294753951/ComfyUI-Flow-Wrangler
If you have a reproducible workflow involving unknown third-party nodes, parallel LoRA or MODEL branches, multiple control-image families, or several same-type candidates with misleading geometry, I would genuinely value it as a test case. The repository has a dedicated Smart Connect workflow report form:
https://github.com/Andy294753951/ComfyUI-Flow-Wrangler/issues/new?template=smart-connect-report.yml
All reactions