/relai:coding-evalsfrom RELAI
Builds and runs evals for coding agents using tasks from real sessions, pull requests, or git history. Measures baseline performance and compares models, versions, or setups.
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.
Read relai/README.md, or the bundled contract when absent; use the
start skill to set up relai/ when it is missing. The methods below are
starting points: adapt their order, tools and effort to the request. The rules say which guarantees
bind.
Here the agent under test is the coding agent the team uses, which Harbor installs at the model,
version and setup the team uses. Often there is one such agent, and the first question is how it
does on the team's work; that run is the baseline. A later question may be whether a change helps:
a new model or version, an edit to its instruction files, a skill or hook. Comparing changes or
other agents is optional; never assume it. The eval project holds relai/: the source
repository or a separate one, which the user chooses after you lay out the pros and cons and
recommend one (scope, The repository). Task source can come from this or
other scoped repositories, and reaches each task's workspace only up to its starting commit.
Goal: tasks from the team's real work that any coding agent can run, that a correct fix passes and the untouched code fails, and that nothing in the workspace answers; and honest observations of how each version of the agent or setup does on them.
Apply the shared purpose guidance before selecting tasks or designing measurements. Baseline versus comparison and model/setup choices are separate from the decision the user wants supported, desired coverage/difficulty and outcome priorities. Reuse existing answers and clarify only consequential gaps.
Do what was asked. A request to build tasks ends with healthy, frozen tasks and an offer to run them; trials call a model and spend budget, so run them only when the user asks to measure or compare, or an agreement covers it.
To improve a team's setup against these tasks, use the improve skill with the setup files as its scope (comparing).
At each checkpoint and when a long step starts, show the stages the request covers, mark the current one, and say what comes next and when the user is needed; progress updates in between name only the current stage:
In new text the user reads (messages, STATUS.md, task READMEs, review handoffs), use these
plain names and say once what each means; code, configuration keys and command names keep the
technical terms. Do not rewrite existing records only to change their terms: a frozen task's
README is part of the runner's task checksum, so later comparisons would report a changed test.
| Say | Technical term | What it means |
|---|---|---|
| main check | primary check ([metadata.relai.coding].primary, usually fixes-the-bug) | the task's hidden tests pass; it alone decides whether an attempt solved the task |
| real-fix check | oracle run | the reference fix scores full marks on every outcome check |
| do-nothing check | nop run | the untouched code fails the main check |
| alternative-fix check | evaluator validity | a different correct fix also passes |
| validation | health (oracle and nop runs) and evaluator validity | the three checks above pass, with no model |
| independent review | independent review | a reviewer that did not build the task checks it |
| freeze | freeze.py | later changes need a recorded reason and a fresh review |
relai.toml records [coding_evals]
(relai/docs/files.md; its agent's model, version and authentication are completed before
the first paid run) and [harbor].version; the shared safe-process, honest-report
and code-review evaluators exist under relai/evaluators/, with approved repository
requirements routed by evidence: process requirements in trajectory judges, output requirements
in code checks or code-review (checks);
when calibration applies, the diff judges' agreement with
maintainers' verdicts is recorded, or that the user declined it or the history was too thin;
the answers are in decisions.md.decisions.md),
approved the task list below.relai/tests/<id>/ in the agent-neutral format, with a README.md stating
source, behavior, evaluators, known failures and contamination; check_task.py passes.freeze.py ran.[scoring].pass_mark is set, with scored/attempted counts
and spread, the tasks that separate versions when several ran, and for the biggest failure
patterns the moment the agent went wrong, quoted from its trajectory where one was recorded;
STATUS.md was updated.tests/ and solution/. A task whose fix can be found online runs without network by default;
others run open, as in real use (task-format, The network and
web tools). The instruction holds the developer's words, or a symptom written from the source
when they left none, and no diagnosis, file name or fix they did not give. Dependencies install
at the versions the start commit pins.tests/. Start from the plugin's
verifier (test.sh and coding_checks.py); adapt it only when its extension
points cannot meet the need, keeping its guarantees and rerunning its tests
(checks, Adapting the verifier). An agent's change that makes a
command hang or unable to run scores 0; task defects follow the controlled repair process,
not attribution to the agent. Read the trajectories of surprising passes.CLAUDE.md that imports AGENTS.md) makes a setup to compare, not the
baseline; report guidance the agent does not read as an observation. User-level skills are
also a setup to compare, unless the team confirms it uses them in daily work on this
repository; then that setup is the baseline, recorded in decisions.md.relai/README.md, Terms).Carry forward scope, budget and approvals from the request, relai/decisions.md, the wiki or an
agreement. Combine unresolved scope and task selection in one checkpoint when the evidence is
ready; ask about check previews once validation and the independent review are done, unless
already covered or delegated.
Approval of a task list alone does not approve unseen scoring. When nothing says how
involved the user wants to be, offer at the first checkpoint to delegate task-list and check
approval to a fresh independent review, reporting the results afterwards
(delegated approvals); record the choice in
decisions.md. Present discovered facts first
(scope); ask only about uncovered choices or material changes. The run
plan (scope, Ask the run plan) changes the runs, not the tasks: when
paid runs are planned, ask it at the task-list checkpoint, and the full-run budget after the
pilot unless an approved budget covers the pilot's estimate; keep building meanwhile. After the first run, show the
real-trial judge checks. Name the credentials needed as instructions (export them, use the team's secrets tool, or add them
to relai/.env) and continue work
that does not need them.
At review checkpoints, use the shared reviewable handoff for a guided batch or suitable app view of tasks and scoring. Surface consequential open questions even when the chosen task subset can proceed, explaining excluded coverage and possible follow-up; record resolution or explicit deferral in the existing items.
Long steps (image builds, health runs, trials) follow Counts come from records and Cost before spend in working with the user.
Beyond those points, ask only when it blocks the work: when a session has no clear outcome (as
feedback in relai/feedback.md), when an instruction cannot be written without giving the fix
away (whether to drop the task), and before a task leaves the eval project's repository or is built from a
repository outside the scope.
Use each task's README.md as its evolving design and validation record; reuse an existing
equivalent record rather than create separate task-design and check-preview documents. Keep it
in two sections: Evidence (provenance, request origin, commands, raw validation output, links
to health runs) and Author notes (intended checks, reasoning, validity risks), which the
independent reviewer skips so its review is not anchored on yours. Link to
commands, tests, rubrics, run artifacts and independent review instead of copying them. Record
approvals and their scope in decisions.md with links to the record. Keep subsequent run notes
outside frozen task contents.
Before building, record the source, developer's request, kind and area, start/fix commits and fix date, contamination and network setting, intended checks and their source-backed lesson, and validity risks, including what the fix's tests pin (sources, Read the fix's tests). Show a compact task table (source, request, what failing looks like) and the estimated disk use, with real failures and corrections first. State that building and health checks call no model, and estimate trial cost or plan usage and time, with tasks × versions × attempts, as information. Unless already authorized, obtain task selection approval before building; paid runs follow the run plan (Ask the user).
Before freezing, add the validation evidence, each
hidden test's assertion, protected/restored/scope globs and judge rubrics to that same record,
using links where the artifacts already say it. When several tasks share a builder (one
repository, one generator), build, validate and review one of them first and fix what its
review finds in the builder before building the rest: most findings concern the shared setup,
and each one found late lands on every task and repeats its validation. Start the fresh independent
review once a task passes check_task.py; it can run
alongside the health and validity checks, marking the controls pending until their results
exist, and the reviewer or a scoped follow-up review closes that check on the final task once
they do. Resolve each finding (fix it, or record why not). Every change after the review, not
only blocking fixes, is confirmed by the reviewer or a fresh review scoped to that change, which
also says which checks to rerun. Record the reviewed revision in the task record and freeze only
that revision, so the user approves a reviewed task once. Then preview every judge's
rubric summary and its calibration agreement when recorded, the review's verdict and what changed
after it, and any unexpected control score; summarize expected scores per task. Following the
shared decision-effort rule, ask about
scoring and coverage choices still needing approval, in manageable subsets. If sign-off changes
a task, review the change before freezing. Freeze only the approved, validated subset. A delegated
reviewer can cover preview approval and independent review in one pass when both are delegated;
unresolved tasks stay pending.
With that run's judge checks, ask for [scoring].pass_mark if it is unset, as the eval skill's
measure describes (The pass mark); until then report solved
rates and means without pass or fail. Merge-ready and Trustworthy are defined in
comparing; offer per-check marks only for another yes or no count the user wants.
references/calibration.md (opens in a new tab)references/checks.md (opens in a new tab)references/comparing.md (opens in a new tab)references/review-coding-task.md (opens in a new tab)references/scope.md (opens in a new tab)references/sources.md (opens in a new tab)references/task-format.md (opens in a new tab)verifier/coding_checks.py (opens in a new tab)verifier/test.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/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./evalBuild and run evaluations for an AI agent or LLM application, including harnesses, tests from requirements, risks or failed runs, benchmarks, shared evaluators and judges. Also design scenarios, analyze coverage, repair tests, mock dependencies, or build agent-neutral tests of non-coding work such as assistants using mail or calendars. Measures the agent without changing it. Not for tasks that score a coding agent's code changes in a repository./npx claudepluginhub relai-ai/agent-eval-loop --plugin relaiOther plugins' skills for the same job