What custom instructions are
When an agent reviews a pull request, its system prompt is assembled in this order:Custom instructions
Your free-text instructions are appended to the system prompt, giving the agent project-specific context.
Two levels, one priority
Custom instructions can be set at two levels:| Level | Where to set it | Scope |
|---|---|---|
| Installation-level | Dashboard > Settings > Custom Instructions | Applies to all repositories in the installation |
| Repo-level | .mergewatch.yml under customAgents[].prompt | Applies to a specific custom agent in a specific repo |
- Installation-level custom instructions are appended to every built-in agent’s system prompt as a shared prefix.
- Custom agents defined in
customAgentsuse their ownpromptfield and do not receive the installation-level instructions. - To add domain-specific review logic for a repo, define a
customAgentsentry with a targeted prompt.
Examples for common stacks
Character limits
Custom instructions have the following character limits:| Level | Limit |
|---|---|
| Installation-level | 1000 characters |
Repo-level (customAgents[].prompt) | 1000 characters per agent |
Installation-level instructions serve as a shared prefix appended to every built-in agent prompt. Keep them concise to leave room for the diff payload in the model’s context window.
What makes a good custom instruction
Be specific, not generic
Be specific, not generic
Good: “Flag any use of
eval() or Function() constructor in client-side code.”Bad: “Find security issues.” (The agent already does this by default.)Name your stack explicitly
Name your stack explicitly
Good: “This is a Next.js 14 app using App Router. Flag any use of
getServerSideProps — we use Server Components instead.”Bad: “Follow framework best practices.” (Which framework?)Use negative examples
Use negative examples
Good: “Do NOT flag missing semicolons — our Prettier config handles that. DO flag unused imports.”Bad: “Check code style.” (Too broad, overlaps with linters.)
Keep it short
Keep it short
Instructions under 200 characters tend to produce the most focused results. Longer instructions risk diluting the agent’s attention across too many concerns.
Next steps
.mergewatch.yml Reference
Full reference for all configuration properties, defaults, and examples.
Skip Rules
Control which PRs are skipped and configure path-based and label-based rules.