harness-gepa
Skill này làm gì
Skill này làm việc với genome GEPA, tức là các chính sách prompt đã lưu dùng trong harness AI. Nó dành cho người muốn xem, kiểm tra hoặc đọc các prompt mà harness thực sự dùng.
Khi nào nên dùng
- ✓Khi bạn muốn xem system prompt thực tế mà một genome đã lưu tạo ra.
- ✓Khi bạn muốn kiểm tra một file genome có hợp lệ trước khi dùng.
- ✓Khi một lần chạy thất bại và bạn muốn phân loại các kiểu lỗi.
Liên kết skill
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-gepa/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Hãy cho tôi xem system prompt thực tế mà file genome này tạo ra để tôi đọc.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill tải thư viện GEPA và chạy một trong vài hành động: hiển thị prompt, kiểm tra cấu trúc genome, hoặc phân loại kiểu lỗi từ bản ghi. Nó không chạy toàn bộ vòng tối ưu hóa.
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 the GEPA (genetic-evolution prompt-adaptation) library exports
from @metaharness/darwin/gepa. Unlike the other skills in this plugin
there is no CLI binary behind this — the script dynamic-imports the library
(local resolution first, versioned cache install as fallback) and calls the
subprocess-safe subset.
When to use
- Adopting an evolved policy:
--op rendershows the actual system prompt a genome compiles to — read THAT, not the raw JSON, before wiring a genome into a harness. - Auditing a promotion:
--op genomeloads + validates the shipped cand-6 genome (first holdout-confirmed cheap-tier promotion; provenance ships in the package) or any genome file you point at. - CI gate on genome edits:
--op validate --alert-on-invalidexits 1 on structural errors. - Debugging a bad run:
--op analyze --transcript run.jsonclassifies failure modes (GEPA's failure-class taxonomy) from a transcript array.
What is deliberately NOT here
gepaOptimize — the optimization loop takes an in-process
evaluate(candidate) callback ("bring your own evaluator") that cannot
cross a subprocess boundary. Two supported paths instead:
- Library consumers:
import { gepaOptimize, loadCand6Genome } from '@metaharness/darwin/gepa' - Sandbox-scored evolution:
harness-evolve(darwin CLIevolve), which pairs GEPA with its own sandbox evaluators.
Algorithm
Implementation: scripts/gepa.mjs.
import('@metaharness/darwin/gepa'); on MODULE_NOT_FOUND fall back to a one-timenpm install --prefix ~/.ruflo/darwin-cache-<pin>and import the cacheddist/gepa/index.js(versioned dir → pin bumps invalidate).- Dispatch
--op:genome→loadGenome(fs, path)orloadCand6Genome()+validateGenomevalidate→validateGenome(rawJson)(raw parse so broken files reach the validator instead of throwing in the loader)render→buildSystemFromGenome(genome, ext?, glob?)analyze→analyzeTranscript(entries)
- Emit one JSON object; exit 0 (or 1 under
--alert-on-invalid, 2 on bad input).
Examples
node scripts/gepa.mjs --op genome # cand-6 + validation
node scripts/gepa.mjs --op render | jq -r .system # what does cand-6 SAY?
node scripts/gepa.mjs --op validate --path my-genome.json --alert-on-invalid
node scripts/gepa.mjs --op analyze --transcript run.json
Exit codes
0— op completed (or degraded — darwin not installable)1—--alert-on-invalidand validation found errors2— config error (unknown op, missing/broken input file)
Câu hỏi thường gặp
Vì sao nên hiển thị prompt thay vì đọc file thô?
Mã nguồn khuyên nên đọc prompt đã biên dịch trước khi gắn genome vào harness.
Skill có tự kiểm tra và thất bại không?
Có. Hành động validate có thể thoát với lỗi khi có vấn đề về cấu trúc, nếu bạn bật tùy chọn cảnh báo.
Nó có tự cải thiện prompt không?
Không. Tối ưu hóa cần một bộ đánh giá riêng, nên skill chỉ ra các đường dẫn khác cho việc tiến hóa.
Chi tiết
Mô tả gốc của tác giả
Load, validate or render a GEPA genome, or classify failure modes in a run transcript, via @metaharness/darwin/gepa. Use when inspecting or auditing a genome; use harness-evolve for sandbox-scored evolution. Degrades gracefully without darwin.
repo: ruvnet/ruflo
Độ phổ biến
- Sao GitHub
- 81k
- Vị trí xếp hạng
- #1649
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
agent-adaptive-coordinator
81kGiúp agent của bạn chia và cân bằng lại một nhóm agent AI khi khối lượng công việc thay đổi, chọn bố cục phù hợp với tác vụ.
agent-agent
81kDạy agent của bạn biến một mục tiêu lớn thành kế hoạch hành động có thứ tự, và lập lại kế hoạch khi điều kiện thay đổi.
agent-agentic-payments
81kGiúp agent của bạn quản lý ủy quyền chi tiêu cho mua sắm bằng AI, với hạn mức chi, khung thời gian, quy tắc người bán và phê duyệt có chữ ký.
agent-analyze-code-quality
81kGiúp agent của bạn rà soát chất lượng mã, tìm code smell, nợ kỹ thuật và gợi ý tái cấu trúc mà không thay đổi các file.
Skill tương tự
writing-skills
311kDạy agent của bạn viết skill mới và kiểm thử từng skill trước, kiểm tra xem skill có thực sự thay đổi cách agent hành xử hay không.
writing-for-agents
310kGiải thích cách viết hướng dẫn rõ ràng cho agent AI, gồm skill, tệp AGENTS.md và CLAUDE.md, để agent cư xử nhất quán.
bengali-nlp
280kGiúp agent của bạn xử lý văn bản tiếng Bengali, hỗ trợ hiểu ngôn ngữ này, chuẩn hóa văn bản và xử lý các đặc điểm riêng của nó.