Inspect and audit GEPA genomes via the `@metaharness/darwin/gepa` library entry (darwin 0.8.0) — load/validate a genome (default is the shipped cand-6 promotion
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-harness-gepa-d503f8dc2b96 ,按照其中的说明把「harness-gepa」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 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.
--op render shows the actual system
prompt a genome compiles to — read THAT, not the raw JSON, before
wiring a genome into a harness.--op genome loads + validates the shipped
cand-6 genome (first holdout-confirmed cheap-tier promotion; provenance
ships in the package) or any genome file you point at.--op validate --alert-on-invalid exits 1
on structural errors.--op analyze --transcript run.json classifies
failure modes (GEPA's failure-class taxonomy) from a transcript array.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:
import { gepaOptimize, loadCand6Genome } from '@metaharness/darwin/gepa'harness-evolve (darwin CLI evolve),
which pairs GEPA with its own sandbox evaluators.Implementation: scripts/gepa.mjs.
import('@metaharness/darwin/gepa'); on MODULE_NOT_FOUND fall back to a
one-time npm install --prefix ~/.ruflo/darwin-cache-<pin> and import
the cached dist/gepa/index.js (versioned dir → pin bumps invalidate).--op:
genome → loadGenome(fs, path) or loadCand6Genome() + 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)--alert-on-invalid, 2 on bad input).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
0 — op completed (or degraded — darwin not installable)1 — --alert-on-invalid and validation found errors2 — config error (unknown op, missing/broken input file)