agentleFS
MLOps-CoursesMLOps-Courses/agentops-open-course/skills/agent-evaluation/SKILL.md

agent-evaluation

Skill2 starsChanged 4 months agoMITView on GitHub

Build offline checks and model-backed evidence for an LLM agent — trajectory scoring, groundedness/citation coverage, a token-cost regression tripwire, and side-by-side prompt A/B. Use when a prompt or model change might silently regress behavior, cost, or grounding, or when "it looked fine" is your only test.

12 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use incident-response, test-driven-development and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AnthropicSkill

    incident-response

    Run an incident response workflow — triage, communicate, and write postmortem. Trigger with "we have an incident", "production is down", an alert that needs severity assessment, a status update mid-incident, or when writing a blameless postmortem after resolution.

    Also in 3 projects that use this

  • OpenAISkill

    test-driven-development

    Use when implementing any feature or bugfix, before writing implementation code

    Also in 4 projects that use this

  • MicrosoftSkill

    skill-creator

    Guide for creating effective GitHub Copilot skills (.github/skills/) in this repository. Use when creating a new skill, updating an existing skill, or when asked about skill structure, format, or best practices for the vscode-documentdb project.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Grow the set from real failures: When a trace shows a wrong or unsafe trajectory, distil it into one case that pins that single behavior …

    line 19
  2. Distinctive:

    A/B prompt versions: Run the eval set under two pinned prompt versions in isolated processes and print a per-scorer delta.

    line 22

“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Agent Evaluation

Score an agent's behavior over fixed cases, not one exact string. Let model-free structure checks gate merges. Treat every model-backed scorer as evidence with an explicit floor, and never make an LLM judge the sole release criterion.

When to use

  • A prompt/model change can pass a smoke test yet call the wrong tools, cost more, or hallucinate.
  • You want deterministic evalset validation in pull requests and behavioral evidence before release.
  • You need to choose between two prompt versions with numbers, not opinion.

Steps

  1. Score the trajectory, not the wording. Assert which tools were called, with which arguments, in order (allow extra reads) over fixed seed cases; hold writes to an exact count. This survives non-determinism that exact-match scoring cannot.
  2. Grow the set from real failures. When a trace shows a wrong or unsafe trajectory, distil it into one case that pins that single behavior and makes a recurrence visible.
  3. Add a groundedness check. Require every recognized claim to appear in that turn's retrieved evidence or the user's question. Document the recognizer's vocabulary; use a broader extractor or judge for claims it cannot parse.
  4. Tripwire the cost. Record per-case tokens and model-call counts against a committed baseline; fail when a change exceeds a tolerance. Trajectory scores tolerate waste, so this is the only thing that catches a correct-but-expensive regression.
  5. A/B prompt versions. Run the eval set under two pinned prompt versions in isolated processes and print a per-scorer delta; promote or roll back on the numbers.
  6. Split gates from evidence. Deterministic, model-free checks gate CI; model-backed evals (judge, cost, groundedness) run on a schedule where a failure means "investigate", not "blocked".

Reference implementation

From the AgentOps Open Course (agent modules live under agents/python/src/agent/, eval scripts under agents/python/evals/):

  • evals/mlflow_eval.py — deterministic trajectory/response scorers + optional judge.
  • evals/groundedness_eval.py, evals/cost_eval.py, evals/prompt_ab.py.
  • Course chapter 4.4. Evaluations.

Verify

Introduce a deliberate regression (a wrong tool, a doubled token count, a fabricated id) and confirm the matching scorer turns red; revert and confirm green.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.