Best patterns for evaluating AI agents?

Reddit r/AI_Agents Tools

Summary

A practitioner shares their deterministic evaluation harness for QA/coding agents — fixed corpora, injected bugs, hidden tests, and pass^k/token metrics — and asks the community how others balance smoke tests vs full benchmarks, whether LLM-as-a-judge adds value, and whether tools like Promptfoo or DeepEval reduce maintenance burden.

Hi everyone, I'm working on an evaluation framework for custom QA/coding agents and trying to find the right balance between reliability, coverage, and cost. Here's my current setup (using a local corpus validator and CI-based agent evaluations): Fixed corpus: 16 coding tickets with reference implementations, including ambiguous and adversarial cases. Injected bugs: Deliberately introduced regressions to check whether agent-generated tests catch real issues, rather than just passing by chance. Hidden tests: Used to validate the evaluation corpus independently. Metrics (95% confidence intervals): Multiple trials per ticket, measuring bug detection, false positives, fail-for-the-right-reason rate, rule adherence, pass^k, and token costs. One interesting issue I ran into was discovering that the agent could see filenames from the hidden evaluation corpus through Git status. I had to isolate the workspace to prevent that information from leaking into the evaluation. The challenge: The deterministic harness works, but maintaining it and running full evaluations can get expensive in terms of tokens, CI time, and maintenance. I can run a subset of tickets after each prompt change or model swap, but that introduces the risk of missing regressions elsewhere in the corpus. For those evaluating agents in real-world projects: Regression testing: Do you run a small smoke-test suite for prompt changes and a full benchmark before releases, or use another approach? LLM-as-a-judge: For coding/QA agents, do you find LLM judges useful alongside deterministic execution-based tests, especially for ambiguous requirements? Frameworks: Have tools like Promptfoo or DeepEval actually reduced your maintenance effort, or do you still rely on custom evaluation harnesses? I'm particularly interested in approaches that have worked in practice, not just benchmark scores. Thanks!
Original Article

Similar Articles

An Empirical Study of Automating Agent Evaluation

arXiv cs.CL

This paper introduces EvalAgent, a system that automates the evaluation of AI agents by encoding domain-specific expertise, addressing the limitations of standard coding assistants in this task. It also presents AgentEvalBench, a benchmark for testing evaluation pipelines, and demonstrates significant improvements in evaluation reliability.