HyperAIHyperAI

Command Palette

Search for a command to run...

الميل الأخير إلى العالم الحقيقي: الأوليات الأصلية للوكيل بوصفها لبنات بناء قابلة لإعادة الاستخدام لحل المهام الواقعية

الملخص

كيف يمكن للوكيل أن ينجز مهمة واقعية من البداية إلى النهاية؟ فعلى الرغم من التقدم الأخير في وكلاء النماذج اللغوية الكبيرة، لا تزال النماذج الرائدة عند اقترانها بأطر التشغيل المبنية لها مقصّرة في المعايير العامة للمهام الواقعية: ففي Terminal-Bench 4.0 عند أقصى جهد استدلالي، يحل GPT-5.6 Sol مع Codex نسبة 37.3% من المهام، ويحل Claude Opus 5 مع Claude Code نسبة 51.8%. تفشل هذه المهام في الخطوة الفاصلة بين بلوغ المورد وتطبيقه، وهي ما نسميه الميل الأخير إلى العالم الحقيقي: إذ يجب تأريض وسائط استدعاء الأداة، وغالبًا ما يكون ذلك في مخرجات استدعاء سابق، ويجب أن تصل كل نتيجة إلى الخطوات التي تستهلكها، ويجب تتبع الفشل وصولًا إلى العمل الذي ينطوي عليه. تضع المقاربات الحالية المورد في المتناول لكنها تترك كفاءة تطبيقه للمستدعي، ومن ثم تعيد كل بيئة تشغيل بناء تلك الكفاءة. ولمعالجة هذه الفجوة، نقدم الأوليات الأصلية للوكيل، وهي وحدات قابلة لإعادة الاستخدام تزود المورد بنموذج لغوي كبير مقيم يطبقه في السياق ويتواصل مع أوليات أخرى، كما نقدم HEELO (هندسة أطر التشغيل حول أوليات أصلية للوكيل متطورة لمعالجة الميل الأخير إلى مهام العالم الحقيقي)، وهو إطار عمل لهندسة أطر التشغيل يبني بيئة تشغيل كل مهمة من مكتبة من هذه الأوليات. يؤلف HEELO الأوليات التي تحتاجها المهمة في رسم بياني خاص بالمهمة، ويتحقق من النتيجة في ضوء أدلة من بيئة المهمة، ويراجع الأوليات التي ينطوي عليها الفشل، ويدخل أوليات جديدة أو محسنة إلى المكتبة بعد التحقق منها. تثبت النتائج الواردة في دراساتنا المرافقة أن التفعيل يبقى محدودًا بطلب المهمة مهما كبر حجم المكتبة، وتحدد متى يتفوق التركيب الخاص بكل مهمة على أفضل بيئة تشغيل ثابتة. غير أن كل مجال من مجالات المهام يفرض متطلباته الخاصة على الميل الأخير، ولذلك نفعّل HEELO بثماني عائلات من الأوليات، كل منها مبني ليكون حلًا لنوع واحد من المهام الواقعية، ونقيمها على أكثر من عشرين معيارًا. وعلى البنية الأساسية لكل مقارن، ترفع أوليات التطوير (Dev-Primitives) نسبة حل Terminal-Bench 4.0 من 37.3% تحت Codex إلى 55.5%. وبالاستناد إلى بيئة التشغيل الأولية mini-SWE-agent، ترفع أوليات بيئة التشغيل (Harness Primitives) المؤلفة لكل مهمة مؤشر Pass@1 من 73.0% إلى 80.5% على 100 مهمة من مهام SWE-bench Verified، ومن 60.0% إلى 72.2% على 45 مهمة من مهام Terminal-Bench 2.0، متفوقة على نسبتي Codex البالغتين 79.0% و56.7%. ترفع أوليات الأدوات (Tool Primitives) معدل النجاح في ToolBench من 55.8% إلى 75.1%، وترفع أوليات الشيفرة (Code Primitives) مؤشر تسليم المستودعات من 0.3180 إلى 0.5134، وترفع أوليات الوكيل (Agent Primitives) متوسط الدقة عبر ثمانية معايير للرياضيات والشيفرة والإجابة عن الأسئلة من 58.8% لوكيل واحد إلى 75.3%، وترفع أوليات التنقل (Navigation Primitives) دقة GAIA-Text-103 من 45.6% إلى 58.3%. وفي البرهنة الشكلية على النظريات، تضع أوليات الرياضيات (Math Primitives) طريقة مرجعية معلَّمة ضمن أفضل خمس نتائج في 95.0% من مسائل Putnam المحتجزة، مقابل 84.2% لأقوى معيد ترتيب. وتُظهر تحليلات إضافية أن الفائدة تنبع من تطبيق كل مورد داخل أوليته، وأن المهمة هي التي تحدد أي الأوليات تُستدعى. وبعيدًا عن هذه المعايير، بنينا heelo.dev، وهي منصة من الأوليات الأصلية للوكيل لأفعال واقعية. وعلى مهامها الواقعية البالغ عددها 46، يكمل كل من Claude Opus 5.5 مع Claude Code وGPT-6.1 Sol مع Codex 9 مهام بمفرده، وعند اتصالهما بـ HEELO عبر خادم MCP الخاص بنا يكملان 39 و35 على الترتيب، مع وقت أقل بمقدار 1.9× و2.3× وتكلفة أقل بمقدار 1.55× لكل مهمة مكتملة. يوفر HEELO إطارًا موحدًا لبناء وكلاء يعالجون المهام الواقعية من البداية إلى النهاية.

