eval – skill Agent & Tự động hóa cho agent AI
Đánh giá và xếp hạng kết quả của agent theo chỉ số hoặc LLM judge cho một phiên AgentHub. Dùng khi người dùng chạy /hub:eval hoặc yêu cầu chấm điểm, so sánh, hoặc chọn agent thắng trong số các agent AgentHub đã hoàn thành.
Cài skill eval bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/eval-daf59.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /eval – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/eval-daf59.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $eval – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/eval-daf59.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /eval – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/eval-daf59.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /eval – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
/hub: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
/hub:eval # Eval latest session using configured criteria
/hub:eval 20260317-143022 # Eval specific session
/hub: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:
1. Get the diff: git diff {base_branch}...{agent_branch}
2. Read the agent's result post from .agenthub/board/results/agent-{i}-result.md
3. 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
1. Run metric evaluation first
2. If top agents are within 10% of each other, use LLM judge to break ties
3. Present both metric and qualitative rankings
After Eval
1. Update session state:
python {skill_path}/scripts/session_manager.py --update {session-id} --state evaluating2. Tell the user:
- Ranked results with winner highlighted
- Next step:
/hub:mergeto merge the winner - Or
/hub:merge {session-id} --agent {winner}to be explicit
Skill liên quan
- execute – /c-level-agents:execute [decision] — Tạo kế hoạch thực thi 90 ngày với các mốc hằng…
- bdi-mental-states – Dùng khi người dùng yêu cầu “mô hình hóa trạng thái tinh thần của agent”, “triển khai…
- extract – Biến một mẫu hoặc giải pháp gỡ lỗi đã được kiểm chứng thành một skill độc lập tái sử…
- bifrost-gateway – Chạy và cấu hình Bifrost, AI gateway mã nguồn mở: một API tương thích OpenAI cho hơn 20…
- bilig-workpaper – Dùng WorkPaper JSON có công thức và công cụ MCP cho các tác vụ bảng tính của agent…
- billing-automation – Làm chủ hệ thống thanh toán tự động, bao gồm thanh toán định kỳ, tạo hóa đơn, quản lý…
- fable-goal – Chuyển một mô tả lan man về kết quả mong muốn thành một prompt /goal hoàn chỉnh, tự…
- bitbucket-automation – Tự động hóa kho mã Bitbucket, pull request, nhánh, issue và quản lý workspace qua Rube…