CLI reference
kusaw bench
Capture a run and replay it as a benchmark
kusaw bench
Capture a run and replay it as a benchmark
Usage
kusaw bench [flags]Flags
| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for bench |
Subcommands
kusaw bench add
Capture a finished run as a benchmark task
kusaw bench add <run> [flags]| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--check | stringArray | Held-out check as = (repeatable) | ||
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for add |
--name | string | Benchmark name (default: the run id) | ||
--origin | string | unknown | Task origin: fresh, private, public, or unknown |
Example:
kusaw bench add demo --name demo-bench --origin freshkusaw bench add-review
Store a planted-bug review benchmark
kusaw bench add-review <name> [flags]| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--base | string | Base commit or ref the patch applies to | ||
--bugs | string | bugs.yaml with planted bugs | ||
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for add-review |
--origin | string | fresh | Task origin: fresh, private, public, or unknown | |
--patch | string | Unified diff of the change under review | ||
--repo | string | Repo label from kusaw.yaml |
Example:
kusaw bench add-review demo --repo demo --base HEAD --patch change.patch --bugs bugs.yaml --origin freshkusaw bench cancel
Stop a benchmark batch
kusaw bench cancel <batch> [flags]| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for cancel |
Example:
kusaw bench cancel demo-batchkusaw bench init-recipes
Copy the routing and reviewer-model overlays into the variants directory
kusaw bench init-recipes [flags]| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for init-recipes |
Example:
kusaw bench init-recipeskusaw bench label-finding
Mark a review finding as real or noise
kusaw bench label-finding <batch> <try> <finding-no> real|noise [flags]| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for label-finding |
--note | string | Optional note stored with the label |
Example:
kusaw bench label-finding demo-batch 1 1 realkusaw bench list
List benchmark tasks
kusaw bench list [flags]| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for list |
Example:
kusaw bench listkusaw bench report
Print a benchmark comparison table
kusaw bench report [batch] [flags]| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for report |
--json | bool | false | Print JSON | |
--k | int | 3 | k for pass@k and pass^k | |
--markdown | bool | false | Also write docs/benchmarks/-.md | |
--tasks | string | Comma-separated benchmark task names | ||
--variants | string | Comma-separated variant names |
Example:
kusaw bench report demo-batchkusaw bench run
Queue baseline and variant replays
kusaw bench run <name> [flags]| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--budget | float64 | 10 | Batch budget in USD | |
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for run |
--repeat | int | 3 | Replays of each variant, from 1 to 20 | |
--variants | string | Comma-separated variant names, after baseline |
Example:
kusaw bench run demo-benchkusaw bench run-review
Replay a review step against planted bugs
kusaw bench run-review <name> [flags]| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--budget | float64 | 5 | Batch budget in USD | |
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--count-info | bool | false | Count severity info findings as claimed bugs | |
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for run-review |
--match | string | Custom matcher command (replaces the location matcher) | ||
--repeat | int | 3 | Replays of each variant, from 1 to 20 | |
--step | string | Review step id to replay | ||
--variants | string | Comma-separated variant names, after baseline |
Example:
kusaw bench run-review demo --step review-standards --repeat 3 --budget 5.00kusaw bench set-origin
Set a benchmark task's origin
kusaw bench set-origin <name> <origin> [flags]| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for set-origin |
Example:
kusaw bench set-origin demo-bench freshkusaw bench show
Show one benchmark task and its batches
kusaw bench show <name> [flags]| Name | Short | Type | Default | Description |
|---|---|---|---|---|
--config | string | Path to kusaw.yaml (overrides KUSAW_CONFIG and parent search) | ||
--factory | string | factory name from kusaw list | ||
--help | -h | bool | false | help for show |
Example:
kusaw bench show demo-benchExit codes
| Code | Name | Description |
|---|---|---|
| 0 | ok | Success. |
| 1 | error | Runtime error. |
| 2 | usage | Usage or validation error. |
| 3 | rejected | Control request rejected; the error string is printed verbatim. |
| 4 | not picked up | Control request not picked up within the wait time while serve runs. |
Example
kusaw bench list