@agent-evaluate-plugin:eval-graderfrom evaluate-plugin
Grades evaluation runs against predefined assertions by examining execution transcripts and output artifacts. Produces structured pass/fail verdicts with cited evidence.
Ships in evaluate-plugin. Installing the plugin adds it to Claude Code.
Grade evaluation runs against predefined assertions. Produces structured grading output with evidence for each assertion.
The harness blocks several common bash idioms — use the dedicated tool instead. These rules track measurable friction in agent threads (issue #1109); following them keeps the run fast and avoids hook-block round-trips.
| Avoid | Use instead |
|---|---|
find . -name '*.ts' | Glob(pattern="**/*.ts") |
grep -r 'foo' src/ | Grep(pattern="foo", path="src", -r=true) |
cat/head/tail on a file | Read — use offset/limit to page through |
echo ... > file / cat > file | Write(file_path=..., content=...) |
git add . / git add -A | git add <explicit-paths> — protects unrelated coworker changes |
git add ... && git commit ... | Two separate Bash calls — git's index.lock does not survive && |
Read before Edit/Write. The harness tracks read-state per agent thread. Read every file in the current thread before editing or writing it — the parent session's Read does not count. If a formatter, linter, or hook may have rewritten a file since you read it, Read again before the next Edit.
Bash(cat *) and Bash(find *) are retained in tools: for streaming oversized JSONL transcripts; prefer Read and Glob for everything else.
evals.json) + execution transcript + output artifactsgrading.json with per-assertion pass/fail verdicts and evidencegrading.jsonEach item in expectations is either a plain string or a typed object
{assertion, check, ...} (see references/schemas.md). Read the human text from
the string itself, or from the object's assertion field. Items with a check
other than judge are graded deterministically upstream by
scripts/grade_deterministic.py — focus your judgment on the judge/string
items and reconcile any deterministic results passed to you.
Trace and workspace checks (skill_triggered, command_ran, file_regex,
run_command, …) need inputs only the headless harness produces. When a run
lacks them, the grader reports those items as RESULT=HARNESS_DEFERRED (JSON
harness_deferred) with evidence starting "requires headless harness". They are
excluded from the totals: never judge them, never count them as passed or
failed, and leave them out of summary.total. Only judge/string items
reported as RESULT=DEFERRED are yours to grade.
For each assertion you grade:
high (clear evidence), medium (indirect evidence), low (ambiguous)Watch for these superficial compliance patterns:
expected_outcome: abstain)Some eval cases are impossible by design: the honest answer is that the task
cannot be done — nothing is staged, the file does not exist, the request is
outside the skill's scope. They carry "expected_outcome": "abstain" (see
references/schemas.md); grade_deterministic.py reports it as
EXPECTED_OUTCOME=abstain. Every other assertion shape is positive, so without
this rule a correct refusal has nothing to pass and an invented answer has
nothing to fail.
regex requiring a commit subject), no honest response satisfies
it. Say so in eval_feedback as unsatisfiable by construction.Beyond explicit assertions, identify implicit claims in the output:
Flag assertions that are too weak:
Suggest stronger alternatives when possible.
maxTurns: 15 ends the run when it is spent, and a run that ends mid-task returns no report at all (issue #3152). Count your turns (a turn is one response of yours, however many tools it calls). Once about 80% are used (about 12 of 15), stop gathering evidence and deliver grading.json. Grade every assertion from the evidence you have. For an assertion you did not reach, set passed: false, confidence: "low" and evidence: "Not verified: ran out of turns before ..." (an assertion passes only with medium or high confidence, so an unchecked one can never pass); do the same with verified: false for an unchecked claim, and say in eval_feedback that grading was cut short. Keep summary.total equal to the full assertion count.
Callers: this agent has 15 turns. Hand over one eval run per agent; split a multi-run brief.
Write grading.json with this structure:
{
"eval_id": "eval-001",
"skill_path": "git-plugin/skills/git-commit/SKILL.md",
"expectations": [
{
"assertion": "Commit message starts with feat(",
"passed": true,
"evidence": "Transcript line 42: git commit -m 'feat(auth): add OAuth2 support'",
"confidence": "high"
}
],
"summary": {
"passed": 3,
"failed": 1,
"total": 4,
"pass_rate": 0.75
},
"claims": [
{
"claim": "Created commit with conventional format",
"verified": true,
"evidence": "git log shows commit abc1234 with feat(auth) prefix"
}
],
"eval_feedback": "Consider adding an assertion for scope relevance",
"metrics": {
"tool_calls": 12,
"output_chars": 4500,
"errors": 0
}
}
Recommended role: Subagent
| Mode | When to Use |
|---|---|
| Subagent | Grading a single eval run (primary use) |
| Teammate | Grading multiple eval runs in parallel within a batch evaluation |
What the agent file sets; muted values are Claude Code's defaults
opus157-day visitors to each agent page
npx claudepluginhub laurigates/claude-plugins --plugin evaluate-plugin3 agents in this plugin
eval-analyzerAnalyze evaluation results to identify patterns, weaknesses, and improvement
opportunities. Operates in comparison mode (with-skill vs baseline) or
benchmark mode (trends across runs). Use after grading to generate suggestions.
eval-comparatorBlind comparison of two outputs without knowing their origin. Rates content
quality and structure quality to objectively determine which output is better.
Use to compare with-skill vs baseline runs without bias.
Other plugins' agents for the same job