Skip to content
GitHub

StartFirst steps

Turn on AI review

In the panel: Ops › Automation/ops/automationNeeds settings:write

Holtkeeper’s reviewer reads every merge request with the repository’s rules, opens the surrounding code itself, and posts findings on the changed lines, with suggestions GitLab applies in one click, plus a summary. On the next push it reviews only what is new, resolves its own threads once they are fixed, and answers replies in its threads. Turning it on takes an AI provider and one event trigger.

  • A forge with a token that has the api scope and repositories added (Connect a forge).
  • A Bot username set on the forge, so Holtkeeper recognises its own threads and skips its own merge requests.
  • An API key for Anthropic, or for a gateway that speaks the Anthropic Messages API, or for another provider through the AI SDK.
  • Global settings:write and credentials:write (the Admin role).
  1. Open Settings › AI and choose Add provider.
  2. Pick the kind: anthropic for an Anthropic API key, anthropic-compatible for a gateway (with its base URL and header style), or ai-sdk for other providers.
  3. Paste the API key, name the provider (anthropic-main) and save.
  4. Use Test on its card to check it answers and can use tools.
  5. In the section’s settings, set AI provider to this credential. Its card now carries the tag Agents use it.

Models are picked per job by tier: reviews run on the main tier, re-checks of old threads on the fast one, and deep reviews on the largest. There is no model setting to choose.

A fresh install reviews nothing on its own: add a trigger.

  1. Open Ops › Automation and choose New rule.
  2. On the Event trigger tab, set Event to merge request.
  3. Under Merge request events, keep Opened, New commits and Reopened.
  4. Leave Include drafts off unless the team wants reviews on drafts.
  5. Set Analyzers to review, and limit it to one team (or some path patterns) if you want to start small.
  6. Save.
In the panel · Ops › Automation › New rule
OpsAutomationNew ruleEvent trigger
EventMerge request
Merge request eventsOpened, New commits, Reopened
Include drafts
Analyzersreview
TeamsWidgets
Save

An event trigger that queues the review on every merge request change of the Widgets team.

Open a merge request in one of those repositories, or push to one. Within a minute, or as soon as polling sees it, the review runs and the comments appear in GitLab.

Example · Merge request !42 in acme/checkout-web
src/cart/total.ts+3 −1
41 export function cartTotal(items: Item[]) {
42− return items.reduce((sum, item) => sum + item.price, 0)
42+ return items.reduce((sum, item) => sum + item.price * item.qty, 0)
43 }
Holtkeepermajorline 42

Prices are stored in cents as integers, but qty comes from the form as a string here, so price * qty turns into NaN for an empty field. Parse it where the item is built.

An inline finding with a one-click suggestion.

Add a second event trigger with Event set to command, Command review and Analyzer review. Anyone can then write /holtkeeper review (or mention the bot account, @<bot> review) in a merge request comment, and /holtkeeper review force=true reviews what is normally skipped.

In the panel, Quality › Reviews has Review a merge request (a repository and !42 or a merge request URL) and Review again on any past review; both need analyses:run.

  • Merge requests between release branches, such as develop → main or main → develop: their code was reviewed on the way in.
  • Merge requests opened by the bot account.
  • Diffs larger than 3,000 changed lines (a short note says so); lockfiles, generated files, snapshots and build output are always left out.
  • Repositories where Merge request reviews is off.

Choose Configure on Quality › Reviews to edit the analyzers.review options, for everything, a team, a path pattern or one repository:

Option Default Use it to
Comments per run 15 Cap the inline comments.
Minimum severity minor Post only major and critical findings, or include info.
Approve never when-clean approves merge requests with a clean review.
Depth standard deep reviews on the largest model, for critical repositories.
Ignore generated files, lockfiles, … Add paths the reviewer should skip.
Language the merge request description’s Comments in another language; code and suggestions stay in English.

Rules for what to look for belong in the repository, not in options. A REVIEW.md at the root goes first into the reviewer’s context; its ## Ignore section lists globs to skip and its ## Paths section gives rules for matching files. AGENTS.md, CLAUDE.md, .github/copilot-instructions.md, CONTRIBUTING.md, nested AGENTS.md files and Copilot or Cursor rules scoped to the changed files are read too, along with the rules written in Holtkeeper.

REVIEW.md
## Paths
- `migrations/**`: every migration must be reversible.
- `src/api/**`: keep the public contract; bump the version on breaking changes.
## Ignore
- `src/generated/**`

When authors reply to a finding with a lasting rule (“we always do X here”), Holtkeeper proposes it as a learning in the Inbox, so the next review knows it.

Set Merge request reviews to off for a team, a path pattern or a repository, with a reason. Holtkeeper then queues no review and posts nothing on those merge requests, while analyses and the merge requests it opens itself go on as usual. A repository entry that is on lifts a team or folder entry that is off. To keep Holtkeeper from changing a repository at all, freeze it instead.

In the panel · Quality › Reviews
ReviewsConfigureReview a merge request
38 reviews21 looks good17 needs changes64 findings · 9 major$6.40 AI cost

Every review with its verdict, findings, resolved threads and cost.