harness-learn
What it does
This skill runs a learning process that tunes a harness's policy against a scored set of software tasks. It is for teams who want measured improvement and are ready to set up a local code checkout.
When to use it
- βWhen a harness's prompt underperforms on one kind of task and you want measured improvement.
- βWhen you want to price a learning run before committing to spend.
- βWhen a learning run has promoted a new setup and you want to inspect it.
Skill link
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-learn/SKILL.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βPrice a learning run on my harness first, and only run it for real if I confirm.β
5 new skills a week. 1 minute to read.
How it works
The skill checks that a metaharness checkout exists, then runs the learning script. By default it is a dry run that resolves the task list and reports cost without model calls. A real run needs an explicit option.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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 renderto 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.
- Validate
--repoexists when given; export it as$METAHARNESS_REPO. - Invoke the pinned
metaharnessbinary (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). - Default timeouts: 120s dry-run, 600s with
--runβ real runs on larger slices need an explicit--timeout-msmatched to slice size Γ model cost. - Detect the checkout-required message β structured payload, exit 0.
- 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-failand the learn run reported failure2β config error (bad--repopath)
FAQ
Does a dry run cost money?
The default dry run makes no model calls, so it does not spend on them.
What do I need before running it?
A local clone of the metaharness project. Without one, the skill reports that a checkout is required.
Is the managed service available here?
No. The source notes that the managed-service path is not part of this skill yet.
Details
Original description by the author
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
Popularity
- GitHub stars
- 81k
- Ranking position
- #1650
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
agent-adaptive-coordinator
81kHelps your agent split and rebalance a group of AI agents as the workload changes, choosing a layout that fits the task.
agent-agent
81kTeaches your agent to turn a big goal into an ordered plan of actions, and to replan when conditions change.
agent-agentic-payments
81kHelps your agent manage spending mandates for AI shopping, with spend caps, time windows, merchant rules and signed approvals.
agent-analyze-code-quality
81kHelps your agent review code for quality, finding code smells, technical debt and refactoring ideas without changing the files.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.