Lab 9: Your own agent
The release-notes skill was practice. Now apply the same loop to something you build: a skill your team uses, your agent’s custom instructions, or an MCP tool.
- changed
- seen before, different here
- You do
- Apply the whole loop to an agent or skill of your own, from defining good to guarding it in CI.
- Under test
- Your own agent, skill, custom instructions or tool
- Checked by
- Your checks: code checks first, a calibrated judge only where needed
- Task changed A task your agent really gets
- Agent changed Your agent
- Environment changed Your skill and files
- Trials 3 or more
- Checks changed Yours: answer, transcript, workspace
- LLM judge Optional, calibrated first
- Results The same files and dashboard
vally eval -e evals/my-first.eval.yaml - You
- Vally the eval runner
- Your agent skill, instructions or tool
- Your checks code first, a judge if needed
- Results
vally-results/
- You to Vally: Starts the run Your eval file: a real task, your files, your checks.
- For each trial: three or more
- Vally: Builds a fresh workspace With your skill and the files the task needs.
- Vally to Your agent: Sends your task The request a real user would type, without hints.
- Your agent to Vally: Answers Vally keeps the answer, the transcript and the workspace.
- Vally to Your checks: Hands over the evidence To checks you tested first on known answers.
- Your checks to Vally: Pass or fail, with evidence
-
- Vally to Results: Writes the results Read them as in Labs 0 to 5, then improve the eval or the agent.
Choose a good first target
Section titled “Choose a good first target”Pick something that’s used often, small, and has failed before in a way you remember. A good first task has a clear right answer that two colleagues would agree on. Avoid tasks where “good” is mostly taste; add those once you have a calibrated judge.
The loop, one more time
Section titled “The loop, one more time”-
Define good (Lab 1). Write down four to six criteria before you run anything, including at least one must-not. Mark which ones code can check.
-
Draft the eval. Start from the template, or ask Copilot to draft it (Lab 6) and review the draft against your criteria:
Terminal window cp lab-files/lab-9/my-first.eval.yaml evals/Replace every
TODO: the skill’s folder, the files it needs, a realistic prompt, and checks for your criteria. -
Check your checks (Lab 2). Make a copy with
executor: mock, put a known-good answer and a known-bad answer into the prompts, and confirm the verdicts. Keep only the checks on the answer in that copy: a mock run makes no tool calls and changes no files, so checks on the transcript, such asskill-invocation, can’t pass there. -
Run trials (Lab 3):
vally lint -e evals/my-first.eval.yaml --strict, thenvally eval -e evals/my-first.eval.yaml. Read the transcripts, not only the pass rate. -
Fix and prove (Lab 4). Change one thing, and compare with an experiment.
-
Judge what code can’t (Lab 5). Add a rubric and a judge only for the criteria that need judgment, and calibrate it first.
-
Guard it (Lab 7). Tag the eval
lane: ciand let every pull request run it.
Tips from the workshop
Section titled “Tips from the workshop”- Don’t name the skill or the answer in the prompt. Write the request a real user would type.
- Add a negative check for every bug you’ve seen. Bugs tend to be something extra.
- Check the transcript and the workspace where it matters, not only the answer.
- Keep runs isolated. Sign in with a token, not with
EVALUATE_USE_HOST_COPILOT_HOME=1, so your own skills and settings don’t leak into the run. - Start with three trials; use more before you decide anything that matters.
- Turn every real failure into a new task or control. Your eval gets better with every bug it catches.
Further reading
Section titled “Further reading”- Writing eval specs in the Vally docs.
- Run your first eval in the GitHub Copilot Evals docs.
- More labs and worked examples in Further learning and sources.
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.