Command Palette
Search for a command to run...
실세계로의 마지막 구간: 실세계 과제 해결을 위한 재사용 가능한 빌딩 블록으로서의 에이전트 네이티브 프리미티브
실세계로의 마지막 구간: 실세계 과제 해결을 위한 재사용 가능한 빌딩 블록으로서의 에이전트 네이티브 프리미티브
초록
에이전트가 실세계 과제를 어떻게 종단 간(end-to-end)으로 처리할 수 있을까? LLM 에이전트의 최근 진전에도 불구하고, 프런티어 모델을 그들을 위해 구축된 하네스와 결합하더라도 실세계 과제에 대한 공개 벤치마크에서는 여전히 부족하다. 최대 추론 노력 기준 Terminal-Bench 4.0에서 Codex를 사용하는 GPT-5.6 Sol은 과제의 37.3%를 해결하고, Claude Code를 사용하는 Claude Opus 5는 51.8%를 해결한다. 이러한 과제들은 자원에 도달하는 단계에서 그것을 적용하는 단계로 넘어갈 때 실패하는데, 우리는 이를 실세계로의 마지막 구간(last mile)이라고 부른다. 즉, 도구 호출은 자신의 인수를, 흔히 이전 호출의 출력에 근거하여 그라운딩해야 하고, 각 결과는 그것을 소비하는 단계에 도달해야 하며, 실패는 그것이 연루된 작업까지 추적되어야 한다. 기존 접근법은 자원을 도달 가능하게 하지만 이를 적용하는 역량은 호출자에게 맡기므로, 각 하네스가 그 역량을 다시 구축해야 한다. 이 격차를 해소하기 위해, 우리는 자원에 상주 LLM을 장착하여 문맥 안에서 자원을 적용하고 다른 프리미티브와 통신하는 재사용 가능한 단위인 에이전트 네이티브 프리미티브(agent-native primitives)와, 그러한 프리미티브 라이브러리로부터 각 과제의 하네스를 구축하는 하네스 엔지니어링 프레임워크인 HEELO(Harness Engineering around Evolving Agent-Native Primitives for the Last Mile to Real-WOrld Tasks)를 제안한다. HEELO는 과제에 필요한 프리미티브들을 과제 특화 그래프로 합성하고, 과제 환경의 증거에 비추어 결과를 검증하고 실패가 연루된 프리미티브를 수정하며, 검증 후 새롭거나 개선된 프리미티브를 라이브러리에 등록한다. 동반 연구에서 증명된 결과는 라이브러리가 아무리 크더라도 활성화가 과제의 요구에 의해 제한됨을 보이고, 과제별 합성이 최고의 고정 하네스보다 나은 경우를 식별한다. 그러나 각 과제 도메인은 마지막 구간에 고유한 요구를 부과하므로, 우리는 HEELO를 여덟 개의 프리미티브 계열로 인스턴스화하고, 각 계열은 한 종류의 실세계 과제에 대한 해법으로 구축되었으며, 이를 20개 이상의 벤치마크에서 평가한다. 각 비교 대상의 백본에서 Dev-Primitives는 Terminal-Bench 4.0 해결률을 Codex 사용 시의 37.3%에서 55.5%로 높인다. mini-SWE-agent 시드 하네스 위에서 과제별로 합성된 Harness Primitives는 100개의 SWE-bench Verified 과제에서 Pass@1을 73.0%에서 80.5%로, 45개의 Terminal-Bench 2.0 과제에서 60.0%에서 72.2%로 높여, Codex의 79.0% 및 56.7%를 상회한다. Tool Primitives는 ToolBench 통과율을 55.8%에서 75.1%로, Code Primitives는 저장소 전달(repository delivery)을 0.3180에서 0.5134로, Agent Primitives는 여덟 개의 수학, 코드, QA 벤치마크에 대한 평균 정확도를 단일 에이전트의 58.8%에서 75.3%로, Navigation Primitives는 GAIA-Text-103 정확도를 45.6%에서 58.3%로 높인다. 형식 정리 증명에서 Math Primitives는 홀드아웃 Putnam 문제의 95.0%에 대해 주석이 달린 참조 방법을 상위 5위 안에 위치시키며, 이는 가장 강한 재순위화기(reranker)의 84.2%와 대비된다. 추가 분석은 이점이 각 자원을 해당 프리미티브 내부에서 적용하는 데서 비롯되며, 어떤 프리미티브가 실행될지는 과제가 결정한다는 것을 보여준다. 이러한 벤치마크를 넘어, 우리는 실세계 행동을 위한 에이전트 네이티브 프리미티브 플랫폼인 heelo.dev를 구축했다. 그 46개의 실세계 과제에서 Claude Code를 사용하는 Claude Opus 5.5와 Codex를 사용하는 GPT-6.1 Sol은 단독으로는 각각 9개를 완료하고, 우리의 MCP 서버를 통해 HEELO에 연결되면 각각 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 q arrives with a context cq, encompassing its inputs, environment, constraints, and acceptance criteria. An agent acts on the task through a harness H, 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 of reusable units, aiming to maximize the expected score R(q,H)=Eτ[Rq(τ)∣H].
The core building blocks of this system are agent-native primitives. An agent-native primitive Pi equips a reusable resource ai (such as a tool schema, code component, or proof method) with a resident LLM M and exposes an interface di. When invoked with a natural-language request xi in a context ci, the resident LLM applies the resource and returns a result ri along with messages mi directed to other primitives:
(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). This plan defines an activation set At and a dependency graph Et dictating how results and messages flow between the activated primitives.
Second, Evidence-Based Execution and Improvement runs and revises the plan. In each round t, the activated primitives act, and their results are integrated into the task state St. The system executes the plan in the task environment to gather evidence ot, such as build status or test outcomes. A verification step yields a verdict vt∈{PASS,FAIL} and structured feedback ϕ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)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}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.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.