Skip to content

test: add Claude skill evals that compare two plugin builds - #53

Draft
steve-calvert-glean wants to merge 2 commits into
mainfrom
test/skill-evals
Draft

steve-calvert-glean wants to merge 2 commits into
mainfrom
test/skill-evals

Conversation

@steve-calvert-glean

@steve-calvert-glean steve-calvert-glean commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Problem

We change the plugin's skills without a way to measure what the change does to the model's behavior. A skill that reads well can still send the user to a tool that the server does not have.

What this adds

evals/ holds a repeatable eval that compares two builds of the Claude plugin on the same cases:

  • baseline: the published plugin, pinned to the v3.6.2 sync commit of gleanwork/claude-plugins.
  • candidate: any built Claude output you give setup.mjs.

Both run in Claude Code with the glean plugin installed from a marketplace. MCP Server Tester runs the host headless, records each skill load and tool call, and grades each trial.

A stub Glean server with made-up data stands in for Glean, so a run needs no sign-in. Six server shapes cover the tool lists the plugin can meet: the local relay, the relay before setup, a direct Glean server, the plugin's own endpoint with no relay, a server without skill discovery, and no Glean server. For the relay shapes, the baseline's real relay runs in front of the stub.

evals/README.md has the method, the commands and the limits. No shipped file changes.

First results

evals/results/ holds the summaries of two runs. The candidate is a work-in-progress build that removes the local relay from the Claude package and connects Claude Code to the Glean server directly. That build is not in this pull request and is not published. It is #54.

Run of 2026-11-24: 24 cases, 5 trials each, Claude Code 2.1.319, claude-sonnet-5-5.

Shape Baseline trials passed Candidate trials passed Baseline names setup Candidate names setup
relay 34/35 35/35 n/a n/a
relay-first-run 10/10 10/10 n/a n/a
direct 35/35 35/35 8/35 0/35
no-discovery 5/10 10/10 10/10 0/10
no-glean 5/30 30/30 28/30 0/30

"Names setup" counts the answers that send the user to the relay's setup tool on a server that has no such tool.

  • With the relay, the two builds do the same work.
  • On a direct server, both finish every task. The baseline's glean_run names the missing setup tool in 8 of its 15 answers.
  • With tools missing, only the candidate tells the user who can fix it or where to connect Glean.

Run of 2026-11-25, proxy shape only, against the #54 build: 7 cases, 5 trials each, same host and model. Both builds passed 35 of 35, and no trial called set_tool_approval. Every case is a read; the shape has no write case yet. This run has no summary in evals/results/.

The run of 2026-11-23 found a gap in the candidate: three skills other than glean_run still told the user to say "Set up Glean for me". The candidate now changes them, and the second run adds cases for them.

Limits

  • The server is a stub. It does not show what a real deployment returns or how sign-in behaves.
  • There is one model and 5 trials for each case. Two baseline cases that passed 5 of 5 in the first run pass 4 of 5 in the second, and the baseline did not change.
  • Approval prompts are off, and the cases call read-only tools.
  • Transcripts are not committed. Only counts, costs and times are.

Test plan

  • node evals/claude/setup.mjs --candidate <dir> installs both builds and writes five eval configs.
  • mst run --dry-run passes for all five configs.
  • Full run: 240 trials, no infrastructure errors.
  • summarize.mjs output matches an independent recount of results.json.

The evals run Claude Code with the glean plugin installed and compare a
baseline build with a candidate build on the same cases. MCP Server
Tester runs the host, records skill loads and tool calls, and grades
each trial.

A stub Glean server with made-up data stands in for Glean, so a run
needs no sign-in. Five server shapes cover the relay, the relay before
setup, a direct server, a server without skill discovery, and no Glean
server.

results/ holds the summaries of two runs against a work-in-progress
build that removes the local relay from the Claude package.
The proxy shape stands for Claude Code connected to the plugin's own endpoint
with no local server in between. The model sees find_skills_and_tools,
run_tool, get_tool_approval, set_tool_approval, search and read_document, so a
run shows whether the skills still work there and whether the model calls
set_tool_approval, the tool that saves Always Allow.

It runs the discovery and regression cases. Every case is a read; there is no
write case yet.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant