eval
它能做什么
这项技能对处理同一任务的智能体结果进行排名。适合需要在多个 AI 尝试之间公平、基于证据地做出选择的人。
适用场景
- ✓当多个智能体已完成工作、你需要知道哪个结果最好的时候。
- ✓当你有可测量的目标(例如速度或测试覆盖率)可用来对结果排名时。
- ✓当没有明确指标、你想让 AI 评委比较代码的时候。
技能链接
https://github.com/alirezarezvani/claude-skills/blob/main/engineering/agenthub/skills/eval/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为最近一次会话中的三个智能体结果打分,并告诉我哪一个获胜。”
每周 5 个新技能,1 分钟读完。
工作原理
在指标模式下,智能体会在每个工作树中运行你的评测命令,并按测得的数值排名。没有指标时,它会比较每个智能体的差异在正确性、简洁性和质量方面的表现,并解释其排名。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
/agenthub:eval — Evaluate Agent Results
Rank all agent results for a session. Supports metric-based evaluation (run a command), LLM judge (compare diffs), or hybrid.
Usage
/agenthub:eval # Eval latest session using configured criteria
/agenthub:eval 20260317-143022 # Eval specific session
/agenthub:eval --judge # Force LLM judge mode (ignore metric config)
What It Does
Metric Mode (eval command configured)
Run the evaluation command in each agent's worktree:
python {skill_path}/scripts/result_ranker.py \
--session {session-id} \
--eval-cmd "{eval_cmd}" \
--metric {metric} --direction {direction}
Output:
RANK AGENT METRIC DELTA FILES
1 agent-2 142ms -38ms 2
2 agent-1 165ms -15ms 3
3 agent-3 190ms +10ms 1
Winner: agent-2 (142ms)
LLM Judge Mode (no eval command, or --judge flag)
For each agent:
- Get the diff:
git diff {base_branch}...{agent_branch} - Read the agent's result post from
.agenthub/board/results/agent-{i}-result.md - Compare all diffs and rank by:
- Correctness — Does it solve the task?
- Simplicity — Fewer lines changed is better (when equal correctness)
- Quality — Clean execution, good structure, no regressions
Present rankings with justification.
Example LLM judge output for a content task:
RANK AGENT VERDICT WORD COUNT
1 agent-1 Strong narrative, clear CTA 1480
2 agent-3 Good data points, weak intro 1520
3 agent-2 Generic tone, no differentiation 1350
Winner: agent-1 (strongest narrative arc and call-to-action)
Hybrid Mode
- Run metric evaluation first
- If top agents are within 10% of each other, use LLM judge to break ties
- Present both metric and qualitative rankings
After Eval
- Update session state:
python {skill_path}/scripts/session_manager.py --update {session-id} --state evaluating
- Tell the user:
- Ranked results with winner highlighted
- Next step:
/agenthub:mergeto merge the winner - Or
/agenthub:merge {session-id} --agent {winner}to be explicit
常见问题
即使有指标,也能强制使用评委模式吗?
能。有一个参数可以强制使用 LLM 评委模式,并忽略指标设置。
排名表显示什么?
每个智能体的排名、指标数值、相对基线的变化以及它改动的文件数量。
我能选择特定的会话吗?
能。你可以指定会话 ID,默认使用最新的会话。
详情
作者的原始描述
Use to score and pick a winner among finished AgentHub agents by metric or judge.
热度
- GitHub 星标
- 29k
- 排名
- #9530
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-launcher-orchestrator
29k帮你的智能体从一个清晰的目标出发,逐步规划、构建、测试并定时运行你自己账户中的 Claude 托管智能体。
grade-iterate
29k让你的智能体按评分标准为托管 AI 智能体的工作打分,并在固定的轮次内改进,因此它永远不会无限循环。
interview
29k让你的智能体就一个 AI 智能体的想法对你进行访谈,并在任何上线之前,把你的回答整理成一份简单的构建计划。
run-without-you
29k帮你的智能体设置托管 AI 智能体,使其按计划或在某个事件发生时运行,并在启动前检查定时设置。