agent-harness-construction
यह क्या करती है
यह टूल व्यवस्थित करने और सुधारने में मदद करता है कि AI agent अपने tools का इस्तेमाल कैसे करता है और काम कैसे पूरे करता है। यह पक्का करता है कि agent साफ़ समझे कि उसे क्या करना है, कैसे करना है और कुछ गलत हो जाए तो क्या करना है, ताकि उसके सफल होने की संभावना बढ़े।
कब इस्तेमाल करें
- ✓जब AI agent के लिए इस्तेमाल होने वाले tools तय या ठीक कर रहे हों।
- ✓जब चाहते हों कि AI agent अपने कामों में ज़्यादा भरोसेमंद और कुशल हो।
- ✓अगर AI agent को काम पूरे करने या गलतियों से उबरने में दिक्कत हो रही हो।
Skill का लिंक
https://github.com/affaan-m/ECC/blob/main/pi/core/skills/agent-harness-construction/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मैं अपने AI agent के tools को कैसे बेहतर तरीके से व्यवस्थित करूँ ताकि वह भटके नहीं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह agent के tools के नाम रखने, उसे कैसी जानकारी मिलनी चाहिए और वापस क्या देना चाहिए, इसके लिए साफ़ नियम तय करके काम करता है। इसमें यह भी बताया जाता है कि errors कैसे संभालने हैं और जवाबों में क्या शामिल करना है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Agent Harness Construction
Use this skill when you are improving how an agent plans, calls tools, recovers from errors, and converges on completion.
Core Model
Agent output quality is constrained by:
- Action space quality
- Observation quality
- Recovery quality
- Context budget quality
Action Space Design
- Use stable, explicit tool names.
- Keep inputs schema-first and narrow.
- Return deterministic output shapes.
- Avoid catch-all tools unless isolation is impossible.
Granularity Rules
- Use micro-tools for high-risk operations (deploy, migration, permissions).
- Use medium tools for common edit/read/search loops.
- Use macro-tools only when round-trip overhead is the dominant cost.
Observation Design
Every tool response should include:
status: success|warning|errorsummary: one-line resultnext_actions: actionable follow-upsartifacts: file paths / IDs
Error Recovery Contract
For every error path, include:
- root cause hint
- safe retry instruction
- explicit stop condition
Context Budgeting
- Keep system prompt minimal and invariant.
- Move large guidance into skills loaded on demand.
- Prefer references to files over inlining long documents.
- Compact at phase boundaries, not arbitrary token thresholds.
Architecture Pattern Guidance
- ReAct: best for exploratory tasks with uncertain path.
- Function-calling: best for structured deterministic flows.
- Hybrid (recommended): ReAct planning + typed tool execution.
Benchmarking
Track:
- completion rate
- retries per task
- pass@1 and pass@3
- cost per successful task
Anti-Patterns
- Too many tools with overlapping semantics.
- Opaque tool output with no recovery hints.
- Error-only output without next steps.
- Context overloading with irrelevant references.
अक्सर पूछे जाने वाले सवाल
'micro-tools', 'medium tools' और 'macro-tools' क्या हैं?
ये tools के अलग-अलग आकार हैं। Micro-tools छोटे लेकिन ज़रूरी कामों के लिए, medium tools आम कामों के लिए और macro-tools बड़े, समय लेने वाले कामों के लिए होते हैं।
'Action Space Quality' का क्या मतलब है?
इसका मतलब है AI agent के लिए उपलब्ध tools की स्पष्टता और व्यवस्था। अच्छा 'Action Space' वह है जिसमें agent को ठीक-ठीक पता हो कि कौन सा tool इस्तेमाल करना है और कैसे।
'Error Recovery' क्यों ज़रूरी है?
यह इसलिए ज़रूरी है ताकि AI agent असफलताओं से उबर सके। किसी error की असली वजह और दोबारा कोशिश कैसे करनी है, यह पता हो तो agent हार नहीं मानता और काम पूरा कर लेता है।
जानकारी
लेखक का मूल विवरण
Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. Use when defining or revising an agent's tool set, action space, or observation format.
repo: affaan-m/ECC
लोकप्रियता
- GitHub स्टार
- 280k
- रैंकिंग में स्थान
- #129
- लाइसेंस
- MIT
- अपडेट की गई
- 15/10/2026
कमेंट
- …
इस repository की और skills
accessibility
280kयह आपके एजेंट को ऐसे इंटरफ़ेस बनाने में मदद करता है जिन्हें हर कोई इस्तेमाल कर सके। यह पक्का करता है कि वेबसाइट और ऐप दिव्यांग लोगों के लिए भी अच्छे से काम करें, जैसे नेत्रहीन या जिन्हें चलने-फिरने में दिक्कत होती है।
agent-architecture-audit
280kयह आपके एजेंट को जाँचने देता है कि सब कुछ सही से चल रहा है। यह AI सिस्टम में समस्याएँ ढूँढकर ठीक करता है, ताकि वे उम्मीद के मुताबिक काम करें।
agent-eval
280kयह आपके एजेंट को अलग-अलग AI coding tools की तुलना करने में मदद करता है। यह मापता है कि किसी खास काम के लिए कौन सा टूल ज़्यादा तेज़, सस्ता और भरोसेमंद है।
agent-introspection-debugging
280kयह आपके एजेंट को गड़बड़ होने पर खुद को ठीक करने में मदद करता है। यह बस दोबारा कोशिश करने के बजाय जाँचता है कि failure क्यों हुआ और उसका हल कैसे निकले।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।