Evals are what let your agents work without you

If agents are going to work while nobody is watching, something other than a person has to check their work. This is a case where an eval did that, and caught a failure the guards let straight through.

The project is cc-notify-tts, a Claude Code plugin built by agents with Orchestral. When a Claude Code turn finishes, the plugin uses a small local model to write a one-sentence summary and reads it out loud. Its brief made the eval part of the job: the project wasn’t done until make eval could reproduce its results table, scoring each local model on whether it kept the detail that matters and invented nothing.

How the eval works

Each case is a made-up hook payload in the same JSON Claude Code sends when a turn ends, a question comes up or a permission is needed. There are 60 of them now; the model comparison below ran on the first 48. Alongside each payload, the case lists what a good answer has to include and what it must never say:

{
  "id": "finished-tests-still-fail",
  "payload": {
    "hook_event_name": "Stop",
    "last_assistant_message": "Updated the CSV importer to handle quoted commas, but 2 of the 31 tests still fail: test_empty_rows and test_bom_header. I haven't touched those yet."
  },
  "required": [["csv", "import*", "quoted comma*"], ["fail*", "2 of", "two of"]],
  "forbidden": ["all tests pass", "all 31", "tests pass", "fixed test_empty_rows"]
}

The eval runs each payload through the same path the daemon uses: the same classification, prompt, options and guards. That way it scores the sentence you’d actually hear. Then it runs four checks on the answer, all plain string matching with no model judging another model:

  • the daemon’s guards accept it, so it would be spoken
  • it matches one phrase from every required group
  • it doesn’t contain any of the forbidden phrases
  • it’s 15 words or fewer (10 for a permission)

An answer only passes if all four checks pass. Every run logs the model’s digest, the Ollama version and the machine, and saves the results to dated files that never get overwritten.

The required lists took the most work to get right. The first version accepted any topic word, and llama3.2:3b passed 47 of 48 cases, including “Reset the repository to the last commit three times” for git reset --hard HEAD~3. Once required was changed to look for the fact a listener actually needs instead of just the topic, it passed 40, and every remaining failure was a real one.

Before any of these numbers could be trusted, the noise had to be measured. Six runs of the same model at temperature 0, each loading it fresh, gave identical answers on all 48 cases. So when two models get different pass counts, the difference is real.

The answer that got past the guards

Take the case above. Seven of the ten models answered with some version of:

Updated the CSV importer to handle quoted commas.

Every one of those got past the guards. Every name and number came from the input, and nothing in the sentence is false. It’s still the worst notification you can get: you’re away from your desk, you hear that the work is done, and you don’t come back to fix it.

Across the four failing-tests cases, 31 of the 36 answers from the nine usable models (the tenth, qwen3:4b, writes out its reasoning instead of an answer) would have been read aloud as a success. The built-in fallback had the same blind spot, because it just reads the message’s first sentence. “Fixed the timezone handling. Three tests still fail.” came out as “Fixed the timezone handling.”

This is the failure to expect from small models. They drop the bad news, and the sentence that’s left is accurate, so a check that only looks for invented facts lets it through. Only a check for what must be there catches it.

Fixing it in code

The fix didn’t touch the prompt. Changing the prompt would shift every model’s answer to every case and need its own comparison. Instead, code checks the turn’s last message to see if tests are still failing. If they are, a guard rejects any wording that leaves the failure out, and the fallback is spoken instead. The fallback now includes the sentence about the failing tests. Because the guard checks the answer rather than the model, it works for any model someone configures.

After the change, none of the 36 answers get read aloud as a success. The eval’s pass counts didn’t budge, because those answers were already failing the required check. What changed is what you actually hear.

It’s not airtight. The guard looks for English phrasing, so a failure worded differently, like “CI won’t go green”, still slips through. A later change (ADR-0033) added more phrasings, but it can’t know all of them.

One fix is still open: a prompt that asks for the failure outright. If it’s tried, this eval will measure it against the numbers above (ADR-0021 has them).

What to take from it

  • Decide what good looks like before the work starts, and make it something a script can check. Then nobody has to be there when the answer comes in.
  • Check for what must be there, not only for what mustn’t. The guards against invented facts passed the worst answer. The required list caught it.
  • Require the fact, not the topic. A topic word let a model pass 47 of 48 cases. Naming the fact a listener needs dropped it to 40, all real failures.
  • Measure the noise before comparing models, or a difference in pass counts tells you nothing.
  • Fix what you can in code. A guard on the answer holds for every model. A prompt change has to be re-measured for each one.
  • Write down the limits. A guard that reads English phrasing will miss some failures, and saying so is part of the result.

The cases and the scoring are in the eval README if you want to run them on your own models.

  • agents
  • evals
  • claude-code