Chuyển đến nội dung
Skillpedia
Agent81k · #1650

harness-learn

Skill này làm gì

Skill này chạy một quy trình học để tinh chỉnh chính sách của harness trên một bộ tác vụ phần mềm đã được chấm điểm. Nó dành cho nhóm muốn cải thiện có đo lường và sẵn sàng thiết lập một bản checkout mã cục bộ.

Khi nào nên dùng

  • ✓Khi prompt của một harness làm kém trên một loại tác vụ và bạn muốn cải thiện có đo lường.
  • ✓Khi bạn muốn ước tính chi phí một lần học trước khi cam kết chi tiêu.
  • ✓Khi một lần học đã đưa lên một thiết lập mới và bạn muốn kiểm tra nó.

Liên kết skill

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-learn/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-learn/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy ước tính chi phí một lần học cho harness của tôi trước, và chỉ chạy thật nếu tôi xác nhận.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill kiểm tra xem có bản checkout metaharness hay không, rồi chạy script học. Mặc định là chạy thử: nó xác định danh sách tác vụ và báo chi phí mà không gọi model. Lần chạy thật cần một tùy chọn rõ ràng.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Surfaces metaharness learn — the upstream GEPA learning harness that evolves harness policy genomes against a scored task corpus instead of hand-editing prompts. Candidates are scored on held-out slices and only measured winners promote (the shipped cand-6 genome is the first such promotion: holdout gold 2/12 → 3/12, zero regressions).

When to use

  • A harness's policy prompt underperforms on a task family and you want a measured improvement loop rather than manual prompt iteration.
  • Pricing a learning run before committing spend — the default dry-run resolves the slice manifest and reports cost without any model calls.
  • After a learn run promotes a genome: pair with harness-gepa --op render to inspect what the promoted policy actually says.

Preconditions (upstream design)

The learning harness (GEPA + SWE-bench + Docker) is too heavy for the npm package, so learn needs a local clone:

git clone https://github.com/ruvnet/metaharness.git
node scripts/learn.mjs --repo ./metaharness --host claude-code --model haiku --slice slices/lite.json

Without a checkout the script emits {status: "checkout-required"} and exits 0 — a precondition report, not an error (distinct from degraded: true, which means the npm package itself is absent). The managed-service path (gateway-side learn jobs, no checkout) is upstream's ADR-235 follow-up and not available yet.

Algorithm

Implementation: scripts/learn.mjs.

  1. Validate --repo exists when given; export it as $METAHARNESS_REPO.
  2. Invoke the pinned metaharness binary (metaharness@~0.4.1, local install or one-time versioned cache — never @latest): metaharness learn --host <h> --model <m> --slice <s> [--run] via _harness.mjs (graceful degradation, hard timeout).
  3. Default timeouts: 120s dry-run, 600s with --run — real runs on larger slices need an explicit --timeout-ms matched to slice size × model cost.
  4. Detect the checkout-required message → structured payload, exit 0.
  5. Parse the trailing JSON report when upstream emits one; otherwise return the raw report text under rawReport.

Cost note

--run is the ONLY path that spends. Everything else — dry-run, checkout probe, degraded path — is $0. The MCP tool (metaharness_learn) has a 120s subprocess budget; run real learning cycles from a terminal via ruflo metaharness learn ... --run --timeout-ms <big>.

Exit codes

  • 0 — report produced (or dry-run, checkout-required, degraded)
  • 1 — --alert-on-fail and the learn run reported failure
  • 2 — config error (bad --repo path)
Câu hỏi thường gặp

Chạy thử có tốn tiền không?

Chạy thử mặc định không gọi model nên không tốn tiền cho các lần gọi đó.

Tôi cần chuẩn bị gì trước khi chạy?

Một bản clone cục bộ của dự án metaharness. Nếu thiếu, skill báo rằng cần có một bản checkout.

Dịch vụ được quản lý có khả dụng ở đây không?

Không. Mã nguồn ghi rằng đường dẫn dịch vụ được quản lý chưa là một phần của skill này.

Chi tiết

Mô tả gốc của tác giả

Run a GEPA learning cycle via `metaharness learn`, optimizing a harness genome against a SWE-bench-style slice. Use when training a harness genome. $0 dry-run by default; `--run` opts into spend. Needs a metaharness checkout (--repo or $METAHARNESS_REPO).

repo: ruvnet/ruflo

Độ phổ biến

Sao GitHub
81k
Vị trí xếp hạng
#1650
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự