man zabibucanary
Command reference
zabibucanary review
Analyzes changes and shows the report in your terminal.
| Flag | Default | What it does |
|---|---|---|
--staged | auto | Review only staged changes. Without flags: staged if any, else the working tree. |
--working | — | Review only the working tree. |
--range <a>..<b> | — | Review an explicit git range. This is what the push hook uses. |
--watch, -w | — | Re-review automatically as files change (600 ms debounce). |
--format <fmt> | text | text · json · github (GitHub Actions annotations). |
In the interactive view: a approves and signs a receipt, q quits.
zabibucanary demo
Runs the bundled example — a realistic risky diff from an AI coding session. The fastest way to see what a report looks like.
zabibucanary hook
| Subcommand | What it does |
|---|---|
hook install | Writes a pre-push gate into this repo's .git/hooks. |
hook remove | Removes it again. |
Exit codes
| Code | Meaning |
|---|---|
| 0 | Clean, or every critical finding has a signed approval. |
| 1 | Critical findings without a signed approval — hooks and CI should treat this as a stop. |
Machine output
zabibucanary review --format json > report.json
JSON contains the risk score, grade, per-sector impact levels, and every finding with its category, severity, and explanation — everything the UI renders.
zabibucanary review --format github
Prints GitHub Actions annotations (::error / ::warning) that show up inline on the PR's Files tab.
zabibucanary ledger
zabibucanary ledger # records, chain status, key fingerprint zabibucanary ledger export > proof.json # a self-contained, verifiable bundle zabibucanary ledger verify proof.json # check a bundle using only the file
An export carries the records, the public key and the chain tip, so somebody else can verify it without your machine, your repo, or any trust in this tool. See how it works for the one thing a bundle cannot prove on its own.
Environment
| Variable | Purpose |
|---|---|
ZABIBU_SIGNING_KEY | A PKCS#8 Ed25519 private key (PEM; literal \n accepted). Signs receipts instead of the key auto-created at ~/.zabibucanary/approver.key. |
CANARY_ACK=1 | Override the gate once, for a push you have reviewed yourself. |