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.

Try to make coderabbit enforce AGENTS.md (#14759)

comfyanonymousb7ba504e0614
diff --git a/.coderabbit.yaml b/.coderabbit.yaml
index 0d1e49270..08629ed8e 100644
--- a/.coderabbit.yaml
+++ b/.coderabbit.yaml
@@ -4,12 +4,12 @@ early_access: false
tone_instructions: "Only comment on issues introduced by this PR's changes. Do not flag pre-existing problems in moved, re-indented, or reformatted code."
reviews:
- profile: "chill"
- request_changes_workflow: false
+ profile: "assertive"
+ request_changes_workflow: true
high_level_summary: false
poem: false
review_status: false
- review_details: false
+ review_details: true
commit_status: true
collapse_walkthrough: true
changed_files_summary: false
@@ -39,6 +39,14 @@ reviews:
- path: "**"
instructions: |
IMPORTANT: Only comment on issues directly introduced by this PR's code changes.
+ Treat AGENTS.md as mandatory repository policy, not optional style guidance.
+ Flag PR changes that violate AGENTS.md even when the code is otherwise functional.
+ In particular, enforce architecture boundaries, dtype/device/memory rules,
+ interface contracts, import style, no unnecessary try/except blocks, no inline
+ imports, no outbound internet paths in core ComfyUI, and narrow scoped fixes.
+ Prefer direct findings over suggestions when a rule is violated. Only ignore
+ AGENTS.md when it clearly conflicts with a newer explicit maintainer instruction
+ in the PR.
Do NOT flag pre-existing issues in code that was merely moved, re-indented,
de-indented, or reformatted without logic changes. If code appears in the diff
only due to whitespace or structural reformatting (e.g., removing a `with:` block),
@@ -123,5 +131,10 @@ chat:
knowledge_base:
opt_out: false
+ code_guidelines:
+ enabled: true
+ filePatterns:
+ - files: "AGENTS.md"
+ applyTo: "**"
learnings:
scope: "auto"