Command

okulo check

Quality gate for a PR, staged changes, or the working tree — fail when hot code gets worse.

cigate

When to use it

Before merge, in CI, or as a pre-commit hook via okulo hook.

Usage

okulo check [repo] [options]

Options

OptionDefaultDescription
(default mode)PRCompare --head to merge-base with --base
--stagedoffCompare index to HEAD
--workingoffCompare working tree to HEAD (tracked files)
--basemain/master…Base branch for PR mode
--headHEADSide under test in PR mode
--fail-oncriticalcritical, warning, or none
-f, --formattableUse markdown for PR comments

Examples

Current branch vs main

okulo check
okulo check --base main
okulo check --base develop

PR comment artifact

okulo check --base origin/main -f markdown -o okulo-pr.md

Before you commit

okulo check --staged --fail-on warning

Gate only one area

okulo check --base main --components backend --fail-on critical

Sample output

Illustrative terminal output (column layout matches the real CLI):

Change check  feature/pay-tax vs merge-base origin/main
file                      hotspot  health before  after     Δ  cognitive
────────────────────────  ───────  ─────────────  ─────  ────  ─────────
src/billing/invoice.py          ●            3.4    2.9  -0.5  198 → 220
web/checkout/Cart.tsx           ●            4.9    5.1  +0.2  140 → 138
server/orders/api.go            -            6.4    6.4  +0.0   88 → 90

Findings
  critical  health-decline     src/billing/invoice.py  hotspot health fell 3.4 → 2.9
  warning   missing-co-change  web/checkout/Cart.tsx   usually changes with invoice.py

FAIL  1 critical · 1 warning · 0 info  (fails on: critical)

How to read it

Tips

Related