{"version":"2.1.334","anchor":"reviewmd-folder-files-and-default-branch-reading-for-review","canonical_anchor":"reviewmd-folder-files-and-default-branch-reading-for-review","heading":"Code review prompts can follow REVIEW.md files in individual folders","tier":"notice","area":"Code Review","scope":"both","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/reviewmd-folder-files-and-default-branch-reading-for-review","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Code review prompts can follow REVIEW.md files in individual folders\n\nCode review now reads REVIEW.md from the default branch, including per-folder files, with limits and a note when one could not be followed\n\n**Unclear.** It is not clear which review command uses these files or whether it is switched on for everyone.\n\n**What**\n\nREVIEW.md is a file a repository can contain to tell automated code review what to check. New code builds a section of the review prompt (the instructions given to the model) from these files:\n\n- `REVIEW.md` is read from the default branch, the repository's main line of work, using git.\n\n- `REVIEW.md` files inside the folders a change touches are now read too, and the prompt tells the model to follow them.\n\n- Folder files only add checks on top of the main file.\n\n- The number of folders and the total bytes read are capped.\n\n- Directories such as `vendor`, `node_modules` and test-like folders are skipped.\n\n- When a REVIEW.md could not be followed, the prompt says why. One example message is \"Folder REVIEW.md files were not read: git could not list them in this clone\".\n\nThe findings did not trace what calls this code or what controls when it is used.\n\n**Why**\n\nRepository maintainers could give different review instructions for different parts of a project. Because the files are read from the default branch, a change under review cannot rewrite its own review rules. The text of the review prompt changes along with this.\n\n- Area: Code Review\n- Names: `REVIEW.md`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: both\n- Heads-up: no"}