zabibu canary

man zabibucanary hook

Git hooks & CI

The gate is the product. Once installed, risky changes cannot leave your machine unsigned — and the same engine annotates your PRs in CI.

The pre-push gate

cd your-repo
zabibucanary hook install

Writes .git/hooks/pre-push. From then on, every git push reviews the outgoing commit range first. If it finds critical issues, the push stops and tells you exactly what to do.

How an approval unblocks a push

Each review is identified by a hash of the exact diff. Approving in the TUI records an Ed25519-signed receipt in ~/.zabibucanary/ledger.jsonl. The hook reviews the same diff again, recognizes the receipt, and lets the push through. The gate is therefore: sign it once, and it ships.

$ git push
zabibu canary: push blocked. Run 'zabibucanary review' and approve, or set CANARY_ACK=1 to override.

$ zabibucanary review
... [a] approve & sign receipt
✓ approval receipt signed and recorded

$ git push     # now passes

Emergency override

CANARY_ACK=1 git push

One-shot bypass. The report still prints, so nothing hides.

Watched mode for long sessions

zabibucanary review --watch

Re-runs the review as you save. Useful while an agent is churning through a task — you see the risk profile move in real time.

GitHub Actions

# .github/workflows/canary.yml
name: canary
on: [pull_request]
jobs:
  review:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with: { fetch-depth: 0 }
      - uses: actions/setup-node@v4
        with: { node-version: 22 }
      - run: npm install -g tsx   # or your own installer
      - run: npx tsx cli/src/index.tsx review --range origin/${{ github.base_ref }}...HEAD --format github

Findings appear as inline annotations on the PR. Non-zero exit on critical findings fails the check — a real merge gate.

Any other CI

zabibucanary review --range $BASE...HEAD --format json > canary.json

Pipe the JSON into whatever dashboard or budget gate you already run.

zabibu canary — a Zabibu Technika product · built by Tehillah Kachila