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.
Perch checks whether a selected method satisfies a saved project requirement. It gives the coding agent a direct repair-and-recheck command alongside the repository’s code-health and maintenance tools.
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.
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.
def refund(order, payment):
payment.refund(order.total)
order.status = "refunded"
return order
1 check, 1 broken. Refunded orders cannot be refunded again.
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 CodeScene's detection rate.
| Capability | Perch | CodeScene |
|---|---|---|
| Billing | 10¢ per 1,000 fresh rule checks. Cached checks free. No seat fees. | Standard: €18/active author/month billed yearly. Pro: €27. Community access is free for OSS.Vendor documentation ↗ |
| Before commit | perch check reads the files on disk, including uncommitted edits. | Local CodeHealth MCP and IDE tools; standalone MCP is €8 or $9/month after trial.Vendor documentation ↗ |
| Custom requirements | English ensure rules in perch.yaml: project, file or method scope. No paid custom-rule tier. | Customizable Code Health rules and quality gates.Vendor documentation ↗ |
| Coverage | Each parsed non-test application method in the selected scan scope is read, with caller and callee context. No method-count cap. | Code health, hotspots, technical debt and knowledge distribution.Vendor documentation ↗ |
| Open source | MIT-licensed CLI. Hosted model analysis is a paid service. | Commercial core with separately licensed open components.Vendor documentation ↗ |
CodeScene: Local CodeHealth MCP and IDE tools; standalone MCP is €8 or $9/month after trial. CodeScene 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.
CodeScene: Customizable Code Health rules and quality gates. CodeScene 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.
CodeScene: Commercial core with separately licensed open components. CodeScene 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.
CodeScene analyzes code health, hotspots and knowledge distribution. Its local CodeHealth MCP and broader platform subscription are different products, and neither is an equal-coverage substitute for semantic behavior checks.
Perch and CodeScene: pricing, allowances and workload calculator
npm install -g @lakeday/perchperch 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
perch check refund.py::refund --rules refund-onceRun the check after an edit and after the fix. Working-tree check documentation
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.
Published by Perch. Vendor facts were reviewed on 2026-10-14; plans and allowances can change. Vendor marks belong to their owners.
Best AI code review tools for 2027 · 2027 cost model and comparison workbooks