AI agents: read /llms.txt for the documentation index or append .md to any guide URL for raw Markdown.
Skip to content

Getting started: install the GitHub App ​

Install the GitHub App on a public repository and open a pull request. That is enough for a free AI review: no panel sign-in, no provider key, and no .mergejudge.yml. Public repos get free AI reviews in diff mode, up to 10 per repo per calendar month (UTC), while overall free capacity for the month lasts. A very large diff, or a review after either limit, falls back to rules-only with a short note. Private repos need your own key or the open-source runner, or they stay rules-only. MergeJudge never merges a pull request. Auto means low risk, not a guarantee.

Public repo quickstart ​

1. Install the GitHub App ​

Install the MergeJudge GitHub App on your account or organization and pick the public repository. See the hosted service for what the App can do.

You do not need the open-source runner for this path. npx mergejudge-runner setup is for running reviews on your machine. It signs in with GitHub, or you use an enrollment code from the panel.

2. Open a pull request ​

Open a pull request on that public repository. No workflow file and no config file are required. Without .mergejudge.yml, MergeJudge uses its defaults, and a public repo with no key uses the free AI review.

3. Check the summary and the lane check ​

You get:

  • one sticky comment (edited in place) with lanes, reasons, rubric results and a collapsed per-file list;
  • a mergejudge/lane check: success = auto, neutral = review, failure = block;
  • line comments on the exact diff lines for model and rubric findings.

When the free AI review runs, the comment includes a line with how many free reviews this repo has used this month. When it does not, the comment says why it stayed rules-only.

Make mergejudge/lane a required check in branch protection or a ruleset if you want a block lane to stop merges. A review lane posts a neutral check. GitHub counts a neutral conclusion as a successful required status check, so keep a required human review for those pull requests.

Auto is a lane label for low risk, not a guarantee. MergeJudge does not merge pull requests. If you later turn on approval.mode: auto-merge-only, it asks GitHub to auto-merge auto-lane pull requests only after your branch protection rules are met.

Free AI reviews use Cloudflare Workers AI. They are not the same as a review that uses your own provider key, and they stay in diff mode.

Optional: private or advanced ​

Use this section for a private repository, more review volume, your own model, or custom settings. A public repo can skip it and still get free AI reviews.

Panel sign-in ​

Open the manager panel and sign in with GitHub. You see only installations you administer.

If you open the panel before adding a key or a runner, a public repo shows that free AI is on (10 per repo per month UTC). A private repo, or an installation with no public repo on the free path, shows a warning that reviews stay rules-only until you add a key or a runner. That warning has two buttons, Add a runner and Save an API key. You can dismiss the message for the current browser session. It comes back in a new session while nothing is set up.

Choose how AI review runs ​

A public repo with no key and no runner gets free AI reviews: up to 10 per repo per calendar month (UTC), in diff mode, on a model we run on Cloudflare Workers AI. You do not need a key, the panel, or a .mergejudge.yml for it. Very large pull requests, pull requests after the repo's monthly free reviews are used up, and pull requests after the overall free capacity for the month is used up get a rules-only review, with a short note saying why. Private repos never use the free reviews. Free AI uses Cloudflare Workers AI. It is not the same as saving your own provider key.

For private repos or more volume, pick one.

Your own provider key (hosted) ​

Save a provider key in the panel (stored encrypted, shown as name + last 4 only), then set provider.type and provider.model in .mergejudge.yml on your default branch:

yaml
provider:
  type: anthropic           # anthropic | openai | zai | openai-compatible
  model: claude-sonnet-5-5  # example; use whatever your provider offers

See LLM providers. The diff and context review modes run on our hosted service, which calls your provider with your key. Deep mode with a hosted code index is not offered. A runner can do deep. Your code is processed to run the review and not stored. The AI result is cached for 7 days so edits to the pull request text do not need a new call. Name the key in the panel like the provider's key name (for example ANTHROPIC_API_KEY), or set provider.api_key_env to the name you used.

The runner, on your machine ​

Open Runners in the panel and choose Add runner to get an enrollment code, then run the open-source runner (source, npm). It needs Node 20 or newer and at least one of: Claude Code (signed in), the Codex CLI (signed in with ChatGPT), or a GLM (z.ai) API key. In deep-local mode it reads your local clone.

A private repo with neither a key nor a runner gets a rules-only review.

Add the config file ​

