harness-gepa
它能做什么
这项技能处理 GEPA 基因组,即 AI 运行框架所使用的已保存提示词策略。适合想要检查、验证或阅读运行框架实际使用的提示词的人。
适用场景
- ✓当你想查看已保存的基因组实际生成的系统提示词时。
- ✓当你想在使用基因组文件之前检查它是否有效时。
- ✓当某次运行失败,而你想对其失败类型进行分类时。
技能链接
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-gepa/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请显示这个基因组文件实际生成的系统提示词,让我可以阅读。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能加载 GEPA 库,并执行几种操作之一:渲染提示词、检查基因组的结构,或从运行记录中对失败类型进行分类。它不会运行完整的优化循环。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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)
常见问题
为什么要渲染提示词,而不直接读取原始文件?
来源建议,在把基因组接入运行框架之前,先阅读编译后的提示词。
它能自动让检查失败吗?
可以。验证操作在你设置了警报选项时,遇到结构问题会以错误退出。
它会自行改进提示词吗?
不会。优化需要单独的评估器,因此该技能会指向其他演化途径。
详情
作者的原始描述
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
热度
- GitHub 星标
- 81k
- 排名
- #1649
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-adaptive-coordinator
81k帮你的智能体在工作量变化时拆分和重新平衡一组 AI 智能体,并选择适合任务的分工方式。
agent-agent
81k教你的智能体把一个大目标拆成有顺序的行动计划,并在情况变化时重新规划。
agent-agentic-payments
81k帮你的智能体管理 AI 购物的消费授权,包括消费上限、时间窗口、商户规则和签名审批。
agent-analyze-code-quality
81k帮你的智能体检查代码质量,找出代码异味、技术债务和重构建议,且不改动文件。