Skip to content
GitHub

Agents

The review agent

In the panel: Quality › Reviews/quality/reviewsNeeds analyses:read

Besides answering your agents, Holtkeeper runs an agent of its own: the review agent. It reads a merge request with the repository’s rules and rules files, posts inline comments with one-click suggestions and a summary, comes back when new commits land, resolves its threads once the problem is fixed and answers when someone replies. Every review is listed in Quality › Reviews.

  • On merge request events, when a merge request trigger in Ops › Automation lists the review analyzer: on open, reopen, new commits or leaving draft.
  • On demand: Review a merge request on Quality › Reviews (a repository and !N or the merge request URL), or Review again on a past review. Both need analyses:run.
  • On a reply in one of its threads: the agent answers that thread only.

Some merge requests are skipped by default, with the reason stored and nothing posted: merge requests between release branches (develop → main, release/* → main, back-merges like main → develop), whose code was reviewed on its way in, and merge requests Holtkeeper’s own bot opened. Review again overrides both. A repository with Merge request reviews off (mergeRequests.comments) or a read-only repository gets no review at all.

Before the first review of a merge request, Holtkeeper posts a short note saying the review is running and asking to wait for it; the note goes away when the review is posted, or says the review could not finish and how to start it again. The progressNote option posts it before every review (always) or never (never).

  1. Scope. Only lines the merge request adds in reviewable files. Lockfiles, generated code, snapshots, dist and similar are ignored, as are globs listed in the repository’s REVIEW.md. After the first review, only lines added since the last reviewed head are in scope.
  2. Context. The agent gets the repository’s root REVIEW.md, AGENTS.md, CLAUDE.md, .github/copilot-instructions.md and CONTRIBUTING.md, plus the other rules that apply for reviews: panel rules, nested and file-scoped rules files matching the changed files (AGENTS.md in a folder, Copilot applyTo, Cursor globs), policies and, last, learned rules. Comments cite the rules they rely on as [rule:<id>] and [learn:<id>]; a cited learning whose finding gets fixed is confirmed, see Learnings. It reads more code with its tools instead of getting whole files, and asks the package catalog and library index about dependencies, since the checkout is never installed.
  3. Checks. Deterministic checks run first. By default that is the test id check: new interactive elements without a test id, with an id suggested in the repository’s style. The agent comments on the ones it agrees with.
  4. A deliberate pass. Every changed file, the code around each change, its callers and the paths it touches; error paths, edge cases, concurrency and contracts. A shallow answer on a larger diff is sent back once to inspect the code. Dependencies are not installed in the review checkout: when the agent opens a file under node_modules (or the Go module cache), it gets that package’s API or source from Holtkeeper’s package index at the version the repository uses, and a search there is answered with the package tools to call instead. Diffs over 600 changed lines or 12 files are split into parts of related files that are reviewed in parallel.
  5. Images. Added or changed images and inline SVG are checked for size and format against the asset policy.
  6. Validate and post. Every comment must point at a changed line; findings that repeat an open thread are dropped; the rest is sorted by severity and capped (15 comments by default, minor and above). One review is posted with the inline comments and a summary.
Example · Merge request !412 · acme/checkout-web
src/cart/total.ts+6 −2
41 export function cartTotal(items: CartItem[]): number {
42− return items.reduce((sum, item) => sum + item.price * item.qty, 0)
42+ const total = items.reduce((sum, item) => sum + item.price * item.qty, 0)
43+ return Math.round(total * 100) / 100
Holtkeepermajorline 43

Money is integer cents here. price is already in cents, so rounding to two decimals changes nothing for whole numbers and only hides a fractional qty from the quantity input. Keep the sum integer and drop the fraction where it comes from.

return items.reduce((sum, item) => sum + item.price * Math.trunc(item.qty), 0)

An inline comment with a one-click suggestion.

The summary note carries the verdict, a short summary, how hard the change is to review (effort 1–5), a walkthrough of the logical changes, findings per severity, what happened to earlier threads, and what was not reviewed.

The review writes in the language of the merge request’s description: a description in German gets German comments, summary, walkthrough and replies. Code, suggestions, code comments and technical terms stay in English. Teams can fix the language with the language option of analyzers.review.

The texts Holtkeeper writes itself (the “review is running” note, the summary’s lines, the notes on resolved threads) follow the same language. The first review in a language has the AI model translate them once; the translation is kept and reused. Terms such as Severity, Critical, Package and Kind, the summary heading and code stay in English. Admins check and edit the translations in Settings › Analyzers › Bot messages, where they can also turn automatic translation off or add more terms to keep in English. When Holtkeeper’s English text changes in an update, its translation counts as outdated: English is posted until the next review translates it again.

When the fix is local, a comment carries a suggestion block that the author applies with one click in GitLab. Suggestions replace exactly the commented lines; no-op suggestions and ones that would copy neighbouring lines are dropped before posting. Suggestions are applied in the forge, never by Holtkeeper.

When new commits land, the agent reviews only what is new and re-checks its open threads whose file changed (at most 10 per run, on a fast model):

Outcome What the agent does
Fixed Resolves the thread with a short note.
The file left the merge request Resolves the thread.
Still applies and raised again Replies “still applies” instead of posting a duplicate.

Its own summary threads are resolved when a later review comes back clean (verdict looks good), so a merge request does not stay blocked on an old summary. Set resolveSummary to always or never to change that. Only notes by Holtkeeper’s own account are touched; a person’s copy of a summary never is.

Reply in one of the agent’s threads and it answers that thread: it explains, concedes and resolves, or updates the suggestion. A reply that teaches a lasting rule (“we always keep shape sizes in ShapeSize”) becomes a learning in Knowledge › Learnings. After the approval delay (3 days by default, unless a person rejects it) every later review and agent reads it. 👍 and 👎 reactions on comments are counted per finding category when the merge request closes; Quality › Reviews shows them under the table.

Every summary ends with this request: when a comment is wrong or misses the point, reply in its thread and say how it should be.

A coding agent connected over MCP asks for a review of its own merge request and reads it with one tool, code_review, so it can fix findings without you copying them from the forge. After pushing a branch or opening a merge request it offers you a review, then calls the tool with the repository and the branch, or the merge request number. There is nothing else to set: it is the same review a push starts.

  • It needs a merge request. For a branch without one the tool says to push the branch and open a merge request first. It also says when Holtkeeper’s forge user cannot read the repository’s merge requests, so a maintainer can give it access, and tells that apart from a wrong merge request number and from a forge that did not answer.
  • It makes sure a review is coming. When no review covers the newest commit and none is queued or running, the tool queues one. Where reviews start by themselves on new commits, the first call only notes the request and leaves the next minute to the automatic review; a later call queues one if none came. Either way a commit is never reviewed twice, also when two calls arrive together, and a commit whose review found nothing new counts as reviewed. A review the AI budget stopped is not queued again until the weekly budget resets, one that failed is tried once more for that commit, and a canceled one stays canceled.
  • Call it again for the findings. A review takes a few minutes; the same call then returns them.
> I pushed the fix. What does Holtkeeper say now?
● holtkeeper - code_review (repo: "gitlab:acme/checkout-web", branch: "feat/ABC-512-coupons")
⎿ ## gitlab:acme/checkout-web!412 feat(cart): [ABC-512] keep coupons after login
open · `feat/ABC-512-coupons` → `main` · head 9a8b7c6d · https://gitlab.example.com/…
**Review: Needs changes** (incremental, 2026-11-15T10:04:00Z, reviewed 9a8b7c6d)
### Earlier threads re-checked in this run
- Resolved · `src/cart/total.ts:43`: the sum stays in integer cents now
### Open Holtkeeper threads (1)
- **minor** · naming · `src/cart/coupon.ts:12` — Rename the widget flag (1 reply)
### Next
- Fix the open threads or answer them on the merge request, push, and call code_review again: the next review re-checks them and resolves the fixed ones.

The answer has:

  • the merge request: title, state, draft, branches, head and link;
  • the newest review: verdict, mode, when it ran, the head it reviewed (marked when it is older than the merge request’s head) and the summary;
  • that review’s findings by severity, with file and line, title, the comment (cut at 600 characters) and whether it carries a suggestion;
  • the earlier threads that review re-checked: resolved, or still applies and why;
  • the Holtkeeper threads still open on the forge, with the number of replies people wrote (left out when the forge cannot list threads);
  • up to four earlier reviews;
  • Next: what to do now.
Next says Meaning
Holtkeeper does not review this repository Merge request reviews is off for it, or the review analyzer is turned off; the reason follows.
The merge request is closed or merged Nothing more is reviewed.
A review was queued just now The tool queued it, after naming a last job that failed, hit the budget or was canceled. Call again in a few minutes.
A review is on its way Reviews start by themselves on new commits; call again in a few minutes.
A review is queued or running Call code_review again in a few minutes.
The repository is frozen Holtkeeper may not change it, so no review was queued; a maintainer can lift the freeze.
The AI budget stopped the review It was not queued again this week; call again after the weekly budget resets, or have it raised.
The review failed or was canceled It was not queued again; comment /holtkeeper review on the merge request or push a new commit.
Could not tell whether it was reviewed Nothing was queued; comment /holtkeeper review on the merge request to ask for a review.
The newest commits brought nothing new The review looked at them and found nothing to review.
Fix the open threads Fix them or answer in the thread, push and call again; the next review re-checks them and resolves fixed ones.
Nothing left to fix The newest review is clean and nothing is running.

Replies to the agent’s threads and reviews that found nothing new are left out of the list of runs. code_review needs analyses:read on the repository; a repository you cannot read, a branch without a merge request or a call without branch and mergeRequest answers with an error that says what to do.

In the panel · Quality › Reviews › !412
!412feat(cart): [ABC-512] keep coupons after login

Needs changes

2 of 38Open merge requestReview again
Repository
acme/checkout-web
Branches
feat/ABC-512-coupons → main
Mode
incremental
Rules
4 rules · AGENTS.md · REVIEW.md · 3 learned
Cost
$0.38 · 1m 52s
Findings3SummaryLearnings1

Options are the analyzers.review setting, per repository, path pattern, team or everywhere; Configure on Quality › Reviews opens it.

Option Default Meaning
maxComments 15 Inline comments per run.
minSeverity minor info, minor, major or critical.
includeChecks testids Deterministic checks: secrets, testids, both, or none.
approve never when-clean approves clean reviews.
resolveSummary when-clean When its summary threads are resolved: when-clean, always or never.
depth standard deep reviews on the deeper model tier.
language the description’s Language of comments, summary and replies.
maxDiffLines 3000 Larger diffs are skipped with a note.
progressNote first The “review is running” note: first, always or never.
ignore lockfiles, generated, … Path globs never reviewed.
goGuidelines on Modern Go guidelines for Go changes; tag pins an upstream release.

REVIEW.md at the repository root goes first into the agent’s context. A ## Ignore section lists globs to skip, and a ## Paths section gives rules for files matching a glob:

REVIEW.md
## Ignore
- `src/generated/**`
## Paths
- `migrations/**`: every migration must be reversible.