Bridging the Last Mile for AI Agents in the Real World
Original paper: The Last Mile to the Real World: Agent-Native Primitives as Reusable Building Blocks for Solving Real-World Tasks
"Think of it like a professional kitchen equipped with specialized, pre-assembled cooking stations rather than a single harried chef trying to juggle every appliance. Each station comes with its own dedicated prep assistant who inherently knows how to operate the machinery and communicate with other stations, freeing the head chef to focus on the overall recipe."
Current AI models struggle to cross the finish line on messy, real-world tasks because they waste energy trying to reinvent how to use basic tools on the fly. This breakthrough reduces execution costs, slashes completion time, and makes AI agents genuinely reliable for complex engineering, navigation, and software tasks.
- AI agents fail on real tasks due to the 'last mile' competence gap.
- Agent-native primitives pair tools with resident mini-LLMs for contextual execution.
- HEELO composes these primitives into adaptable task-solving graphs.
Bridging the Last Mile for AI Agents in the Real World
▶ Watch on YouTube Shorts ↗📑 Original arXiv Technical Abstract
How can an agent handle a real-world task end to end? Frontier models with their own harnesses still fall short on real-world benchmarks: on Terminal-Bench 4.0, GPT-5.6 Sol with Codex resolves 37.3% of the tasks and Claude Opus 5 with Claude Code 51.8%. These tasks fail at the step from reaching a resource to applying it, which we call the last mile to the real world. Existing approaches put the resource within reach but leave the competence to apply it with the caller, so each harness rebuilds that competence. We introduce agent-native primitives, reusable units that equip a resource with a resident LLM that applies it in context and communicates with other primitives, and HEELO (Harness Engineering around Evolving Agent-Native Primitives for the Last Mile to Real-WOrld Tasks), a harness engineering framework that builds each task's harness from a library of such primitives. HEELO composes the primitives a task needs into a task-specific graph, verifies the result against evidence from the environment, revises the primitives a failure implicates, and admits new or improved primitives after validation. We instantiate HEELO with eight primitive families, each built for one kind of task, and evaluate them on more than twenty benchmarks. Dev-Primitives raise Terminal-Bench 4.0 resolution from 37.3% under Codex to 55.5% on the same backbone, Harness Primitives composed per task raise Terminal-Bench 2.0 Pass@1 from 60.0% for the seed harness to 72.2%, Tool Primitives raise ToolBench pass rate from 55.8% to 75.1%, and Navigation Primitives raise GAIA-Text-103 accuracy from 45.6% to 58.3%. On the 46 real-world tasks of our heelo.dev platform, Claude Opus 5.5 with Claude Code and GPT-6.1 Sol with Codex complete 9 each on their own and 39 and 35 when connected to HEELO through our MCP server, with 1.9× and 2.3× less time and 1.55× lower cost per completed task.
✍️ Are you an author of this paper? Add code/demo links or a note
Help readers explore your work — share your official GitHub repo, Hugging Face weights, affiliation, or a clarification note for our editorial review queue.