/relai:evalfrom RELAI
Builds and runs evaluations for AI agents and LLM applications, including harnesses, benchmarks, scenario design, coverage analysis, and test repair. Measures agent behavior without modifying it.
Ships in RELAI. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Inspect existing tests, runners and results first. Read the relevant terms and guarantees in
relai/README.md, or the bundled contract when absent.
Use the start skill
when RELAI's managed artifacts are needed, not to replace working evaluation infrastructure.
Choose the work needed for the request under the shared scope guidance.
The methods below are starting points, not a required full journey.
For unsuitable or failing supplied code, use the shared
adaptation guidance.
When building or running evals, the goal is that each important behavior has a test that fails when the agent lacks it and passes when it has it, runs the real agent under relevant operating conditions, and was reviewed and frozen before its first run; and the user has honest numbers on how the agent does on those tests.
Across Build and Run, maintain knowledge for future usefulness under the shared policy, respecting read-only work. Useful discoveries can update existing records without reproducing a wiki or board checklist.
Apply the shared purpose guidance before selecting scenarios or designing measurements, for both agent-specific and agent-neutral work. Comparison setup alone does not establish the user's intended decision or outcome priorities.
Apply the methods relevant to the requested outcome, including analysis and scenario design. Build and Run describe implementation and execution work; their setup, approvals and completion criteria apply when that work is requested. Designing or recommending tests does not itself authorize building or running them.
improve skill.The outcomes below apply to the selected tests. The listed paths and commands are the RELAI-managed implementation; a working project suite can meet the same guarantees through its own task definitions, grading checks, reviewed test version, run records and reporting. Record the guarantees they provide: faithful execution, graders checked against meaningful pass/fail examples, a recoverable reviewed test version before real trials, and traceable results. RELAI filenames are not required.
decisions.md), approved the scenario table below.relai/tests/<id>/ (or a benchmark row) meeting
relai/docs/files.md, with a README.md stating behavior, scenario, risk probed and each
evaluator; check_task.py passes, plus --verifier for Harbor or synthetic
passing/failing/empty grading checks for a native runner; with API judges, every judge is shown
able to fail (relai/bin/judge.py --self-test, or a synthetic violating trajectory for a
prohibition judge).freeze.py ran before its
first real trial; one real trial per test scored every evaluator without an error.[scoring].pass_mark is unset, the pass mark (measure), recorded each probe on
its risk page when useful, and updated relevant knowledge or state for future work.tests/params.json, not in evaluator code (test-design).relai/README.md, Terms).
Recommend one only when comparable cases and task distribution make it meaningful, not from the
count alone: many unique, issue-specific tests are not a useful random split.Use the start, scenario approval and grader preview as the usual build checkpoints (or combine
approvals when the user chose one sitting below). Consequential blockers follow the
shared question timing; continue independent
work. Skip any
question that the request, relai/decisions.md, the wiki or an agreement already answers. At the
start, ask together only what is still open:
discover skill first (recommend this, more strongly when traces of
real runs exist), build from risks read in the code now (test-design,
Hard cases), or test one behavior the user names.decisions.md.Make the timing explicit: choosing personal review "before trials" does not by itself choose combined review after construction. Reuse covered authorization; otherwise retain scenario approval before building, or offer a combined preview where appropriate as above. Surface unresolved questions that affect omitted coverage or the intended use of the suite, with their tradeoffs, rather than treating a nonblocking assumption as a settled user preference.
Name any missing credential variable and the project's credential mechanism (or relai/.env)
as an instruction, not a question. Reuse existing setup and continue work that does not need it.
Unless the approval is delegated or the user chose one sitting, wait for a yes before building. Write each proposed
test's full design to relai/records/eval/<date>-scenarios.md (test-design,
Proposing a test, including each test's mechanism and shortcut).
Before the user sees the table, have a fresh reviewer check the scenarios file against review-scenarios. Apply its author fixes findings to the scenarios file. Carry its user decides findings into the approval question, each with the reviewer's recommended default. When the scenario approval is delegated, this review is the independent approval. In a one-sitting build, run it before building all the same: it needs only the scenarios file and the sources.
In chat, show one compact table, in the order you recommend building: the behavior, its source, the scenario in one line naming the real data and the trigger that makes it hard, what failing looks like, and its opposite-direction partner, if any. Below it, give the cost and time of one trial per test plus judging, in total; a yes approves that as this build's budget, and you ask again only before exceeding it. Ask which tests to build: all, only the first few, or change the list.
Freezing stops anyone tuning a test to the agent's results, so preview without running the agent:
score each test's evaluators on synthetic evidence (trajectories, artifacts, state or journals):
a passing case, a failure of the required behavior, an empty reply, and a shortcut, plus real
recorded traces that fit. The shortcut skips required behavior or a claimed risk trigger, as the
proposal names it: acting on the first match, reading a leaked answer, or ignoring an instruction.
It must fail the primary or affected risk check; otherwise repair the unsupported coverage claim
or scenario before freezing. A cheap correct solution remains valid. For a behavior with an
opposite-direction partner, also score the over-cautious strategy (always asks, never acts, refuses) on the test where acting is right. Write every test's full table (evaluator × case → score and the first line of
feedback) to relai/records/eval/<date>-grader-preview.md. Size chat previews by the shared
decision-effort rule, reviewing manageable
subsets when needed while keeping the complete artifact and pending decisions visible. For the
subset being approved, show every judge evaluator's rows and every score that differs from what
its case should get (a failing case not scored low,
a passing one below full marks, a missing required deliverable above the minimum; see
test-design, Missing deliverables and prohibitions). For a
pure prohibition, preview an actual violation to show that check can fail.
Validate code-output completeness as the test review brief describes.
Check relevant overlapping criteria and valid alternatives using
test-design.
For relevant changing dependencies, include the contrasts and evidence described in
validity across runs.
Summarize the rest per test in
one line, such as "4 code checks scored as expected". Ask whether the current subset needs scoring
changes or is missing anything the user cares about; separate independent choices as the shared
guidance describes. Iterate until the answer is no, then review and freeze. When this decision
is delegated, the fresh test review stands in for the user. Build/freeze only the subset whose required decisions
are resolved; do not treat partial review as approval of the remaining tests.
Use the shared reviewable handoff: offer a
guided first batch or a capable app view with sources, scenarios and scoring examples. A large
preview file or aggregate score table alone does not establish an informed review.
references/agent-neutral.md (opens in a new tab)references/benchmarks.md (opens in a new tab)references/harbor-notes.md (opens in a new tab)references/hardening.md (opens in a new tab)references/harness.md (opens in a new tab)references/measure.md (opens in a new tab)references/mocks.md (opens in a new tab)references/review-harness.md (opens in a new tab)references/review-scenarios.md (opens in a new tab)references/review-test.md (opens in a new tab)references/shared-evaluators.md (opens in a new tab)references/test-design.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
eval, llm-evaluation, agent-testing, benchmarking, test-harness
npx claudepluginhub relai-ai/agent-eval-loop --plugin relai7 skills in this plugin
/coding-evalsBuild and run evals for the coding agent a team uses, including one developed here. Tasks come from real sessions, pull requests or git history, and checks score the code change the agent makes in a repository. Measure its baseline, or compare models, versions, setups or other coding agents. Not for an application agent's conversations, tool use or business workflows./discoverIdentify requirements, risks and open questions for an AI agent or LLM application from its code, docs or traces. Use to triage traces and failed runs, find failure patterns, resolve open questions, review risks or maintain the project's wiki. Produces analysis and maintained knowledge, without writing tests, changing the agent or building a review interface. Excludes ordinary bugs outside an AI agent./improveChange an AI agent or LLM application and verify the change. Fix a failing behavior, raise performance against an agreed objective, compare prompts, models or settings, reduce cost or latency, or check a change for regressions. Covers one fix, comparison or bounded improvement effort. Excludes ordinary bugs outside an AI agent./loopContinuously improve an AI agent under one agreement, repeating intake of new traces, feedback and evaluation results, experiments and verified changes, with approvals agreed up front. Use for continuous, autonomous or multi-iteration improvement as new evidence arrives, not for one fix or one evaluation run. Excludes scheduled prompts and polling./startOrient users on RELAI's capabilities, the project's current eval status and next steps, or initialize RELAI records when a workflow needs them. Use for open-ended requests, such as what RELAI can do or how to begin evaluating an agent, when the user has not yet named a specific outcome./trace-reviewBuild or adapt a project-owned app for viewing agent traces and recording feedback linked to its source, such as a trace viewer, an annotation or labeling interface, or a review workspace for findings, open questions, scenarios or graders. Needs no eval setup. The deliverable is the app, not an analysis of the traces.Other plugins' skills for the same job