rhscope.cli

Command-line interface.

Entry points:

rhscope train-probe Train a probe on a labeled JSONL dataset. rhscope eval Evaluate a probe (or baseline) on a benchmark. rhscope run-recipe Execute a GRPO recipe YAML end-to-end. rhscope env-eval Measure hacking rate of a base model on an env. rhscope curate Curate HackExample subsets from an RH-Detect JSONL. rhscope info Inspect a probe’s metadata without loading weights. rhscope train-grid Train a Cartesian grid of probes. rhscope benchmark-grid Benchmark a set of probes on RH-Detect. rhscope model-card Print or save a Hugging Face model card.

Use rhscope --help to see the top-level summary.

rhscope.cli.main(argv=None)[source]

CLI entry point. Returns an exit code.

Parameters:

argv (Sequence[str] | None) – Argument list excluding the program name. Defaults to sys.argv[1:].

Return type:

int