Set up reviews
Pick the repositories to watch, the reviewer agent and the test checks that prove behaviour.
Setting up reviews takes three steps: connect your Git host, connect a model, and watch a repository. After that, every merge request in a watched repository gets a review. This page covers the three steps, then the choices you make for each repository: which agent reviews it, and which CI checks prove that its tests passed.
Before you start
Anyone can open the setup page and see which steps are done. Only an admin can do them. A member or viewer sees "Ask an admin to connect GitHub or GitLab." or "Ask an admin to connect a model." in place of the button.
The three steps
Open Reviews › Set up. The page shows the three steps with a tick on each one that is done. The next step's button is the main one.
- Connect GitHub or GitLab. Connect a Git host takes you to Settings › Integrations and back. Entropix reads changes and posts only comments and statuses. See Connect GitHub or GitLab. An SSH key alone does not turn reviews on. SSH keys let agents read your code, but reviews need the Git host connection.
- Connect a model. The reviewer agent needs a model to read a change. The step uses the organisation's default model, else the reviewer agent's own model, else the portal's built-in one. If it uses the portal's model, the step says so: your prompts, repository text and tool results go to that model until you add your own on Models. If the model's last connection test failed, the step says it could not reach it, and reviews wait until it answers.
- Watch a repository. Choose repositories takes you to the list of repositories your Git host connection can see. See Watch a repository below.
When all three are done, the page says "Reviews are on. Open a merge request on a watched repository." with a button to Open Reviews.
Two more panels sit below the steps. Set up security review adds a security agent that checks secrets, dependencies and sensitive paths (see Security reviewer). Review agents controls which of your other agents join a review when the change is theirs (see Review agents and the review panel).
Watch a repository
- Open Settings › Integrations. Under each installation, Not watched yet lists the repositories it can see, with private and archived ones tagged.
- Press Watch on a repository, or Watch all to watch every one in the list.
- The repository moves to Repositories watched. On GitLab Free, Entropix adds the project's webhook at this point, and the row says "Webhook set on this project."
When you watch a repository, Entropix also queues a review of up to 3 of its most recently updated open merge requests, so you see a result without waiting for a new one. Drafts are skipped. Watch all reports how many were watched, how many were already watched and how many were refused. The list shows the first 500 repositories. Press Refresh after you give the Git host connection access to more repositories.
If the list cannot be loaded, the page says "Couldn't list repositories — watch one by hand below." Enter the repository's id and its owner/repo name. Finding the id explains where to get it. On GitHub, the id is in https://api.github.com/repos/<owner>/<repo>, or you can run gh api repos/<owner>/<repo> --jq .id. On GitLab, it is on the project's overview page.
To stop reviewing a repository, open its Edit fold and press Unwatch.
Choose a repository's settings
Each watched repository has a row with its Reviewer, Mode and Tests. Open Edit to change them, then press Save.
| Setting | What it does | Default |
|---|---|---|
| Reviewer | The agent that reviews this repository's changes. The list shows each agent's tools and whether it has the review skills ("✓ review skills" or "missing N"). | Organisation default |
| Mode | Comment or Comment + suggest. Today Entropix posts the same comments and status in both modes, as the portal's Which mode to pick help says: Comment + suggest is kept for inline code suggestions, which are not posted yet. | Comment + suggest after Watch; Comment when watched by hand |
| Test checks | The names of the CI checks that run this repository's tests, one per line. These decide what can be proven. See Set test checks. | None |
The fold also links to the repository's panel (Panel: Reviewer only, or Panel: Reviewer + N), where you can pin specialist agents beside the reviewer. See Review agents and the review panel. Review open merge requests (on GitHub, Review open pull requests) queues a review of up to 5 open changes that are not drafts and not already queued.
Pick the reviewer
Every repository is reviewed by one primary reviewer agent:
- The organisation default reviews every watched repository that has no reviewer of its own. Every new organisation starts with a reviewer agent as the default. To change it, open the Settings tab of an agent made with the Code reviewer type (or the seeded reviewer) and press Make default beside "Organisation default reviewer". Other agent types do not offer Make default; make them a repository's reviewer instead. Only one agent is the default at a time. This needs the Admin role.
- A repository's own reviewer overrides the default for that repository. Pick it in the repository's Reviewer list on Settings › Integrations.
With no default and no repository reviewer, the row says "none — reviews cannot run", and the top of Settings › Integrations says "No default reviewer yet, so reviews can't run."
Make any agent a reviewer
Any agent can review, for example a Kubernetes agent for a repository of manifests. A good reviewer has the five review skills: reviewing-a-change, writing-a-finding, proving-behaviour, failure-scenarios and re-reviewing. When you pick an agent that is missing some of them, as a repository's reviewer or as the default, Entropix first asks you to confirm.
- Pick the agent in a repository's Reviewer list and press Save, or, for a Code reviewer agent, press Make default on its Settings tab.
- The confirm page says how many of the review skills the agent has, for example "Ops helper has 2 of 5 review skills. Add them?"
- Choose Add N skills and make reviewer to copy the missing skills into the agent, or Make reviewer without them. Cancel changes nothing.
Adding the skills does not touch the agent's main skill, tools or clusters. Adding skills needs the right to manage agents (Admin). An agent with no review skills of its own still reviews: Entropix fills in its built-in review skills. A review made without them shows a "skills missing" warning on its page. See Agent settings and Main skill and skills.
Set test checks
A review sorts what the change does into proven, assumed and unknown behaviours. A behaviour is proven only when a test in the repository exercises it and the repository's test checks passed on the reviewed commit. Entropix reads the check results from your Git host itself. The model's word is not enough.
- On Settings › Integrations, open the repository's Edit fold.
- In Test checks, enter the names of the CI checks that run its tests, one per line, exactly as the Git host shows them. For example
testorci / unit-tests. - Press Save. The row's Tests column shows how many checks are set.
Names are matched exactly, case included, after spaces at the ends are trimmed. Duplicates are dropped. You can set at most 20 names, each at most 200 characters. With no names set, nothing can be proven.
| On the reviewed commit | What the review can say |
|---|---|
| No test checks set | Nothing proven. The review page suggests setting them. |
| None of the named checks ran | Nothing proven ("No tests ran in CI"). |
| A named check failed | Nothing proven. |
| A named check is still running | Nothing proven yet. |
| Every named check that ran passed | Behaviours a test exercises can be proven. |
On GitHub, reading checks needs the App's Checks: Read-only permission. If the checks cannot be read, they count as missing and nothing fails.
How it works
- A repository is reviewed only while it is watched and its installation is connected.
- The hourly review limit (60 by default) is per organisation, not per repository. An extra shows under Activity as "over the hourly review limit for this organisation". See How code review works.
- Changing the reviewer, mode or test checks affects the next round. Rounds already finished keep what they found.
What you can and can't do
- Watch as many repositories as your Git host connection can see.
- Give each repository its own reviewer, or let it use the organisation default.
- Make any agent a reviewer, with or without the review skills.
- Review a repository's open merge requests right away.
- Change any of this as a Member or Viewer.
- Prove a behaviour without test checks that passed on the reviewed commit.
- Have more than one default reviewer at a time.
- Set the hourly review limit from the portal.
Troubleshooting
| Message | What to do |
|---|---|
| No default reviewer yet, so reviews can't run. | Open a Code reviewer agent's Settings and press Make default, or pick a reviewer for each repository. |
| Not reviewing — no model configured | Connect a model on Models. |
| Couldn't add the webhook to this project | Add it by hand (see Connect GitHub or GitLab). |
| Nothing new to review: every open one is a draft or already queued. | There is nothing to queue. Mark a draft ready, or wait for a new push. |
Related
- Read a review: what you see when the first review finishes.
- Connect GitHub or GitLab
- How code review works
- Review agents and the review panel
- Security reviewer
- Agent settings
- Choose a model