harness-engineering
ما الذي تفعله
تشرح هذه المهارة كيفية وضع الحدود حول وكيل ذكاء اصطناعي يعمل بشكل مستقل، مثل ما يُسمح له بتغييره، وكيف يسجّل تقدمه، ومتى يجب أن يوافق شخص. وهي للفرق التي تشغّل حلقات وكلاء مستقلة.
متى تستخدمها
- ✓عندما تريد أن يُجري وكيل ذكاء اصطناعي أبحاثًا أو تجارب لفترة طويلة دون توجيه مستمر.
- ✓عندما تحتاج إلى منع الوكيل من تغيير قواعد التقييم أو المعايير الخاصة به.
- ✓عندما تُعدّ وكيلًا يُحضّر طلبات سحب ويحتاج إلى خطوات موافقة.
رابط المهارة
https://github.com/muratcankoylan/Agent-Skills-for-Context-Engineering/blob/main/skills/harness-engineering/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“صمّم إعدادًا آمنًا لوكيل يشغّل تجارب طوال الليل، مع فحص تقييم ثابت وخطوة موافقة بشرية قبل أي دمج.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تصف المهارة الأجزاء المثبتة والأجزاء القابلة للتعديل، وسجلات دائمة، وفحوص الجدة، ونقاط التراجع والموافقة، حتى تستمر الحلقة دون أن تنحرف عن مسارها.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Harness Engineering
Harness engineering designs the control system around an agent: what it may edit, how it receives feedback, where it writes state, how failures recover, and who can approve irreversible actions. The harness is the difference between a helpful agent session and an autonomous loop that can run for days without corrupting its objective.
When to Activate
Activate this skill when:
- Building autonomous research or experimentation loops
- Designing an agent environment with locked metrics and editable code or content
- Creating PR-producing or background agents
- Evaluating whether an agent can safely run without frequent human prompts
- Adding novelty, ablation, pruning, rollback, or durable logging to an agent workflow
- Preventing agents from gaming benchmarks, weakening rubrics, or losing state across compaction
Do not activate this skill for adjacent work owned by other skills:
- General quality gates, regression suites, or outcome metrics without autonomous control surfaces:
evaluation. - Tool schemas, response formats, and recovery errors for harness tools:
tool-design. - Project-level task-model fit, pipeline shape, and cost planning:
project-development. - Remote sandbox, warm-pool, and hosted session infrastructure:
hosted-agents.
Core Concepts
Harness Boundary
Separate the agent from the environment it operates inside. The agent proposes actions; the harness defines allowed surfaces, feedback, persistence, and promotion rules.
Use four surface classes:
| Surface | Examples | Rule |
|---|---|---|
| Locked | Eval metric, rubric, validation script, merge policy | Agent may read and propose changes, but cannot score itself with modified rules |
| Editable | Skill draft, experiment file, prompt, config under test | Agent may mutate during the loop |
| Append-only | Results log, research thread, rejected ideas | Agent may append, not rewrite |
| Human-controlled | Merge, production deploy, credentials, destructive operations | Requires explicit human approval |
Tight Feedback Loops
Autonomy works when feedback is fast, unambiguous, and hard to game. Karpathy's autoresearch is the minimal pattern: one editable file, one locked evaluation file, fixed wall-clock budget, one scalar metric, git rollback, and a durable results log. The lesson is not that every harness needs one metric; it is that ambiguous feedback creates ambiguous autonomy.
For open-ended research-to-skill work, replace the scalar metric with locked rubrics, deterministic structure checks, source traceability, and human review thresholds.
Durable State
Long-running agents must externalize state. Store plans, source queues, results, failures, and handoffs in files so future agents can resume without relying on chat history. Prime Intellect's autonomous nanoGPT work showed the value of durable scratchpads and THREAD.md-style logs for recovery, monitoring, and audit.
Use append-only logs for:
- What was tried
- What improved or failed
- Why a candidate was kept, discarded, or routed to review
- Which upstream sources were checked
- What the next agent should do
Search Discipline
Agents tend to exploit the nearest surface, stack complexity, and under-run pruning. Add explicit search rules:
- Refresh upstream sources on a schedule.
- Require novelty checks before spending large budgets.
- Preserve rejected attempts to avoid rediscovery.
- Run leave-one-out pruning when a stack has multiple additions.
- Reward simplification when quality is equal.
- Use separate verification before promotion.
Mechanism Registry
For research-to-skill systems, track accepted mechanisms separately from prose. A mechanism record should include a stable mechanism_id, owning_skill, status, activation scenario, behavior change, evidence, and failure modes. Novelty gates should compare against this registry before using broader corpus overlap, because keyword overlap catches stale phrasing while mechanism comparison catches real duplication.
Governance
Autonomous agents may prepare PRs, but governance must be explicit. They can draft changes, run checks, and write PR summaries. They should not merge, deploy, or push without human approval unless the user has explicitly granted that permission for the specific action.
Detailed Topics
Autoresearch-Style Loop
Use this pattern when optimizing an artifact against a stable evaluator:
read locked context -> choose hypot
الأسئلة الشائعة
ما السطح المثبت؟
هو جزء من الإعداد، مثل طريقة التقييم، لا يُسمح للوكيل بتغييره.
لماذا نحتفظ بالسجلات؟
تتيح السجلات الدائمة للوكيل والأشخاص رؤية ما جُرّب، مما يساعد على التعافي بعد الإخفاقات.
متى يتدخل شخص؟
تحدد المهارة نقاط موافقة بشرية قبل الإجراءات التي لا يمكن التراجع عنها، مثل دمج التغييرات.
التفاصيل
الوصف الأصلي من المؤلف
This skill should be used when designing autonomous agent harnesses: research loops, evaluation scaffolds, locked and editable surfaces, durable logs, novelty gates, pruning, rollback, PR preparation, and human approval boundaries.
الشعبية
- نجوم GitHub
- 18k
- الترتيب
- #10643
- الترخيص
- MIT
- آخر تحديث
- 11/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
context-engineering-collection
18kيساعد وكيلك على إدارة ما يدخل نافذة سياق نموذج الذكاء الاصطناعي، من الذاكرة والأدوات إلى إعدادات الوكلاء المتعددين والتقييم.
advanced-evaluation
18kيعلّم وكيلك كيف يحكم على إجابات الذكاء الاصطناعي باستخدام ذكاء اصطناعي آخر، مع التسجيل والمقارنة جنبًا إلى جنب وفحص التحيز.
bdi-mental-states
18kيعلّم وكيلك نمذجة المعتقدات والأهداف والخطط بنهج BDI، حتى يمكن تتبع قراراته وشرحها.
context-compression
18kيساعد وكيلك على اختصار جلسات الذكاء الاصطناعي الطويلة إلى ملخصات تحفظ القرارات والملفات والمخاطر والخطوات التالية.
مهارات مشابهة
add-model-provider
394kتتيح لوكيلك ربط مزوّد نموذج ذكاء اصطناعي جديد بـ OpenClaw باستخدام أوامر إعداد آمنة، وإبقاء مفاتيح API خارج النص العادي، وإجراء اختبار حي.
acp-router
394kيساعد وكيلك على إرسال مهمة إلى مساعد برمجة مثل Claude Code أو Cursor عبر OpenClaw، فيعمل العمل داخل تلك الأداة.
browser-automation
394kتعلّم وكيلك التحكم في صفحات الويب خطوة بخطوة، بما في ذلك تسجيل الدخول والتبويبات والتعافي عندما تتوقف الصفحة عن الاستجابة.