Discovery order
When a review starts, MergeWatch resolves conventions in this order:- The path set by
conventions:in.mergewatch.yml(if present) AGENTS.mdat the repo rootCONVENTIONS.mdat the repo root.mergewatch/conventions.mdat the repo root- No conventions — the agents run without repo-specific context
Example — AGENTS.md
Explicit path in .mergewatch.yml
If you want your conventions file somewhere other than the default paths — for example, alongside existing architecture docs — set conventions: explicitly:
.mergewatch.yml
conventions: is set, MergeWatch tries only that path. If the file is missing, no conventions are injected (auto-discovery does not fall back).
Size cap
Conventions files are capped at 16 KB when injected into prompts. If your file is larger, the first 16 KB is used and an explicit[truncated — showing first 16 KB] marker is appended so the agents know context was cut.
What to put in a conventions file
Things that work well:- Opt-out rules — “don’t flag X because we handle it centrally”
- House patterns — naming conventions, folder layout, error-handling idioms
- Stack-specific quirks — “we use server components; don’t suggest
'use client'for anything inapp/” - Team norms — commit message style, review checklist expectations
- Generic best practices (the agents already know those)
- Repo-wide file exclusions → use
excludePatterns/ignorePatterns - Custom review behaviors that can be toggled → use the dashboard Settings or
.mergewatch.ymlschema directly
Precedence vs. dashboard Custom Instructions
Both conventions and the dashboard’s Custom Instructions field inject extra text into agent prompts. They stack rather than override:- Custom Instructions are installation-level and capped at 1,000 characters — good for org-wide rules that apply to every repo.
- Conventions are repo-level and capped at 16 KB — good for repo-specific architecture and patterns.
Next steps
.mergewatch.yml Reference
Full schema of the per-repo configuration file.
Custom Instructions
Installation-level prompt additions managed via the dashboard.