Shell Safety Classifier Inference

Loads a trained shell safety model and classifies shell scripts into 5 safety categories.

Prerequisites

Train the model first (see Shell Safety Training):

cargo run --example shell_safety_training -- /tmp/corpus.jsonl

Run

cargo run --example shell_safety_inference -- /tmp/shell-safety-model/

Source

// Run this example:
//   cargo run --example shell_safety_inference
//
// See the CLI reference and source code in crates/ for implementation details.