Lab 6: GitHub Copilot Evals
You’ve written, checked, run, fixed and judged evals by hand. Now Copilot helps. GitHub Copilot Evals, in preview, adds skills to Copilot that review, create, improve, run and compare evals in plain language. The files it writes are the same Vally YAML you know, so you can judge every draft it makes.
- changed
- seen before, different here
- You do
- Ask GitHub Copilot, in plain language, to review your eval, draft a new one from your criteria, and run it.
- Under test
- The release-notes skill, through evals that Copilot drafts and you review
- Checked by
- Checks that Copilot proposes and you accept, change or reject
- Task changed Drafted by Copilot from your criteria
- Agent GitHub Copilot, as before
- Environment The skill and
backlog.json - Trials changed 3, as your draft says; 1 on the bounded runner
- Checks changed Drafted by Copilot, reviewed by you
- LLM judge Not used here
- Results changed Copilot's summary, Vally's files and the plugin's record
- new
- first time in the workshop
- You
- Copilot CLI with the Evals plugin
- Vally the full engine
- Agent under test GitHub Copilot
- Results
vally-results/
- You to Copilot CLI: Asks in plain language "Run the eval you just created."
- Copilot CLI: Prepares the run new The run skill reads your eval file. Three trials and a judge mean the full engine.
- Copilot CLI to You: Shows the review new The runner, the trials, the models, the cost, and what isn't restricted.
- You to Copilot CLI: Approves the run Each run needs its own approval.
- Copilot CLI to Vally: Starts Vally With the runner you set up and your stored GitHub CLI sign-in.
- For each of the 3 trials
- Vally to Agent under test: Sends the prompt In a fresh workspace, built from the plugin's copy of your files.
- Agent under test to Vally: Answers, then gets graded By the checks and the judge in your draft.
-
- Vally to Results: Writes the results
vally-results/eval-run-<id>/, withoutresults.jsonl. - Copilot CLI to You: Explains the result new From its own record in
.copilot/evals/results/.
A small eval, with one trial and no judge, runs on the bounded runner instead, with a shorter review.
The pieces you’ll work with
Section titled “The pieces you’ll work with”- Plugin new
-
A package that adds skills and tools to Copilot CLI. The Evals plugin is called
evaland comes from thegithub-copilot-evalsmarketplace. - Marketplace new
-
A catalog of plugins that Copilot CLI can install from. You add GitHub's Evals marketplace once.
- Evals skills new
-
Six skills Copilot uses when your request matches: create, review, improve, run, compare and setup. You just ask in plain language.
- Approval new
-
Before Copilot saves a file or runs an eval, you approve twice: Copilot CLI asks whether Copilot may use a tool, then the Evals plugin shows a review of exactly what will happen. Saving isn't running; every run needs its own approval.
- Eval runner setup new
-
Which Node.js and which Vally Copilot Evals runs evals with. You set it once per conversation, without a Copilot path, so Vally uses the Copilot runtime it comes with.
- Bounded runner new
-
Copilot Evals' runner for small evals: one trial per case, at most 10 cases with 10 checks each, and no LLM judges, setup commands or command checks. It adds a tool policy and a short list of allowed programs, but it's not a sandbox.
- Full-engine runner new
-
More of Vally's features: several trials, LLM judges, setup commands, time limits of up to a day. It has no tool policy and no sandbox, so it needs its own approval, with a detailed review.
Why this matters
Section titled “Why this matters”Copilot can draft an eval in a minute. Whether that eval measures the right thing is still your call, and you now know what to look for: a clear task, the right environment, negative checks, checks on the transcript and the workspace, enough trials. This lab ends the workshop where you’ll work from now on: with Copilot doing the typing and you doing the judging.
How Copilot runs an eval
Section titled “How Copilot runs an eval”Copilot doesn’t run evals itself: it hands them to Vally, through one of two runners.
- The bounded runner is for small evals that Copilot can start for you without surprises: one trial per case, at most 10 cases with 10 checks each, at most two minutes per case, and no LLM judges, setup commands or command checks (the full list). Like every Vally run, each trial works on copies of the eval’s files in a fresh workspace; the bounded runner adds a fresh home folder, a tool policy and a short list of allowed programs. It isn’t a sandbox, though: the agent’s tools can still reach files outside the workspace, including your originals, and the network, and nothing caps the cost.
- The full engine supports more of Vally’s features: several trials (up to 100 per run), LLM judges, setup commands and time limits of up to a day. It has no tool policy and no sandbox, so it needs its own approval, with a review that lists the trials, the models, the credential and everything that isn’t restricted.
You don’t pick the runner in your request; the eval file does. One trial and simple checks run on the bounded runner; several trials or a judge need the full engine. In this lab, you see both. A few Vally features work with neither runner, such as a custom model provider (your own model endpoint) and remote MCP servers: run those evals with vally eval.
-
In your terminal, add GitHub’s Evals marketplace and install the plugin, one command at a time:
Terminal window copilot plugin marketplace add github/evalscopilot plugin install eval@github-copilot-evalsMarketplace "github-copilot-evals" added successfully.Plugin "eval" installed successfully. Installed 6 skills.Check that it’s enabled:
Terminal window copilot plugin list --jsonLook for
"name": "eval","marketplace": "github-copilot-evals"and"enabled": true. The version changes often during the preview. -
In a Codespace only: give Copilot Evals a GitHub CLI sign-in. Copilot Evals starts its runs with the sign-in that the GitHub CLI has stored, and Copilot CLI hides token variables such as
GITHUB_TOKENfrom plugins. In a Codespace, the GitHub CLI has nothing stored: it signs in with that variable. So store the Codespace’s token as the GitHub CLI’s sign-in:Terminal window echo "$GITHUB_TOKEN" | env -u GITHUB_TOKEN gh auth login --with-tokenenv -u GITHUB_TOKENhides the variable from this one command, because the GitHub CLI won’t store a sign-in while the variable is set. Check the result the way Copilot Evals sees it:Terminal window env -u GITHUB_TOKEN gh auth statusgithub.com✓ Logged in to github.com account <you> (/home/node/.config/gh/hosts.yml)The GitHub CLI keeps the token in that file, in your Codespace’s home folder. The Codespace gets a new token each time it starts, so run the first command again after a restart. On your computer, skip this step: you stored a sign-in with
gh auth loginduring setup. Signed in with a personal access token in Lab 0? See Stuck? below. -
Start a fresh Copilot conversation in the repository’s root folder:
Terminal window copilotIf Copilot asks whether you trust the files in this folder, confirm. Copilot CLI signs in with the same token as Vally, your Codespace’s
GITHUB_TOKENor theCOPILOT_GITHUB_TOKENfrom.env, so you don’t needcopilot login. Copilot may tell you which model it uses; an organization can manage that for you.Then tell Copilot Evals which programs to run evals with:
Set up the eval runner for this project with Node and Vally only, without a Copilot executable path.Copilot uses the setup skill and asks twice. First, Copilot CLI asks whether it may use the Configure Eval Runner tool. Then the plugin shows its own review, which ends with
Execute selected version and compatibility checks only. No installation or model run.Approve both. Copilot confirms that it configured the runner with Node and Vally 0.21.0, without a Copilot executable path.Why without a Copilot path? Vally 0.21.0 comes with its own Copilot runtime, the one
vally evaluses. The Copilot CLI you installed can be newer: Copilot CLI 1.0.114, for example, speaks a newer protocol than Vally 0.21.0, and a run that uses it fails withSDK protocol version mismatch. If a later conversation asks to configure the eval runner again, use this prompt again. -
Review. Ask Copilot to review the eval you wrote:
Review the eval in evals/release-notes.eval.yaml. What does it check, what does it miss, and how would you improve it? Don't change any files yet.Copilot uses the review skill. It may ask for approval to run an Evals review tool on the file: read what it will do, then allow it. Compare Copilot’s findings with what you know. Did it notice the negative check? The limits of the backlog check? The number of trials? Is there a suggestion you’d act on?
-
Create. Ask Copilot to draft a new eval from scratch, and give it your criteria from Lab 1:
Create an eval for the release-notes skill in .github/skills/release-notes. Good release notes announce only backlog items whose status is done, never mention unfinished items anywhere, start with one short summary sentence, and leave backlog.json unchanged.Copilot uses the create skill. It proposes what to test and may ask you questions first; answer them. In our test, it noticed that the skill says to list every item, which contradicts your criteria, and asked whether to save the eval as a regression test anyway. Yes: the eval describes what should happen, so it fails until the skill is fixed. Before it saves anything, it shows you the full file, as the
contentin the approval of the Validate and Save Eval Draft tool. Review the draft before you approve it, with this checklist:Look for Why A prompt that sounds like a real request, without naming the skill or the expected answer Otherwise the eval tests the prompt, not the skill The skill and backlog.jsonin the environmentWithout them, the agent can’t do the task A negative check for CT-102 The bug you care about is something extra (Lab 2) A check that the skill was used, and one on backlog.jsonThe transcript and the workspace matter too (Lab 3) Check names that say exactly what they test So a failure tells you what went wrong Several trials, and a sensible threshold One run is an anecdote A pinned modelfor the agent, and ajudge_modelif the draft has an LLM judge (type: prompt)Without them, Vally falls back to its defaults. In our tests, Copilot’s drafts had a judge but neither modelnorjudge_model, and one trial. Vally’s default judge model wasn’t on our plan, so every judge grade came back invalidTo ask for changes, choose No, and tell Copilot what to do differently, type what to change, and press Enter. For example:
Before saving: under defaults, pin the agent model with model: claude-sonnet-5.5, add judge_model: gpt-5.6-luna for the prompt check, and use runs: 3 so we get several trials.Copilot shows the revised file; approve it once it passes the checklist. -
Run. Ask Copilot to run the new eval:
Run the eval you just created.Copilot uses the run skill, summarizes the plan, and asks twice, as before. The plugin’s review is long. Read these parts before you approve:
- The runner: it says
TRUSTED FULL EVAL RUNandCompatibility: vally-full-engine-v1. Your draft has three trials and an LLM judge, and only the full engine runs those. - What it costs:
1 cases x 3 trials = 3 trials, the agent’s model and the judge’s model, andInternal requests, retries and total cost are not capped. - What isn’t restricted:
A trusted full eval run has no tool-use restrictions and no OS, filesystem or network sandbox, and the GitHub credential it uses is visible to every process the run starts. - Where the results go:
vally-results/<run>/<timestamp>.
If that’s what you expect, approve. If the review then asks for an Approval scope, choose Allow once. The run takes a minute or two; then Copilot summarizes it. Ours ran on the starter’s skill, without the fix from Lab 4:
The run completed: 0/3 trials passed.Every trial mentioned CT-102, and two started with a heading or a preamble instead of a summary sentence. That’s the bug from Lab 3, and the eval catches it. If your skill has the fix from Lab 4, your run can pass: our reference draft passed 3 of 3 with it (see Solution). - The runner: it says
-
Read the run. Ask Copilot to explain the result; it reads the run’s record, with each trial’s answer and the evidence of every check. Then check it yourself. The run saved Vally’s files in a new folder,
vally-results/eval-run-<id>/<date-and-time>/:eval-results.md: the summary table you know from Lab 0. Right-click it and select Open Preview.- One folder per trial, under
release-notes-regression/completed-work-only/claude-sonnet-5.5/, withevents.jsonl,workspace.patchandmetadata.json, as in Lab 3. The folder names follow your eval’s name, its stimulus and the model.
There’s no
results.jsonl: Copilot Evals keeps its own record of the run in.copilot/evals/results/. That’s why the dashboard and./scripts/answers.sh, which readresults.jsonl, don’t show this run. To get a run they can read, start a separate run with Vally: open a second terminal (Terminal > New Terminal; on your computer, load.envthere first) and run the file there. It’s a new run, with new answers, and it uses Copilot requests like any other:Terminal window vally eval -e evals/<the-file-copilot-saved>.eval.yaml -
Optional: see the bounded runner. Ask Copilot to run Lab 0’s eval:
Run the eval in lab-files/lab-0/setup-check.eval.yaml.One trial and no judge: this time, the review says
Compatibility: vally-boundedandCopilot executable: default SDK runtime, and it lists what the bounded runner refuses:Setup/git-clone commands, model-based or command checks, dynamic parameter substitution, and multiple trials are rejected before approval.It also says what the bounded runner isn’t:Separate files and fresh home directories are not an OS sandbox or network restriction.Approve, and the run passes within seconds:1 passed, 0 failed. The response was READY. -
Optional: improve or compare:
Add a failure case to this eval: an answer that mentions CT-102 in a note. Save a revised copy.Compare the last two saved runs of this eval. -
Leave the conversation with
/exit.
What just happened
Section titled “What just happened”- Copilot reviewed an eval, drafted one, and ran one, each time by picking the matching Evals skill from your plain-language request.
- It ran your draft on Vally’s full engine, because the draft needs three trials and a judge. Small evals, with one trial and no judge, setup commands or command checks, run on the bounded runner.
- Every file it wrote is ordinary Vally YAML: you can lint it, run it with
vally eval, put it in an experiment or in CI. - You stayed in control: Copilot showed full files before saving, and before each run, the plugin’s review told you what the run would cost and what it wouldn’t restrict.
- And you could judge its drafts, because you know what an eval needs. That’s the reason the workshop started with Vally by hand.
Commands instead of plain language
Section titled “Commands instead of plain language”Copilot CLI also has /eval commands, such as /eval review, /eval create and /eval run. They’re behind Copilot CLI’s experimental mode: type /experimental in Copilot CLI, start a fresh conversation, then type /eval help. Plain-language requests work without experimental mode.
On your computer: VS Code
Section titled “On your computer: VS Code”On your own computer, you can use the GitHub Copilot Evals extension for VS Code instead. It adds a visual Evals Canvas: open your project, then run GitHub Copilot Evals: Open Evals Canvas from the Command Palette. It needs desktop VS Code 1.138.0 or later and a trusted local project. See Getting started in the GitHub Copilot Evals docs.
Check yourself
Section titled “Check yourself”Copilot’s draft has only positive checks. What do you do?
Ask it to add a negative check: “Add a check that fails when the answer mentions CT-102.” Then test the checks with known answers, as in Lab 2, before you trust a single run.
Why does every run need your approval?
A run starts an agent that can use tools and costs Copilot usage. Saving a file never starts a run, and approving one run doesn’t approve the next. That way, nothing runs that you haven’t seen and agreed to.
What actually runs the eval when Copilot runs it?
Vally. GitHub Copilot Evals prepares, explains and approves the run, and picks one of two runners: the bounded runner or Vally’s full engine. Either way, Vally executes the trials and the graders, the same engine you used in Labs 0 to 5, and saves its files in vally-results/.
Why did your draft run on the full engine, and Lab 0’s eval on the bounded runner?
The eval file decides. The bounded runner takes one trial per case, and no LLM judges, setup commands or command checks. Your draft has three trials and an LLM judge, so it needs the full engine, with its own, more detailed approval.
Is the bounded runner a sandbox?
No. Like every Vally run, each trial works on copies of the eval’s files in a fresh workspace, and the bounded runner adds a fresh home folder, a tool policy and a short list of allowed programs. But the agent’s tools can still reach files outside the workspace, including your originals, and the network, and nothing caps the cost. The review says so itself. What the bounded runner does give you is a small, predictable run that’s easy to check before you approve it.
Solution
Section titled “Solution”Copilot’s drafts differ from run to run, so there’s no single right answer. Compare yours with our reference draft: it passes every row of the checklist in step 5, and its comments point to the rows. One check is stricter than Lab 3’s: diff-not-contains reads the workspace diff, every change the agent made, and fails if backlog.json is among them. We ran it: with the starter’s skill, 0 of 3 trials passed, because every answer mentioned CT-102; with the fixed skill from Lab 4, 3 of 3 passed.
Our reference draft
# Lab 6 reference: a draft that passes the review checklist in step 5. Copilot's drafts differ from# run to run, so compare yours with this one, row by row. The comments name the checklist rows.## Copy it into evals/ and run it:# cp solutions/lab-6/release-notes-reference.eval.yaml evals/# vally eval -e evals/release-notes-reference.eval.yamlname: release-notes-referencedescription: >- Good release notes announce only backlog items whose status is done, never mention unfinished items anywhere, start with one short summary sentence, and leave backlog.json unchanged.type: capabilitydefaults: executor: copilot-sdk model: claude-sonnet-5.5 # a pinned model for the agent (scripts/use-model.sh changes it) runs: 3 # several trials: one run is an anecdote timeout: 120s judge_model: ${JUDGE_MODEL=gpt-5.6-luna} # the draft has an LLM judge, so it pins the judge's model too judge_timeout: 2magent_environment: # the skill and backlog.json, so the agent can do the task skills: - ../.github/skills/release-notes files: - src: ../backlog.json dest: backlog.jsonscoring: threshold: 1 # a sensible threshold: a trial passes only when every check passesstimuli: - name: completed-work-only # A real request: it names neither the skill nor the expected answer. prompt: Write the release notes for this release from backlog.json. rubric: - The answer announces CT-101 (Search across all projects) and CT-103 (Dark mode for the dashboard) as part of this release. - The answer does not mention CT-102 (Export reports to CSV) anywhere, in any words, not even to say that it was left out or comes later. - The answer starts with one short sentence that summarizes the release. graders: # A negative check (Lab 2): the bug you care about is something extra, the unfinished item. - type: output-contains name: never-mentions-unfinished-ct102 config: { substring: CT-102, negate: true } - type: output-contains name: announces-done-ct101 config: { substring: CT-101 } - type: output-contains name: announces-done-ct103 config: { substring: CT-103 } # A check on the transcript (Lab 3): the agent used the skill. - type: skill-invocation name: release-notes-skill-used config: required: - release-notes # A check on the workspace (Lab 3), stricter than Lab 3's: the workspace diff has a section for # every file the agent changed, and none of them may be backlog.json. - type: diff-not-contains name: backlog-json-unchanged config: { value: 'diff --git a/backlog.json' } # The LLM judge, for what code can't see: the summary sentence, and CT-102 in other words. - type: prompt name: judge-summary-sentence-done-only config: scoring: binaryTo run it yourself, with three trials and a judge, like your draft:
cp solutions/lab-6/release-notes-reference.eval.yaml evals/vally eval -e evals/release-notes-reference.eval.yamlStuck?
Section titled “Stuck?”copilot pluginisn’t recognized: update Copilot CLI withnpm install -g @github/copilot, then try again.- Copilot doesn’t use the Evals skills: start a fresh conversation (
/exit, thencopilot), and checkcopilot plugin list --json. - A run fails with
GitHub CLI sign-in is unavailable for github.com: in a Codespace, store the sign-in as in step 2; on your computer, rungh auth login. Then ask Copilot to run again. - You signed in with a personal access token in Lab 0, and a Copilot Evals run can’t sign in: Copilot Evals doesn’t use
COPILOT_GITHUB_TOKEN; it uses the GitHub CLI’s stored sign-in. Store your token there:echo "$COPILOT_GITHUB_TOKEN" | env -u GITHUB_TOKEN gh auth login --with-token. On your computer, this replaces your GitHub CLI sign-in, so rungh auth loginagain before Lab 7. - A run fails with
SDK protocol version mismatch: the runner uses your Copilot CLI instead of Vally’s own runtime. Ask Copilot to set up the runner without a Copilot executable path, as in step 3, then run again. - An approval timed out: the plugin’s review waits about three minutes. Ask Copilot to try again.
- The dashboard says
No runs foundfor Copilot’s run: Copilot Evals doesn’t writeresults.jsonl. Readeval-results.md, or run the file withvally eval. - Your organization blocks plugins or marketplaces: follow along with a neighbor, or try the VS Code extension at home.
- More in Troubleshooting and in the GitHub Copilot Evals support page.
Wrap-up
Section titled “Wrap-up”That’s the guided part. You can now define good, check your checks, run trials, read transcripts, prove a fix, calibrate a judge, and let Copilot help with all of it. Continue at your own pace:
- Lab 7: Evals in CI: run your eval on every pull request.
- Lab 8: Compare models: the same eval on two models.
- Lab 9: Your own agent: write an eval for something you build.
Workshop created by Jeffrey Groneberg · Connect on LinkedIn
The illustrations are AI-generated (MAI-Image-2.6). Command output comes from real runs with Vally 0.21.0 in November 2026.