harness-evolve
यह क्या करती है
यह स्किल AI harness पर evolution प्रक्रिया चलाती है, उसकी policy सेटिंग्स के रूप आज़माती है और सिर्फ़ बेहतर स्कोर वाले को आगे बढ़ाती है। जो टीमें अंदाज़े के बजाय मापे नतीजों से harness ठीक करना चाहती हैं, उनके लिए यह है।
कब इस्तेमाल करें
- ✓जब harness लक्ष्य से नीचे स्कोर करे और पता न हो कि कौन सी सेटिंग दोषी है।
- ✓जब आप किसी नए क्षेत्र के लिए आज़माकर अच्छा शुरुआती सेटअप ढूँढना चाहें।
- ✓जब आप हाथ से ठीक किए harness की evolved harness से तुलना करना चाहें।
Skill का लिंक
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-evolve/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे repo के harness को उसके टेस्ट के खिलाफ evolve कीजिए और दिखाइए कि कौन सा बदलाव स्कोर सुधारता है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल इनपुट और सीमाएँ जाँचती है, योजना छापती है, और तभी evolution चलाती है जब आप पुष्टि करें। हर विकल्प sandbox में आँका जाता है, और सिर्फ़ मापे गए विजेता आगे बढ़ाए जाते हैं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Surfaces the upstream metaharness-darwin evolve CLI as a ruflo skill. The
write layer that pairs with ADR-150's read layer (score / genome /
mcp-scan / threat-model / oia-audit). Use when you have a harness whose
readiness scores are flat and you want to discover which surface mutation
moves them — without retraining the foundation model.
When to use
- A
harness-scoreresult is below target and you don't know which policy surface is responsible. - You're seeding a harness for a new vertical and want to find a good starting configuration empirically rather than hand-tuning.
- You're comparing your hand-tuned harness against an evolved baseline (treat darwin's champion as the strawman).
When NOT to use
- For continuous background optimization. Darwin Mode is human-initiated. Wire it into CI for one-shot exploration, not for autonomous self-modification.
- For ruflo itself in CI. ADR-153 §5 explicitly rejects auto-evolving ruflo — the CI gate verifies graceful degradation, not convergence.
Algorithm
Implementation: scripts/evolve.mjs.
- Validate args (
--repoexists, caps on--generations≤ 50,--children≤ 20,--concurrency≤ 8, sandbox/selection/mutator are known values). - Without
--confirm: print plan + exit 0 (mirrorsharness-mintsafety convention; defense in depth over the upstreamsafety.tschecks). - With
--confirm: runmetaharness-darwin evolve <repo> ...from the installed@metaharness/darwin(pin in_darwin.mjs; one-time~/.ruflo/darwin-cache-<pin>install only if no installed copy qualifies — never npx) via the shared_darwin.mjsasync helper. Per-generation progress is forwarded to stderr; final champion JSON is captured from stdout. - Compute timeout from
generations × children × per-variant(per-variant ≈ 60s real, ≈ 2s mock). Caller may override with--timeout-ms. - Honor upstream exit code 99 — propagate as "safety-disqualified", do not
remap. This is a designed-in tripwire (a variant tripped
inspectVariantfor secrets / shell-out / network / dynamic-eval). See ADR-153 §"Safety model". - Optional
--alert-on-no-improvement: exit 1 when champion ≤ parent.
The seven mutation surfaces
| Surface | What it owns |
|---|---|
planner |
task decomposition / step ordering |
contextBuilder |
what gets fed into the prompt |
reviewer |
self-critique / output verification |
retryPolicy |
when + how to retry on failure |
toolPolicy |
which tools the agent may use, under which conditions |
memoryPolicy |
what to persist, recall, forget |
scorePolicy |
how the agent grades its own output |
One mutation per variant. Multi-surface mutations are not allowed (causal attribution stays clean).
Output
Reports land under <repo>/.metaharness/:
.metaharness/
archive.json # full lineage tree (sampling next gen draws from this)
lineage.json # parent→child edges only
variants/<id>/ # per-variant code (kept for audit)
runs/<id>/ # per-variant sandbox test output
reports/winner.json # final champion + score delta vs parent
Skill stdout = JSON {success, data: {champion, plan, durationMs, improved}}
(plus data.diagnosis when --diagnose is passed — see below).
Failure diagnosis (--diagnose)
GEPA's key trick is natural-language failure diagnosis from execution traces
feeding the next mutation — not just scalar fitness. --diagnose adds a
modest slice of that: after the evolution completes, the losing / failed
variants' transcripts are run through darwin's GEPA library ops
(analyzeTranscript + classifyFailure, via the shared importGepa
resolver in scripts/_darwin.mjs) and a diagnosis section is appended to
the emitted JSON:
"diagnosis": {
"available": true,
"scope": "losing-variants",
"variants": [
{ "id": "g1_v0", "transcripts": 2,
"failureClasses": { "exploration-loop": 1, "edit-mechanics": 1 },
"dominantClass": "exploration-loop" }
],
"totals": { "exploration-loop": 1, "edit-mechanics": 1 }
}
Upstream shape caveats (verified against @metaharness/darwin@0.8.0):
metaharness-darwin evolve --jsonprints a TEXT leaderboard — the stdout carries no JSON and no transcripts. Per-variant run records live at<repo>/.metaharness/runs/<id>.json.- Those run records hold sandbox exec traces (
{taskId, exitCode, stdout, stderr}), which are NOT GEPA `{
अक्सर पूछे जाने वाले सवाल
क्या यह मेरी मंज़ूरी के बिना चलती है?
नहीं। confirm विकल्प के बिना स्किल सिर्फ़ योजना छापती है और कुछ नहीं बदलती।
कौन सी सीमाएँ तय हैं?
स्रोत पीढ़ियाँ 50, बच्चे 20 और एक साथ चलने वाले काम 8 तक सीमित करता है।
क्या यह Ruflo को खुद बदलने के लिए है?
नहीं। नोट्स कहते हैं कि Ruflo का CI गेट graceful degradation जाँचता है, अपने-आप खुद बदलाव नहीं।
जानकारी
लेखक का मूल विवरण
Run `@metaharness/darwin evolve {repo}`: mutate a harness's seven policy surfaces, sandbox-score each variant and promote only measured wins. Use when evolving a harness against its tests or a bench suite. Degrades gracefully without darwin (ADR-150/153).
repo: ruvnet/ruflo
लोकप्रियता
- GitHub स्टार
- 81k
- रैंकिंग में स्थान
- #1647
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
agent-adaptive-coordinator
81kआपके एजेंट को काम बदलने पर AI एजेंटों के समूह को बाँटने और फिर से संतुलित करने में मदद करती है, और काम के हिसाब से लेआउट चुनती है।
agent-agent
81kआपके एजेंट को बड़े लक्ष्य को क्रमबद्ध कार्यों की योजना में बदलना सिखाती है, और स्थिति बदलने पर योजना फिर से बनाना भी।
agent-agentic-payments
81kAI खरीदारी के लिए खर्च के आदेश मैनेज करने में मदद करती है, जिसमें खर्च की सीमा, समय अवधि, व्यापारी नियम और signed मंज़ूरियाँ शामिल हैं।
agent-analyze-code-quality
81kआपके एजेंट को कोड की गुणवत्ता जाँचने में मदद करती है, बिना फ़ाइलें बदले code smells, technical debt और refactoring के सुझाव खोजकर।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।