Update AGENTS.md with node behavior rules

This commit is contained in:
comfyanonymous 2026-07-02 16:36:19 -07:00 committed by GitHub
parent e7af482c00
commit eb838e2326
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -253,6 +253,10 @@
workflow convenience unless the node is explicitly an output node. Existing workflow convenience unless the node is explicitly an output node. Existing
models, latents, conditioning, or other inputs should flow directly to the models, latents, conditioning, or other inputs should flow directly to the
next consumer instead of being re-emitted unchanged. next consumer instead of being re-emitted unchanged.
- Nodes should expose only inputs they actually read to produce current
behavior. Do not add placeholder, pass-through, compatibility, or
workflow-shaping inputs that are ignored or could flow directly to another
node.
- Node-level code must not patch model code directly. Any node behavior that - Node-level code must not patch model code directly. Any node behavior that
modifies, wraps, hooks, or changes model behavior must go through the model modifies, wraps, hooks, or changes model behavior must go through the model
patcher class instead of reaching into model internals. patcher class instead of reaching into model internals.