Hi — we're using custom rules for the AI reviewer,...
# how-do-i
y
Hi — we're using custom rules for the AI reviewer, stored as files in the repo and referenced from the Graphite UI. Few questions: 1. When a referenced file's contents change on the trunk branch, does Graphite pick up the new contents automatically, or is the rule a snapshot taken when it was first referenced? If it does re-read, when — per review, on push, or on some sync interval? 2. Is there a plan to support a convention-based path, e.g.
.graphite/ai_agent_rules/<rule-name>.md
, where Graphite discovers rules without each one being registered in the UI? 3. How do repo-defined rules and UI-defined rules interact — do they merge, does one override the other, or is it either/or? 4. Do rule changes on a feature branch apply to that branch's own PR review, or only after they land on trunk
c
Hey There! Not a snapshot. When an AI review runs, it re-reads matched files from the PR head commit. Feature-branch rule edits apply to that PR; trunk-only edits apply after they're in the PR head. UI prompts + file-based rules both run (additive). I don't see auto-discovery of a convention path today so still register each rule in the UI and point a glob at it. *https://graphite.com/docs/ai-review-customization*
👍 1