One-sentence Summary

Researchers at the University of Illinois Urbana-Champaign, Georgia Institute of Technology, and heelo.dev introduce agent-native primitives and the HEELO framework, reusable LLM-equipped units composed into task-specific graphs with evidence-based verification and library revision, improving real-world task benchmarks including Terminal-Bench 4.0, SWE-bench Verified, ToolBench, and heelo.dev tasks.

Key Contributions

  • Introduces agent-native primitives, reusable units that equip a resource with a resident LLM so the resource can be applied in context and communicate with other primitives, along with the HEELO framework, which composes primitives into task-specific graphs, verifies results against environment evidence, revises implicated primitives, and publishes validated primitives.
  • Instantiates HEELO with eight primitive families and evaluates them on more than twenty benchmarks; for example, Dev-Primitives raise Terminal-Bench 4.0 resolution from 37.3% under Codex to 55.5%, Tool Primitives raise ToolBench pass rate from 55.8% to 75.1%, and Agent Primitives raise mean accuracy over eight math, code, and QA benchmarks from 58.8% to 75.3%.
  • Demonstrates real-world deployment via heelo.dev and an MCP server on 46 real-world tasks, where Claude Opus 5.5 with Claude Code and GPT-6.1 Sol with Codex improve from 9 completed tasks each alone to 39 and 35 with HEELO, with 1.9× and 2.3× less time and 1.55× lower cost per completed task. Companion analyses show activation is bounded by task demand and benefits stem from applying resources inside primitives.

Introduction

Large language model agents aim to complete real-world tasks end to end by acting through tools, code repositories, proofs, documents, and other agents. Although harnesses such as Codex and Claude Code make these resources reachable, frontier agents still fall short on practical benchmarks, with failures often occurring at the last mile where a resource must be applied in context, composed with other steps, and revised from observed evidence. Prior work tends to keep resources passive while leaving the competence to apply them with a central caller or a monolithic agent, so that competence is rebuilt per task and becomes harder to verify as libraries grow. The authors address this by introducing agent-native primitives, reusable resources that carry a resident LLM to apply the resource and communicate with other primitives, and by proposing HEELO, a harness engineering framework that composes a task-specific graph from an evolving primitive library, revises only the primitives implicated by task evidence, and admits new or improved primitives through a separate validation path.

Method

The authors leverage a library of reusable, agent-native primitives to construct task-specific harnesses for real-world problems. A real-world task qqq arrives with a context cqc_qcq​, encompassing its inputs, environment, constraints, and acceptance criteria. An agent acts on the task through a harness HHH, which serves as the control program deciding which operations run, in what order, and when the execution stops. Rather than relying on a fixed harness for every task, the framework builds a task-specific harness from a library L\mathcal{L}L of reusable units, aiming to maximize the expected score R(q,H)=Eτ[Rq(τ)∣H]R(q, H) = \mathbb{E}_{\tau}[R_q(\tau) \mid H]R(q,H)=Eτ​[Rq​(τ)∣H].

The core building blocks of this system are agent-native primitives. An agent-native primitive PiP_iPi​ equips a reusable resource aia_iai​ (such as a tool schema, code component, or proof method) with a resident LLM M\mathcal{M}M and exposes an interface did_idi​. When invoked with a natural-language request xix_ixi​ in a context cic_ici​, the resident LLM applies the resource and returns a result rir_iri​ along with messages mim_imi​ directed to other primitives:

