karenina-cli

Run karenina benchmark verifications from the terminal with presets, feature flags, and resumable runs.

13|3|Updated Jun 27, 2025
One-click install
npx skills add https://github.com/biocypher/karenina --skill karenina-cli-biocypher
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: karenina-cli
Source: https://github.com/biocypher/karenina/tree/main/skills/karenina-cli
Command: npx skills add https://github.com/biocypher/karenina --skill karenina-cli-biocypher

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires karenina.

What problem does it solve? Running LLM benchmark evaluations through Python scripts requires boilerplate code for model configuration, feature toggles, and result handling. This Skill lets you execute the full karenina verification pipeline directly from the command line, from a benchmark checkpoint file to exported results. ## Core Features & Use Cases - Preset-Based Verification: Bundle answering and parsing model configurations into reusable JSON presets and run karenina verify against any checkpoint file. - Progressive Save and Resume: Checkpoint long-running jobs after each completed task and resume interrupted runs at the triple level without re-running completed work. - Failure Repair and Model Comparison: Re-run only failed rows with karenina repair, and compare models by overriding preset flags across providers like Anthropic and OpenAI. - Use Case: You have a benchmark checkpoint with 500 questions and want to evaluate Claude Sonnet against GPT-4.1 with rubric scoring. Create one preset, run two karenina verify commands with different --answering-model flags, and export both result sets to JSON for comparison. ## Quick Start Ask the AI to run karenina verification on your checkpoint file using a preset with an Anthropic answering model and export the results to a JSON file.

Frequently Asked Questions about karenina-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a karenina verification from the command line?

Create a JSON preset defining answering and parsing models, then run karenina verify with your checkpoint file, the --preset flag, and an --output path. Results are written as JSON or CSV based on the file extension.

How do I resume an interrupted karenina verification run?

Start the run with --progressive-save, which writes sidecar state files after each completed task. If interrupted, run karenina verify --resume with the state file path; completed triples are skipped automatically.

Can I compare multiple LLMs with the same karenina preset?

Yes. CLI flags like --answering-model and --answering-provider override the preset's model, so one preset works across providers. Run verification once per model with different output files, then compare the exports.

Why are my rubrics not evaluated during karenina verification?

The --evaluation-mode flag defaults to template_only, so attached rubrics are ignored. Pass --evaluation-mode template_and_rubric or rubric_only explicitly to enable rubric evaluation.

How do I re-run only failed rows in karenina results?

Use karenina repair with the results file, benchmark checkpoint, and preset. Filter failures with --failure-group, --failure-stage, or specific question and model keys, and use --dry-run to preview the selection.