Anthropic Shares Five Best Practices for Evaluating AI Agents
The practical detail is how the two-suite structure works: promotion from capability to regression happens on observation, not release cadence, which teams can adopt immediately without tooling changes. Engineering leads building agent pipelines in production get a concrete starting recipe — 20 real failures, code-based checks first, judge calibration against human labels. The quality-cost-latency triad is also a useful framing for enterprises deciding whether a newer model upgrade is actually worth migrating to.
Anthropic engineer Anmoltukrel shared five best practices for evaluating AI agents in a talk titled "Evals for AI Agents: How to Get the Most Out of Every New Model", delivered to roughly 1,000 founders. His most-used Claude Code Skills are /claude-api build-eval and /claude-api hillclimb: build-eval asks questions and generates an eval suite directly in the codebase, pausing for confirmation on samples, scoring methods and cost; hillclimb improves the agent one change at a time, splitting cases into training and held-out sets and reverting changes when scores regress or overfitting is suspected. He recommends starting by pulling about 20 real production failures into the loop, with an initial scale of 20 to 100 tasks.
A key principle is scoring by final results rather than text replies. In one customer-service example, an agent claimed a refund was processed but never called the refund API — eleven days later no refund appeared in the database, with no error in the reply. He advises checking the databases or files the agent was supposed to modify. For judges, deterministic code checks should be used wherever possible; LLM-as-judge should only handle open-ended tasks, with criteria written as pass/fail statements rather than 1-100 scores, validated against human labels and applied uniformly across models.
He also recommends maintaining two eval suites in parallel: capability evals that mostly fail to show progress, and regression evals that almost always pass to guard quality. Tasks that new models consistently solve should be moved into the regression set, replaced with harder ones — no fixed schedule, just when stability is observed. The final practice measures quality, cost and latency together, since cost and latency often disqualify otherwise passing solutions.
Anthropic 团队 @anmoltukrel 向千名创始人分享「Evals for AI Agents」五条最佳实践:检查最终结果、校准评判,并同时衡量质量、成本与延迟 讲座视频 - Evals for AI Agents: How to Get the Most Out of Every New Model anthropic.ondemand.goldcast.io/on-demand/097d… # 先把评估搭进代码库,再按结果打分 1. 他最常用的 Claude Code Skill 是 /claude-api build-eval 和 /claude-api hillclimb。先运行前者,它会向你提问,并直接在代码库里生成一套评估;再用后者一次只改一处去改进 Agent,同时留出部分测试用例,用来发现过拟合。讲座结尾他建议,可先从生产环境抽出约 20 个真实失败接到循环上,用最新模型跑一遍,起步规模通常在 20 到 100 个任务。Anthropic 官方博客也写过这两条命令:build-eval 会在样例、打分方式和费用上停下来等人确认;hillclimb 把用例分成训练与留出集合,分数回退或疑似过拟合时会撤销改动。 2. 既要看文字回复,也要看最终结果。Agent 有时会声称已经做完,实际并未执行。他用客服退款举例:用户申请退款,Agent 回复已经办理,十一天后钱还没到;它查过订单,却从未调用退款接口,数据库里也没有退款记录。回复没有报错,这类失败很难只靠日志或用户反馈及时发现。因此要检查它本该改动的数据库或文件,按结果打分。 # 评判要可靠,两套评测还要跟着模型往前走 3. 用大模型当评判既有用,也容易出问题,关键是「如何评判你的评判者」。能做确定性代码检查的地方就尽量用,比如数据库里有没有退款记录。开放式任务才用模型评判,但必须写清什么算「好结果」。他建议把标准写成可判定的是非条目,而不是打 1 到 100 分,并对照人工标注,看评判是否与人一致。同一份题目和回复,也应用同一套评判给不同模型打分。 4. 同时保留两套评估:能力评估和回归评估。能力评估应是多数情况下会失败的难题,用来看见进步;回归评估则应几乎总能通过,用来守住底线。当新模型已经能稳定做对某道能力题,就把它挪进回归集,并补上更难的题目。有人问这是否按每次发版或固定日程搬迁,他回复说没有固定安排,只要观察到这些题已经能被稳定解决,就可以搬。 5. 多数评估内容只谈质量,但做模型决策时,成本和延迟同样重要,三者都要测。他举例:两个模型质量接近时,若成本低约 20%,就可能值得切换;面向用户的 Agent,有时即使质量略降,也更在意延迟。换模型时,先把同一套提示、工具和打分器只改指向新模型,再依次跑回归集和能力集,同时看延迟与成本。他还提到,模型变强后,过多指令反而可能拖后腿,Claude Code 的系统提示大约已比一年前短了 80%。 Anmol Tukrel @anmoltukrel I’m an engineer at @AnthropicAI and I gave a talk to 1,000 founders on our best practices for building evals Here’s a recording along with my top 5 takeaways: 🧵
This report is categorized under AITOP's "How-to" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Anthropic, Claude Code, Agent, model evaluation.
Source attribution: curated from shao__meng (@shao__meng). Cross-source corroboration: 11 independent sources have covered this development (including IT之家, CoreWeave, Claude), confirming industry-wide signal strength.