Code Review GuideTools & workflows
Perch vs GitLab Duo Code Review Flow · reviewed 2026-10-14

GitLab Duo comparison for behavior checks before a merge request

Perch lets the coding agent run a selected English rule outside the merge request. Keep the requirement and command with the source so local edits and CI can verify the same intended behavior.

perch check reads working files; perch scan reads Git HEAD. Relevant source is sent to TypeSafe’s hosted models. The MIT CLI does not run model inference offline.

Catch the fix an agent removes later.

A saved requirement makes a recurring mistake checkable. In this Perch capture from September 20, 2026, the same rule flags a missing guard and passes after the guard is restored.

The regression

def refund(order, payment):
    payment.refund(order.total)
    order.status = "refunded"
    return order

1 check, 1 broken. Refunded orders cannot be refunded again.

The guarded method

def refund(order, payment):
    if order.status == "refunded":
        return order
    payment.refund(order.total)
    order.status = "refunded"
    return order

1 check, nothing to report.

Source: public order-service checkout.py at the linked commit. The captured standalone file is refund.py. Perch command output and timestamp. This saved-rule demonstration does not measure GitLab Duo Code Review Flow's detection rate.

Perch vs GitLab Duo Code Review Flow: what your team runs.

Published Perch capabilities and GitLab Duo Code Review Flow documentation, reviewed 2026-10-14
CapabilityPerchGitLab Duo Code Review Flow
Billing10¢ per 1,000 fresh rule checks. Cached checks free. No seat fees.4 managed-model reviews per GitLab Credit; on-demand credits are $1 each. Self-hosted models allow 5/credit.Vendor documentation ↗
Before commitperch check reads the files on disk, including uncommitted edits.GitLab merge-request flow; standalone local review was not verified.Vendor documentation ↗
Custom requirementsEnglish ensure rules in perch.yaml: project, file or method scope. No paid custom-rule tier.Custom review instructions with repository context.Vendor documentation ↗
CoverageEach parsed non-test application method in the selected scan scope is read, with caller and callee context. No method-count cap.Agentic merge-request review using cross-file context.Vendor documentation ↗
Open sourceMIT-licensed CLI. Hosted model analysis is a paid service.Commercial agent platform feature.Vendor documentation ↗

Review before committing

GitLab Duo Code Review Flow: GitLab merge-request flow; standalone local review was not verified. GitLab Duo Code Review Flow workflow documentation.

Perch reads the current working file with perch check. For a known requirement, select its rule name and method instead of requesting another broad review. A local CLI describes where the command runs; Perch sends relevant source to hosted TypeSafe models for analysis.

How do saved requirements differ?

GitLab Duo Code Review Flow: Custom review instructions with repository context. GitLab Duo Code Review Flow rule documentation.

Perch stores English ensure rules in perch.yaml or .perch/rules/. Project, file and method scopes determine what is checked. Run the named check after an edit and after the repair; a rule finding can fail the command and a CI gate. Perch rules · Working-file checks.

Is the CLI open source and offline?

GitLab Duo Code Review Flow: Commercial agent platform feature. GitLab Duo Code Review Flow product or license source.

Perch’s CLI is MIT-licensed; hosted model inference is a separate paid service included in its published check rate. It does not run the model offline. Perch MIT license.

When does GitLab Duo Code Review Flow fit the workflow?

GitLab Duo Code Review Flow uses cross-file merge-request context. Its on-demand review rate can be below Perch’s mid-sized estimate; Perch’s distinction here is the local, separately selected requirement check.

Make the agent check its next edit.

Save a behavior rule

perch rules add refund-once \
  --where refund.py --each method \
  --ensure "Refunded orders cannot be refunded again."

The captured rule checks the requirement shown above. Rule syntax and selectors

Use perch scan for repository code at Git HEAD and changed-code CI checks for pull requests. New model judgments can vary. Repeatability comes from cached answers for unchanged requests; a pass does not prove application correctness.

Sources and price details

Published by Perch. Vendor facts were reviewed on 2026-10-14; plans and allowances can change. Vendor marks belong to their owners.

Perch sources and example arithmetic

Plan your 2027 review workflow

Best AI code review tools for 2027 · 2027 cost model and comparison workbooks

Compare GitLab Duo Code Review Flow with other review tools

Full head-to-head library and tool selector