eval-harness-first
Fungsinya
Alat ini membuat test suite untuk memeriksa apakah model AI bekerja dengan baik. Alat ini membantu menemukan dan memperbaiki kesalahan sebelum model dilatih.
Kapan dipakai
- βSaat mulai melatih model AI.
- βSaat mengubah contoh percakapan menjadi test set.
- βSaat membandingkan performa model dengan penilaian manusia.
Link skill
https://github.com/wshobson/agents/blob/main/plugins/llm-finetuning/skills/eval-harness-first/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBuatkan test suite untuk mengevaluasi model chatbot baru kami.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Alat ini menganalisis contoh percakapan untuk menemukan jenis kesalahan yang sering muncul. Setelah itu, alat ini membuat tes khusus untuk setiap jenis kesalahan dan memeriksa apakah model membaik setelah dilatih.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Eval Harness First
The Phase 0 gate for the whole plugin:
finetuning-method-selection and every downstream
skill assume this harness exists before a training
config gets written. The harness is not a run-end
side artifact β it is the data-curation engine. The
same labeled traces that build the goldens feed
training data, minus an explicit holdout.
Input: production/agent traces if they exist, or
a task spec if they don't, plus labelers willing to
grade β₯100 examples.
Output format: the eval/ directory below β
goldens, graders, drift suite, and the base-model
baseline that later phases gate on.
The Gate
No eval harness, no fine-tune. Skip to a training config and there is nothing to measure against, nothing to catch regressions, and no labeled data to train on. The flywheel:
- Collect traces β production/agent spans, or synthetic tasks if none exist yet.
- Error analysis β open coding on β₯100 traces, axial coding into 4β8 failure buckets.
- One grader per bucket β deterministic first; calibrated LLM-judge only for genuinely subjective criteria.
- Prioritize by frequency Γ severity Γ value.
- The labeled traces feed dataset curation, minus
an explicit holdout. Every
eval/goldens.jsonlID stays excluded from training data by ID. - Train.
- Re-run the same harness on the checkpoint β not a different, looser one.
- Drift detection feeds back to step 2 β new production failure modes re-open error analysis.
Steps 2β4 build the harness; steps 5β8 are why it must exist first β it is both the training data source and the checkpoint's exit gate.
Building Goldens
- From traces, when they exist: run error analysis β open coding on β₯100 real traces (read them, tag failures in your own words, no fixed taxonomy yet), then axial coding to collapse those tags into 4β8 named failure buckets. Fewer than 4 means the coding pass was too shallow; more than 8 means buckets need merging. Exception: single-failure-surface tasks (e.g. strict-schema extraction) may land at 1β2 buckets with per-field sub-metrics inside one grader β don't invent artificial splits with no evidence behind them.
- Synthetic, when traces don't exist yet: dimension-based generation β enumerate the axes that matter (task type, difficulty, edge case, persona) and sample the cross-product; free- generated prompts cluster around whatever's easiest to write.
- Goldens are versioned like code β commit
eval/goldens.jsonl, diff it in review, tag it per release. It doubles as the CI regression suite.
Graders
One grader per failure bucket from error analysis β not one for the whole eval set. A single blended score hides which bucket regressed.
- Deterministic first. Regex, schema validation, or execution checks are cheaper, reproducible, and need no calibration.
- LLM-judge only for genuinely subjective criteria β tone, faithfulness, "which response is better" β where no deterministic check can express it.
- Binary pass/fail over Likert. A 1β5 or 1β10 scale is noisier to calibrate and harder to apply consistently; collapse to pass/fail.
- Drift-suite MMLU-style scoring: prefer logprob
over generate-and-extract β a tight token budget
makes generate-and-extract parse-brittle for models
that preamble, conflating format compliance with
the knowledge being measured. Templates for all
four grader shapes and this scoring note:
references/grader-templates.md.
Judge Calibration Is a Prerequisite
Any bucket routed to an LLM-judge needs calibration before its verdicts count for anything beyond exploration β a hard prerequisite, not a nice-to-have. N/A when no bucket routes to a judge β an all-deterministic harness has nothing to calibrate; state that rather than leaving this section unaddressed.
- Label β₯100 items, split train/dev/sealed test (report once, no re-touching after).
- Report TPR and TNR, not one blended accuracy number β a judge can hit 90% by always saying "pass" on a skewed set.
- Pin the judge to a fixed model snapshot and recalibrate on judge-model change, quarterly regardless.
- The judge must come from a different model family than the model under test.
- A judge that misses the agreed TPR/TNR bar ships advisory-only β flags for human review, never gates a promotion. Full protocol, bias correction,
β¦
Pertanyaan umum
Apa itu 'goldens'?
'Goldens' adalah contoh respons yang sempurna dari model, yang dijadikan acuan untuk tes.
Apa itu 'graders'?
'Graders' adalah pemeriksa otomatis yang menilai apakah respons model sudah benar di setiap kategori kesalahan.
Mengapa 'baseline' itu penting?
'Baseline' adalah skor awal model sebelum dilatih. Skor ini menjadi titik pembanding untuk mengetahui apakah pelatihan benar-benar meningkatkan model.
Detail
Deskripsi asli dari pembuat
Build the evaluation harness that gates every fine-tuning run β golden sets, per-failure-mode graders, judge calibration, and base-model baselines. Use when starting a fine-tuning effort, when converting traces into an eval set, or when calibrating a judge against human labels.
repo: wshobson/agents
Popularitas
- Bintang GitHub
- 41k
- Peringkat
- #6730
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- β¦
Skill lain dari repositori ini
screen-reader-testing
41kMeminta agent Anda menguji website menggunakan screen reader untuk memastikan website dapat diakses.
wcag-audit-patterns
41kMembantu agent Anda mengaudit aksesibilitas website dan memperbaiki masalah sesuai panduan WCAG.
multi-reviewer-patterns
41kMemungkinkan agent Anda mengoordinasikan code review paralel, menghapus temuan ganda, dan menggabungkan laporan.
parallel-debugging
41kMemungkinkan agent Anda men-debug masalah rumit dengan investigasi paralel dan analisis akar masalah.
Skill serupa
add-model-provider
394kMemungkinkan agent Anda menghubungkan penyedia model AI baru ke OpenClaw dengan perintah pengaturan yang aman, menjaga kunci API tetap di luar teks biasa, dan menjalankan uji langsung.
acp-router
394kMembantu agent Anda mengirim tugas ke asisten pemrograman seperti Claude Code atau Cursor lewat OpenClaw, sehingga pekerjaan dijalankan di alat tersebut.
browser-automation
394kMengajari agent Anda mengendalikan halaman web langkah demi langkah, termasuk login, tab, dan pemulihan saat halaman berhenti merespons.