Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Update architecture boundaries in AGENTS.md (#17331)

comfyanonymous7cebca52227c
diff --git a/AGENTS.md b/AGENTS.md
index 025b9624a..be5cd70ad 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -29,6 +29,12 @@
## Architecture Boundaries
+- Keep `comfy/` limited to model implementations and their supporting inference
+ infrastructure, consistent with its current scope: model detection, loading,
+ and conversion; encoders, tokenizers, and latent formats; conditioning,
+ sampling, and model patching; tensor operations, quantization, and device,
+ memory, and offload management. Put UI, API/server, workflow/queue, application
+ persistence, and other product-level logic outside `comfy/`.
- Keep each layer focused on the concepts it owns. Do not leak UI, API,
workflow, queue, persistence, telemetry, model-loading, node, or execution
concerns into unrelated layers just because it is convenient to pass data