Skip to main content
Install loopguard-runtime to use the trace commands. The installed console scripts are loopguard-ingest and loopguard-check; there is no loopguard check subcommand. Module commands below are equivalent and also work from a checkout.

Ingest

Inspect one JSON file containing one or more runs:
Successful analysis exits 0, regardless of findings. Invalid arguments use argparse’s error behavior; file and parse errors can surface as Python exceptions. Use check mode when findings must fail a script.

Check

Analyze one or more JSON files and apply failure rules and budgets:
Repeat --fail-on to select multiple rules. Any provided --fail-on flags replace the configured/default rule set. Limits must be integers of at least 1.
Limits are per run, not totals across files. A budget violation fails even when no selected status matches. Trace processing uses the offline default detectors; there are no CLI flags for embedding providers or individual detector thresholds.

Evaluation harness

From a checkout with python-dotenv installed:
This module has no command-line options or installed console script. It prints the exact-detector fixture score and illustrative convergence scores. If OPENAI_API_KEY is set, it also runs provider-backed comparisons and an OpenAI judge example. See evaluation and tests before running it in an environment with credentials.

Repository demo

From a checkout with the demo dependencies installed:
main.py is a demo script with a positional scenario name, not an installed CLI. See all eight scenarios and local setup.