(ri,mi)=Pi(xi;ci)=M([ai;ci;xi])(r_i, m_i) = P_i(x_i; c_i) = \mathcal{M}([a_i; c_i; x_i])(ri​,mi​)=Pi​(xi​;ci​)=M([ai​;ci​;xi​])

This design allows the primitive to assess its own relevance before selection, judging whether it applies to a request and proposing how it would be used. It also performs carried validation, applying the resource's own validation mechanisms, such as tests or schemas, before returning a result.

The framework realizes the harness construction and execution through three primary mechanisms. First, Library Selection and Composition (COMPOSE) builds the harness. Since a library typically holds more primitives than a single task requires, COMPOSE finds candidates through their interfaces, reads their relevance assessments, and constructs a task-specific plan Πt=COMPOSE(q,Ct;L)\Pi_t = \text{COMPOSE}(q, \mathcal{C}_t; \mathcal{L})Πt​=COMPOSE(q,Ct​;L). This plan defines an activation set At\mathcal{A}_tAt​ and a dependency graph Et\mathcal{E}_tEt​ dictating how results and messages flow between the activated primitives.

Second, Evidence-Based Execution and Improvement runs and revises the plan. In each round ttt, the activated primitives act, and their results are integrated into the task state StS_tSt​. The system executes the plan in the task environment to gather evidence oto_tot​, such as build status or test outcomes. A verification step yields a verdict vt∈{PASS,FAIL}v_t \in \{\text{PASS}, \text{FAIL}\}vt​∈{PASS,FAIL} and structured feedback ϕt\phi_tϕt​, which names observed failures, implicates specific primitives, and provides revision guidance. If the task fails, the context is enriched with this feedback, and COMPOSE revises the plan, changing only the implicated work:

Ct+1=Ct∪{ϕt},Πt+1=COMPOSE(q,Ct+1;L,Πt,ϕt)\mathcal{C}_{t+1} = \mathcal{C}_t \cup \{\phi_t\}, \quad \Pi_{t+1} = \text{COMPOSE}(q, \mathcal{C}_{t+1}; \mathcal{L}, \Pi_t, \phi_t)Ct+1​=Ct​∪{ϕt​},Πt+1​=COMPOSE(q,Ct+1​;L,Πt​,ϕt​)

This loop continues until the task passes or a revision budget is exhausted.

Third, Validation and Publishing improves the library between tasks. New or improved primitives, mined from artifacts or harvested from verified runs, enter the library only after passing a separate validation path:

Lk+1=Lk⊕{P~∈P~k:VALIDATE(P~)=PASS}\mathcal{L}_{k+1} = \mathcal{L}_k \oplus \{\tilde{P} \in \tilde{\mathcal{P}}_k: \text{VALIDATE}(\tilde{P}) = \text{PASS}\}Lk+1​=Lk​⊕{P~∈P~k​:VALIDATE(P~)=PASS}

The method is instantiated across eight primitive families, including Tool, Code, Math, Knowledge, Agent, Dev, Navigation, and Harness primitives, each tailored to specific real-world task domains. To evaluate this approach in live environments, the authors built the heelo.dev platform, which exposes third-party actions as agent-native primitives and orchestrates them through planning, routing, execution, and verification loops for tasks like content distribution, customer acquisition, and personal assistance.

Experiment

Across eight primitive families and a real-world platform, the experiments evaluate HEELO against task-specific baselines and ablations, showing consistent gains from applying resources inside their owning primitives, preserving structured communication channels, and activating or revising primitives according to task needs. The results indicate that the benefit comes from the primitives themselves, their carried fields, validation and diagnosis mechanisms, and task-conditioned composition rather than from extra inference or mere retrieval access. In the real-world heelo.dev evaluation, connecting Claude Code and Codex to HEELO enables account-based and service-based tasks that the agents cannot complete alone, while reducing time and cost per completed task.

On the six ToolBench splits, HEART with Qwen3-8B achieves the best average pass and win rates among reported systems, outperforming both commercial and fine-tuned references. Its lead is largest on the hardest split where multi-tool instructions require cross-API dependencies. Vicuna and Alpaca fail across all splits, whereas ToolLLaMA improves with DFSDT and retriever augmentation but remains below HEART. HEART leads all reported reference systems on average pass and win rates across the six ToolBench splits. The largest performance gap appears on the hardest split with multi-tool instructions and cross-API dependencies, where HEART posts its strongest win rate. ToolLLaMA with DFSDT and retriever is the strongest fine-tuned reference but still trails HEART on both average pass and win rate. Vicuna and Alpaca score zero pass and win rates on every split, highlighting the difficulty of the benchmark.

