Skip to content

Lab 9: Your own agent

  • Time 45 minutes or more, self-paced
  • Model use Your choice
  • Uses lab-files/lab-9/my-first.eval.yaml

A drafting table with a large eval template: empty checkboxes and lines, the first one being checked with a pen. Around it lie eval building blocks: cards, a magnifying glass, a checklist, a small glass workspace box and the peach judge robot. A small robot waits on a pedestal to be tested.

The same loop, applied to an agent of your own.

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.

This lab at a glance
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
  1. Task changed A task your agent really gets
  2. Agent changed Your agent
  3. Environment changed Your skill and files
  4. Trials 3 or more
  5. Checks changed Yours: answer, transcript, workspace
  6. LLM judge Optional, calibrated first
  7. Results The same files and dashboard
What happens during the run 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/
  1. You to Vally: Starts the run Your eval file: a real task, your files, your checks.
  2. For each trial: three or more
    1. Vally: Builds a fresh workspace With your skill and the files the task needs.
    2. Vally to Your agent: Sends your task The request a real user would type, without hints.
    3. Your agent to Vally: Answers Vally keeps the answer, the transcript and the workspace.
    4. Vally to Your checks: Hands over the evidence To checks you tested first on known answers.
    5. Your checks to Vally: Pass or fail, with evidence
  3. Vally to Results: Writes the results Read them as in Labs 0 to 5, then improve the eval or the agent.

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.

  1. 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.

  2. 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.

  3. 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 as skill-invocation, can’t pass there.

  4. Run trials (Lab 3): vally lint -e evals/my-first.eval.yaml --strict, then vally eval -e evals/my-first.eval.yaml. Read the transcripts, not only the pass rate.

  5. Fix and prove (Lab 4). Change one thing, and compare with an experiment.

  6. Judge what code can’t (Lab 5). Add a rubric and a judge only for the criteria that need judgment, and calibrate it first.

  7. Guard it (Lab 7). Tag the eval lane: ci and let every pull request run it.

  • 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.

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.