A .mergejudge.yml on the default branch is optional. Without it, MergeJudge uses its defaults. On a public repo with no key, that is the free AI review. Add one to choose the AI, review mode and other settings. You can write it by hand (see the config reference), or let the panel do it:

  1. On the Overview page, the Finish setup card lists up to three repos with Set up next to each (with one repo left, the button reads Set up MergeJudge for this repo). For more, choose See all to open the Repositories page, filtered to repos without a config file. There, each such repo shows No config and Set up. A repo that already has the file shows Config found with a link to it. To change its settings later, see Change settings later.
  2. Choose a review mode (diff, context or deep; see review modes), an AI provider (none, a key you saved on the Keys page, or one of your runners), optional protected paths, whether learning is on, and approvals (see Approvals). There is also an off-by-default switch for small code changes. See Let small code changes get the auto lane.
  3. Check the preview of the file.
  4. Choose Open pull request. The panel opens a pull request from a new branch, mergejudge/setup-config, that adds .mergejudge.yml. It never merges it. You read it and merge it yourself.

Only people with write access to the repo on GitHub can do this. If the panel cannot open the pull request with the App's current GitHub permissions, it shows the file to copy and a link to create it on GitHub instead.

Every key in .mergejudge.yml is optional. It is read from the pull request's base branch, so a pull request cannot change its own rules.

Change settings later ​

A repo that already has the file shows Edit settings next to Config found on the Repositories page.

  1. Choose Edit settings. The same questions open, filled in from the current file: review mode, AI provider, protected paths, learning, approvals and the code auto switch. For protected paths you see the whole list from the file.
  2. Change what you want, then check the preview. It shows the old and the new file as a list of removed and added lines.
  3. Choose Open pull request. The panel opens a pull request on mergejudge/setup-config that updates the file. If a setup pull request is already open, the panel adds to it instead of opening a second one. It never merges it.

Only these six settings change. Other keys and comments are kept, though spacing on a changed line may be tidied. Lists written on one line, such as auto: ["docs/**"], stay that way. The preview shows every line that changes, and nothing is written until you open the pull request. If nothing changed, the panel tells you and opens nothing.

If the file is not valid YAML, has more than one document, or uses an anchor or alias on one of these settings, the panel tells you which setting and why, and shows Edit this file on GitHub with a link instead. As for first-time setup, only people with write access to the repo can do this, and if the panel cannot write with the App's current GitHub permissions, it shows the new file to copy and a link to edit it on GitHub.

When a setup pull request is open, the repo shows Setup PR open with a link to it.

Let small code changes get the auto lane ​

Code files always need review unless you switch this on. In the setup wizard and in Edit settings it is the switch Let small, clean code changes get the auto lane, off by default. When it is on, two number boxes appear: Max changed lines per file (default 30) and Max changed lines per PR (default 100). Leave a box empty to use the default. The panel accepts whole numbers from 1 up to 500 per file and 2000 per PR.

  • It writes lanes.code_auto.enabled, max_lines and max_total_lines. It does not write or change lanes.code_auto.paths or lanes.trusted_authors. Set those in the file if you want them.
  • Edit settings reads the current values from the file (no code_auto block means off, with the defaults). Switching it off sets enabled: false and keeps the other code_auto keys.
  • The switch only makes a file a candidate. A code file gets the auto lane only when the rules in Low-risk code auto all hold, including that the AI says auto for it with a reason. A rules-only review cannot do it.
  • Auto is a lane (a label on the pull request). MergeJudge does not merge pull requests itself. If you turn on approval.mode: auto-merge-only, it asks GitHub to auto-merge auto-lane pull requests once your branch's protection rules (such as required checks or reviews) are met. If your own automation merges on this label, those merges are your decision.

When a pull request gets a rules-only review, the comment carries this note, with links to the panel's Keys and Runners pages:

Rules-only review: no AI provider is set up for this repo. Public repositories get free AI reviews to start, within a monthly limit. For private repos or more volume, save your provider key in the MergeJudge panel and set provider.type and provider.model in .mergejudge.yml, or connect a runner.

FAQ ​

Do I need the panel for a public repo? ​

No. Install the GitHub App and open a pull request. A public repo gets free AI reviews with no panel sign-in, no provider key, and no config file, up to 10 per repo per calendar month (UTC), while overall free capacity for the month lasts. Very large diffs and reviews past those limits fall back to rules-only. Use the panel for a private repo, your own key, a runner, or a config file.

How do I make AI code review a required check on GitHub? ​

In branch protection or a ruleset, add mergejudge/lane as a required status check. A block lane posts a failing check, so the PR can't merge. A review lane posts a neutral check, and GitHub counts a neutral conclusion as a successful required status check, so keep a required human review for those PRs.

Do I need a workflow file? ​

Not with the hosted GitHub App. If you prefer to run everything in your own CI, use the GitHub Action instead.

Does MergeJudge work without an AI key? ​

Yes. A public repo with no key and no runner gets free AI reviews, up to 10 per repo per calendar month (UTC), in diff mode, while overall free capacity lasts. Private repos, very large diffs, and pull requests past the free limits get a rules-only review.

Next ​

The MergeJudge runner is open source (MIT). MergeJudge doesn't merge pull requests itself. MergeJudge is not affiliated with or endorsed by GitHub. Sign in · Impressum · Privacy · Terms · Cookie settings