karenina preset¶
Manage verification presets: list available presets, show preset details, and delete presets.
The preset command group provides three subcommands for managing verification configuration presets. Presets are JSON files stored in the presets directory that capture a complete VerificationConfig.
Subcommands¶
| Subcommand | Description |
|---|---|
| list | List all available presets |
| show | Show preset details |
| delete | Delete a preset |
Preset Directory Resolution¶
Preset commands look for preset files in this order:
KARENINA_PRESETS_DIRenvironment variable (if set)./presets/relative to the current working directory
The show and delete subcommands accept either a preset name (looked up in the presets directory) or a direct file path. When a name is given, the command appends .json and searches the presets directory.
preset list¶
List all .json files in the presets directory, showing names and last-modified dates.
Options¶
| Option | Description |
|---|---|
--help |
Show this message and exit |
Output¶
Displays a Rich-formatted table with two columns:
| Column | Description |
|---|---|
| Name | Preset filename without .json extension |
| Modified | Last-modified date (YYYY-MM-DD) |
A total count is shown below the table. If no presets are found, a message explains where presets are expected and how to override the directory with KARENINA_PRESETS_DIR.
Example¶
Available Presets
┏━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Name ┃ Modified ┃
┡━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ default │ 2026-01-15 │
│ claude-haiku-quick │ 2026-01-20 │
│ multi-model │ 2026-02-01 │
└─────────────────┴────────────┘
Total: 3 preset(s)
preset show¶
Display the full configuration of a preset, including a JSON dump of all settings and a summary of key parameters.
Arguments¶
| Argument | Type | Required | Description |
|---|---|---|---|
NAME_OR_PATH |
TEXT |
Yes | Preset name (e.g., default) or direct file path (e.g., ./presets/default.json) |
Options¶
| Option | Description |
|---|---|
--help |
Show this message and exit |
Output¶
The command displays four sections:
- Header — Preset name (from filename stem)
- Path — Resolved absolute path to the preset file
- Configuration — Full
VerificationConfigas syntax-highlighted JSON (excludingnullfields) - Summary — Key configuration values:
| Field | Description |
|---|---|
| Answering models | Number of answering model configurations |
| Parsing models | Number of parsing model configurations |
| Replicates | Replicate count |
| Rubric enabled | Whether rubric evaluation is on |
| Abstention enabled | Whether abstention detection is on |
| Sufficiency enabled | Whether sufficiency checking is on |
| Embedding check enabled | Whether embedding similarity check is on |
| Deep judgment enabled | Whether deep judgment is on |
Name Resolution¶
The NAME_OR_PATH argument is resolved in this order:
- If it's an existing file path, use it directly
- Otherwise, look for
{NAME_OR_PATH}.json(or exact name if it already ends in.json) in the presets directory
Examples¶
# By name (looks up presets/default.json)
karenina preset show default
# By explicit path
karenina preset show ./presets/default.json
Error Cases¶
| Scenario | Message |
|---|---|
| Name not found | Preset 'foo' not found in presets/. Use 'karenina preset list' to see available presets. |
| Presets dir missing | Presets directory not found: presets/ |
| Invalid preset JSON | loading preset: ... |
preset delete¶
Delete a preset file after confirmation.
Arguments¶
| Argument | Type | Required | Description |
|---|---|---|---|
NAME_OR_PATH |
TEXT |
Yes | Preset name or direct file path |
Options¶
| Option | Description |
|---|---|
--help |
Show this message and exit |
Behavior¶
- Resolves the preset file (same resolution as
show) - Displays the file path and asks for confirmation:
Are you sure? [y/N] - If confirmed, deletes the file and prints a success message
- If declined, prints
Deletion cancelled.
Examples¶
# Delete by name
karenina preset delete old-config
# Delete by path
karenina preset delete ./presets/old-config.json
Error Cases¶
Same resolution errors as preset show — name not found or presets directory missing.
Exit Codes¶
| Code | Meaning |
|---|---|
0 |
Command completed successfully |
1 |
Error — preset not found, directory missing, or invalid preset file |
Environment Variables¶
| Variable | Default | Description |
|---|---|---|
KARENINA_PRESETS_DIR |
./presets/ |
Directory where preset files are stored and discovered |
Related¶
- Using Presets — Guide to loading and overriding presets in verification workflows
- Configuration Hierarchy — How presets fit in the CLI > Preset > Env > Defaults chain
- Preset Schema Reference — Full preset file format documentation
- verify — The
--presetoption for loading presets during verification - CLI Reference — Overview of all CLI commands