Skip to content
Skillpedia
Prompts & LLMs81k Β· #1649

harness-gepa

What it does

This skill works with GEPA genomes, which are saved prompt policies used by AI harnesses. It is for people who want to inspect, check or read the prompts a harness actually uses.

When to use it

  • βœ“When you want to see the actual system prompt a saved genome produces.
  • βœ“When you want to check that a genome file is valid before using it.
  • βœ“When a run failed and you want its failure types classified.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-gepa/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œShow me the actual system prompt this genome file produces so I can read it.”

5 new skills a week. 1 minute to read.

How it works

The skill loads the GEPA library and runs one of a few actions: render the prompt, check a genome's structure, or classify failure types from a transcript. It does not run the full optimisation loop.

Technical content (original SKILL.md)

Original text by the author, straight from 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 render shows 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 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.
  • CI gate on genome edits: --op validate --alert-on-invalid exits 1 on structural errors.
  • Debugging a bad run: --op analyze --transcript run.json classifies 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:

  1. Library consumers: import { gepaOptimize, loadCand6Genome } from '@metaharness/darwin/gepa'
  2. Sandbox-scored evolution: harness-evolve (darwin CLI evolve), which pairs GEPA with its own sandbox evaluators.

Algorithm

Implementation: scripts/gepa.mjs.

  1. 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).
  2. Dispatch --op:
    • genome β†’ loadGenome(fs, path) or loadCand6Genome() + validateGenome
    • validate β†’ validateGenome(rawJson) (raw parse so broken files reach the validator instead of throwing in the loader)
    • render β†’ buildSystemFromGenome(genome, ext?, glob?)
    • analyze β†’ analyzeTranscript(entries)
  3. 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-invalid and validation found errors
  • 2 β€” config error (unknown op, missing/broken input file)
FAQ

Why render the prompt instead of reading the raw file?

The source advises reading the compiled prompt before wiring a genome into a harness.

Can it fail a check automatically?

Yes. The validate action can exit with an error on structural problems when you set the alert option.

Does it improve prompts itself?

No. Optimisation needs a separate evaluator, so the skill points to other paths for evolution.

Details

Original description by the author

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

Popularity

GitHub stars
81k
Ranking position
#1649
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills