मुख्य सामग्री पर जाएँ
Skillpedia
एजेंट280k · #129

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 पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/affaan-m/ECC/blob/main/pi/core/skills/agent-harness-construction/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

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:

  1. Action space quality
  2. Observation quality
  3. Recovery quality
  4. Context budget quality

Action Space Design

  1. Use stable, explicit tool names.
  2. Keep inputs schema-first and narrow.
  3. Return deterministic output shapes.
  4. 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|error
  • summary: one-line result
  • next_actions: actionable follow-ups
  • artifacts: file paths / IDs

Error Recovery Contract

For every error path, include:

  • root cause hint
  • safe retry instruction
  • explicit stop condition

Context Budgeting

  1. Keep system prompt minimal and invariant.
  2. Move large guidance into skills loaded on demand.
  3. Prefer references to files over inlining long documents.
  4. 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

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

accessibility

280k

यह आपके एजेंट को ऐसे इंटरफ़ेस बनाने में मदद करता है जिन्हें हर कोई इस्तेमाल कर सके। यह पक्का करता है कि वेबसाइट और ऐप दिव्यांग लोगों के लिए भी अच्छे से काम करें, जैसे नेत्रहीन या जिन्हें चलने-फिरने में दिक्कत होती है।

डिज़ाइनइंटरफ़ेस (UI/UX)

agent-architecture-audit

280k

यह आपके एजेंट को जाँचने देता है कि सब कुछ सही से चल रहा है। यह AI सिस्टम में समस्याएँ ढूँढकर ठीक करता है, ताकि वे उम्मीद के मुताबिक काम करें।

AI और एजेंटएजेंट

agent-eval

280k

यह आपके एजेंट को अलग-अलग AI coding tools की तुलना करने में मदद करता है। यह मापता है कि किसी खास काम के लिए कौन सा टूल ज़्यादा तेज़, सस्ता और भरोसेमंद है।

AI और एजेंटएजेंट

agent-introspection-debugging

280k

यह आपके एजेंट को गड़बड़ होने पर खुद को ठीक करने में मदद करता है। यह बस दोबारा कोशिश करने के बजाय जाँचता है कि failure क्यों हुआ और उसका हल कैसे निकले।

AI और एजेंटएजेंट

मिलती-जुलती skills