On NESTFUL nested call sequences, HEART leads reference models across function and parameter F1, partial and full sequence accuracy, and win rate under both one-shot and three-shot settings. Its full-sequence accuracy is higher than the strongest baseline, GPT-5.4, in both settings. Smaller fine-tuned function-calling models such as xLAM variants and Hammer2.0 remain much weaker on nested sequences, often near zero full-sequence accuracy. HEART is best on all five NESTFUL metrics in both one-shot and three-shot demonstrations. HEART's full-sequence accuracy reaches 0.44 one-shot and 0.47 three-shot, above GPT-5.4's 0.40 and 0.42. HEART's win rate is 0.75 one-shot and 0.79 three-shot, compared with 0.66 and 0.68 for GPT-5.4. Fine-tuned xLAM models show near zero full-sequence accuracy in one-shot, underscoring the difficulty of nested tool calls.

Across the reported reference models, success rates are highest in retail and lowest in telecom, and all models decline as the pass criterion requires more independent successful trials. GPT-4.1 leads in retail, while GPT-o4-mini is more competitive in airline and telecom and operates with much lower token use, cost, and latency. Pass rates fall from Pass^1 to Pass^4 in every reported model and domain, showing that stricter repeated-trial success requirements reduce reliability. GPT-o4-mini undercuts GPT-4.1 on tokens, cost, and latency while posting the strongest reported telecom pass rates, though GPT-4.1 remains strongest in retail.

The full HEART configuration performs best on both ToolBench and NESTFUL. Removing any single harness mechanism lowers results, with the largest decline occurring when ToolFace and its Tool Primitives are removed. Result validation is the next most critical component, while removing request decomposition or value resolution causes smaller but still notable drops. Removing ToolFace and Tool Primitives causes the steepest drop across all metrics, reducing ToolBench pass rate to about one fifth of the full configuration and nearly eliminating NESTFUL accuracy. Removing result validation is the second most damaging ablation, with larger losses than removing request decomposition or value resolution. The full configuration leads every column, and ablation of decomposition or resolution preserves moderate performance, confirming that all components contribute but some are more essential.

On a 522-repository construction benchmark, adding execution feedback and diagnosis improves delivery scores and lowers zero-score rates relative to single-shot and retrieval-only baselines. The strongest configuration, retrieval plus adaptation, achieves the highest delivery scores on small, large, and all task sets and the lowest zero-score rate, while increasing recorded-call cost above the one-attempt baselines. Large tasks remain substantially harder than small tasks across all configurations. Single-shot and retrieval-only one-attempt runs have the lowest overall delivery scores and the highest zero-score rates, near 57-59%. Retrieval plus adaptation leads on D1, D5, and overall delivery scores and cuts the zero-score rate to 17.8%. Adding diagnosis to feedback yields the second-lowest zero-score rate among the compared configurations. Recorded-call cost rises with added stages, from under 1forone−attemptbaselinestoabout1 for one-attempt baselines to about1forone−attemptbaselinestoabout1.83 for retrieval plus adaptation. Even the best configuration scores much lower on the largest tasks than on the smallest tasks, indicating a persistent difficulty gap.

The experiments evaluate HEART on the ToolBench and NESTFUL function-calling benchmarks, domain-specific reliability tests, ablations, and a repository construction benchmark. HEART with Qwen3-8B outperforms reference systems on average ToolBench pass and win rates, with the largest advantage on multi-tool cross-API tasks, and it also leads NESTFUL nested-call metrics under one-shot and three-shot settings. Ablations show that ToolFace with Tool Primitives and result validation are the most critical components, while domain tests reveal that repeated-trial pass criteria reduce reliability and model strengths vary by domain. In repository construction, adding execution feedback and retrieval plus adaptation substantially improves delivery scores and lowers zero-score rates at higher recorded-call cost.


بناء الذكاء الاصطناعي بالذكاء الاصطناعي

من الفكرة إلى الإطلاق — سرّع تطوير الذكاء الاصطناعي الخاص بك مع المساعدة البرمجية المجانية بالذكاء الاصطناعي، وبيئة جاهزة للاستخدام، وأفضل أسعار لوحدات معالجة الرسومات.

البرمجة التعاونية باستخدام الذكاء الاصطناعي
وحدات GPU جاهزة للعمل
أفضل الأسعار

HyperAI Newsletters

اشترك في آخر تحديثاتنا
سنرسل لك أحدث التحديثات الأسبوعية إلى بريدك الإلكتروني في الساعة التاسعة من صباح كل يوم اثنين
مدعوم بواسطة MailChimp