Integrations

Stream reports to another process

cleave --format jsonl ./samples > reports.jsonl

Use --min-file-crit suspicious when a consumer needs only files whose highest finding is suspicious or hostile. Use --min-crit to filter individual findings while retaining the selected file reports.

Gate on a release diff

cleave diff previous/ candidate/ --scope traits,symbols,strings

Treat the diff as review input rather than a universal pass/fail rule. New capabilities can be legitimate; the useful signal is the capability plus its evidence and release context.

Embed or serve cleave

For high-volume callers, use the Rust API or the long-running HTTP server instead of spawning a CLI for every file:

Pin the cleave version, traits revision, enabled components, and optional tool versions for reproducible pipelines. cleave version supplies the rule inventory to record with a result.

Do not expose the server directly to the internet. It parses hostile files and needs request, memory, file-size, concurrency, and network controls.