The usual way to check an agent goes like this: edit the prompt, ask five questions, like the answers, ship it. A week later it turns out the agent has stopped answering correctly a question nobody thought of that day.
We test agents roughly the way we test code. There is a set of tests built from real conversations, criteria for a good answer and LLM judges that score answers against those criteria. A new version of an agent runs through the tests before users see it. Below is how this works and where the traps are.
Why checking by hand is not enough
Manual checking is biased towards the case you have just fixed. You ask the question the agent got wrong, see a correct answer and call the edit a success. But a prompt edit affects all answers at once, and most often it breaks what you are not checking at that moment.
User feedback does not help much either. A user gives a thumbs down to an answer they did not like but does not notice that a number in the answer is wrong. And a wrong number is more dangerous than an awkward phrase.
What a check consists of
Test cases are grouped into buckets by type of question. Each one has a question, context and expectations for the answer. Criteria describe what counts as a good answer and which mistakes are critical. An LLM judge reads the agent's answer, and the reference answer when there is one, and scores it against each criterion.
The most valuable part of the set comes from real conversations. Some of the actual conversations go into a sample for review, and any of them can be turned into a test case in one action. That way the set grows from mistakes the agent really made.
Tests run against a specific version of the agent's config. So a new version can be run before it is activated and compared with the old one on the same questions. If it does worse, there is no need to activate it, and users will never see it.
When a test fails, you need to understand why. For that, every agent answer has a trace: which tools it called, what they returned, which agents it brought in and what the model saw. Often the cause is not the prompt at all but a tool that lost part of the data.
Start by checking the references
For our analytical agent, the client's analysts gave us real questions with their own reference answers. Before testing the agent, we ran the references themselves through the criteria, and almost all of them failed. Some answers were twice as long as the agreed limit, and two criteria contradicted each other: one required starting with facts about the brand, the other required answering the question straight away.
Had we started measuring the agent right away, it would have been failing tests that nobody could pass. So the first thing to do is to make sure the references pass their own criteria and to settle the contradictions with whoever wrote the criteria.
What it costs us
Judges are models too, and they cost money as well. In one month the checks cost us almost as much as running the agent itself. So we run the full set before important changes and only the relevant bucket the rest of the time.
Judges make mistakes, like any model. It is worth comparing their scores with a manual review of a small sample from time to time.
Some parts of the system are expensive to test end to end. To check how the main agent asks clarifying questions, you do not need to run ten minutes of research every time. For such checks we made a research stub that returns a ready result.
The opposite mistake
It is easy to tie criteria to the implementation: "the agent called such-and-such tool", "the agent handed the task to such-and-such agent". Tests like that break after refactoring, even when the answers got better. We write criteria about the logic of a good answer and keep tool and agent names out of them.
The second trap is chasing the judge's score and no longer reading the conversations. The score shows that something is wrong, but what exactly can only be understood from the answers and the traces themselves.
What's next
In Flutch, test cases, criteria, judges, conversation samples and runs against agent versions live in the Quality Control section, and you can work with them from the console or from Claude through the MCP connector. But you can start without a platform: take 20 to 40 real questions, check the references against your criteria and run the set before every prompt edit.