Editor’s introduction
The study evaluates HexaShell, a system that connects vision-language models to robotic control by providing a thin command interface. The agent reads robot output, writes code, and runs tests as it would on a computer, while a separate optimizer learns from failures to create small, reusable tools. Performance is measured on RoboDojo’s official evaluation, where HexaShell achieves 46.9% success and a progress score of 53.2, outperforming other agent-based systems. The results show a clear boundary: success is limited by physical contact rather than reasoning ability, with memory tasks achieving 81.0% success versus only 32.0% on precision tasks. The evidence is confined to a single hidden seed evaluation across 42 tasks and does not include long-term or cross-environment generalization beyond the tested layouts.
Introduction
Robot manipulation leaderboards have been led by learned policies. Vision language action models and world action models learn from large sets of demonstrations and output the robot’s actions directly. Agents built on vision language models have now started to compete. On RoboDojo, the model we use reaches 22.5% without tools of its own, choosing gripper targets through a fixed harness written by the benchmark’s authors.
The hard part is turning pixels into positions. In a repository, everything the agent works on is text it can read exactly. On a robot, the agent sees objects as pixels, but every command needs a position in the world, to about a centimetre for a grasp. Vision language models are known to judge such distances poorly. The standard observation has no depth. A monocular depth network can estimate depth from one image, but on RoboDojo scenes Depth Anything V2 is off by a median of 41 mm at the head camera and about 100 mm at the wrists, even after we fix its scale with the table. Our tools use triangulation instead. The cameras are calibrated, and the robot knows where its wrists are. A point that two cameras see lies where their rays meet, and a point on a measured plane, such as the table, lies where its ray meets that plane. When one view is not enough, the robot moves a wrist camera to get another. This is active perception, and on a benchmark it has a price: the motion uses action steps, and every task has a step limit.
We build the tools on ten layouts of each task and freeze them. RoboDojo then evaluated the system in its official evaluation, on a hidden seed with 50 episodes per task. On all 42 tasks, HexaShell reaches 46.9% success and a progress score of 53.2 on the leaderboard’s metric, the state of the art on the official RoboDojo leaderboard (Figs. 2 and 3). It does best where the right action follows from measured geometry, and it stops at contact: tight insertion stays low. Over 420 retest episodes, success follows the contact a task needs, not what the agent must read or remember, and how an episode fails separates a gap in perception from a gap in execution (Section 5). The paper makes three contributions.
Related Work
Language models have written robot code before. Code as Policies emits executable programs over perception and control primitives, ProgPrompt and Inner Monologue plan with a language model and feedback, VoxPoser writes value maps for a planner, ReKep and MOKA let a vision model mark keypoints that code then optimises, RoboCodeX and RoboScript generate manipulation code from images and text, language models write reward functions for policy learning, and SayCan grounds language in a fixed skill library. In each, the program is produced per instruction and discarded, and people write the primitives. HexaShell inverts this division of labour: the agent writes the primitives, they persist across episodes and are what is optimized, and the per-episode program is short. Concurrent work moves the same way: URAI pairs a programming agent that writes motion tools with an execution agent that calls them, Gao et al. treat tools, traces and memory as code that a physical coding agent revises, CaP-X benchmarks coding agents on manipulation, RLE-Bench tests them as robot learning engineers, LIBERO-Agent tests general agents that act on the robot directly, and MEMENTO evolves code policies with a memory of past programs. We measure, on one full benchmark, how far such tools reach and where they stop.
Frontier models have also been used as policies without tools of their own. Zhang et al. evaluate GPT-6-Astra on RoboDojo through a fixed end-effector harness with no learned policy in the loop, and in a case study the model writes a piano controller that transfers across tempo but not key geometry. Show-Harness, Agent as Policy, VIA and World Action Agent drive robots through a vision language agent and a fixed interface, and a line of recent work builds harnesses in which coding agents program, test and improve robot skills, sometimes starting from a few human demonstrations. We keep the model and benchmark and change one thing, letting the agent write, keep and repair tools (Section 5.1).
Agents that build their own tools are the closest family. Coding agents that read a repository, run the tests and fix the code are the starting point of this paper. Voyager grows a skill library of JavaScript functions while playing Minecraft, Toolformer learns when to call existing tools, LATM and CRAFT have language models write and retrieve tools, and self-improving coding agents modify their own scaffolding or programs and keep edits that improve a score. Our loop belongs to this family but holds the agent’s scaffold, prompt and base interface fixed and changes only task tools. We are able to diagnose faults in one round, while ensuring that the tools stay runnable under the official client. Like Reflexion and Eureka, the optimizer iterates on code from traces, but acceptance is a fresh execution of the same layout rather than self-assessment.
The harness
Behind the command line, outbound traffic from the container passes through an egress proxy that adds the model credential and admits only the model endpoint and the harness’s own routes. The server validates each command, interpolates a straight Cartesian path at 2 cm spacing, solves inverse kinematics per waypoint with cuRobo, and times the joint path with a trapezoidal profile under the robot’s official limits. The timed path is sampled at the benchmark’s 25 Hz action rate and sent through the official take_action call. There is no motion planner and no collision model beyond the robot and the table. RoboDojo limits each task by a count of action steps (step_lim, from 200 to 1900; 600 for push T, i.e. 24 s of robot time). Observations, measurements and model thinking cost nothing, and every executed step costs one. The counter is returned with every response.
The same server runs under two executors. A direct executor drives the RoboDojo environment in the same process and can reset, replay and log true object poses into a field the container never receives. A bridge executor wraps the same server as a policy for the official evaluation client, which has no reset and no ground truth. The agent’s interface is the same under both, and every delivered tool must run under the bridge.
Measuring 3D from RGB images
The first constraint is the table. A shared tool, table_plane, measures the table height once per episode, the first time it is called, at no step cost. It sweeps candidate heights, warps each camera image into another camera through the plane at that height, and keeps the height where the warped images agree best. The three camera pairs agree to within 1 mm in our runs (0.7646–0.7656 m). The second constraint is any other plane whose height is known in the episode. The top face of a block, the rim of a bowl or a slot in a box lies on a horizontal plane; once its height is measured, the ray through a pixel on it gives the point. The third constraint is a second view. If two cameras see the same point, the two rays nearly meet, and the point between them is the triangulated position. Corresponding pixels come from the acting agent, who picks them in both images, or from template matching, contours and circle fits inside a tool.
The head camera sees the whole table, but often from too far away or at a poor angle, and objects hide each other. The wrist cameras then give the second view, but only after the robot moves them. A tool or the agent moves a wrist above the target, reads its pose from the TCP, and measures. These moves are robot motion, so they consume steps from the task’s limit. This is the price of measuring without depth, and Section 4.5 measures it. The rule for both agents is that every number about an object must be measured in the episode. Object sizes, positions and heights may not come from the benchmark’s assets, layouts, configuration or logs. A real robot offers the same inputs, RGB images, calibration and the state of the arms, so nothing the tools read at run time exists only in simulation (Section 4.7).
One setup for the Open tasks
The eight Open tasks are for evaluation only, so HexaShell runs them with one setup for all eight, built without any Open layout. The manual is the same for every Open task, and the prompt holds the instruction and the task’s description and score table from the benchmark’s documentation; there are no task tools and no notes. The tools come from the 34 other tasks. A perception tool, scene, separates objects from the table with a colour model of the table and masks out the arms from their joint angles. It then locates a chosen object from its outline in two views by a plane sweep and returns its top height, footprint and turn; if only one camera sees the object, it asks the agent to move a wrist camera. Eight shared skills, taken from the task tools of the other tasks, cover points and outlines on a plane, the rim of a container, guarded grasps and presses, bounded turns and timed picks on a moving belt. Two base commands are added: goto moves a TCP to an absolute pose and, if the pose cannot be reached, returns a nearby pose that can, and reach checks a pose without moving. The agent can also keep a Python session open across commands, with helper functions for rays, projections and triangulation, and the gripper reports whether its fingers stopped on an object and how wide they are open. We tested these tools only on scenes of the other 34 tasks, and then froze them.
Setup
RoboDojo has 42 simulated tasks for a dual-arm ARX X5 in Isaac Sim 5.1, grouped into Generalization (12 tasks, each with a cluttered variant that adds 13 to 18 distractor objects), Memory, Long-Horizon, Precision and Open. Each task ships three evaluation seeds; a seed is a set of 30 to 75 scene layouts in which object poses and table materials vary under fixed rules. Success is judged per step by the benchmark’s own checker, and the episode ends at the first success. The leaderboard’s score averages the five task types with equal weight, Generalization being the mean of its standard and cluttered variants; we also report the plain mean over the 54 variants.
We compare against the leaderboard as of 20 October 2026, where entries report 50 episodes on each of three seeds. The highest entries that output actions from a learned model are WorldScape-R2SI (success rate 39.35%, progress score 46.58), a world action model directed by an agent, VPP2 (32.26%, 39.26), a world action model, and PhysicalRSI (31.38%, 36.27), a VLA directed by a language model agent. Thirty-one entries output actions from a learned policy, and we use all of them for the clutter comparison. The same model without tools is GPT-6-Astra choosing bounded gripper targets through the benchmark authors’ fixed harness, 50 episodes on one seed per task (22.48%, 28.97).
These retests run the RGB system on ten new layouts, layouts 10 to 19 of seed 0 (standard and cluttered layouts 5 to 9 for Generalization tasks), with the benchmark’s checkers, the same prompt and the task tools on all 42 tasks. Swap blocks runs with the benchmark’s fix of its button reset, and with tools developed again under that fix. The depth network results, and the comparisons in Sections 4.3, 4.4, 4.5 and 5.2, use the ten development layouts, the first ten of seed 0 (five standard and five cluttered for Generalization tasks), with the bare instruction.
A capability map
What the tools add is the gap to the column without tools. They add most where the right action can be computed from measured geometry: pushing gains 33 points, rigid manipulation 13 and memory 26. Articulated objects gain a little, mostly from play Xylophone (6 of 10 layouts); these are the first articulated successes in any of our runs. On cloth the tools still do worse than an agent that corrects step by step: fold clothes reaches 50% against 72% without tools. A tool fixes one interpretation and one motion planned in advance; an agent acting step by step can still notice and correct.
Tight insertion and pouring are where measuring without depth costs most. With rendered depth, the tools reach 30.1% on insertion, led by insert key (80%) and play stacking toy (73%), while the RGB tools reach 8.3%. Pouring falls as far: pour liquid into cup and pour by language drop from 59–95% to 0–10%. An insertion needs the hole and the part in the same frame to a few millimetres. At the head camera one pixel covers 2–3 mm on the table, and the wrist views that would resolve the hole must be made while the gripper holds the part.
Fold clothes: a grasp point on the edge
The optimizer read the transcript and the tool’s feedback, then ran the grasp point code on four stored test images with their calibration and measured each point’s distance to the cloth edge: “On four archived RGB fixtures, lateral contacts sit only 0.9–7.4 mm from an edge despite the nominal 25 mm inset.” The cause was a check that accepted a point when one pixel of it fell on the cloth, and returned an unchecked point when it found none. The optimizer replaced it with a test on the table plane that requires 12 mm of cloth on every side of the point, searched on a 2 mm grid up to 6 cm inward. All 37 tests passed.
Between rounds 13 and 14 only cloth_view changed. In round 14 it returned points 12.3 and 12.1 mm inside the edge; on the same frame the old code returns points 1.6 and 5.4 mm from it. The left sleeve crossed the body in one move, no repair was needed, and the shirt was folded at step 344 of 500. In the frozen retest this layout failed with a progress of 20%, and the task passed 6 of its 10 development layouts.
Insert tubes: an early stop in the hardest class
The optimizer read the tool’s feedback and the command log: “The clearance fallback treated 28,935 voxels along monocular rays as a hard constraint, although their depths were unverified. It rejected both proposed yaw paths and stranded the grasp.” It kept those rays as a preference and added one more check: when the preferred paths are rejected, the tool rechecks the original remaining path from the joints it has reached and goes on if that path is reachable. Obstacles seen in two views still block the move. All 183 tests passed. The optimizer noted that the change does not explain the sideways release.
In round 19 the same situation came up, with 27,626 ray voxels and two rejected paths. The recheck passed, and the first tube reached its hole 1.5 mm from the measured centre. Lowering stopped early, and the agent opened the gripper and let the tube drop in. The first tube took 64 steps instead of 108, the other two needed moves by hand, and the episode succeeded at step 398 of 500. In the frozen retest layout 4 passed in 411 steps without needing the recheck, and the task passed 3 of its 10 development layouts. The other seven ended with the agent quitting or at the step limit.
Conclusion
HexaShell gives an unchanged coding agent one command line to a robot and keeps what the agent learns as small tools, repaired after each failure in a round of a few minutes. With triangulation from calibrated RGB cameras, the tools locate objects more reliably than a depth network, and in RoboDojo’s official evaluation on a hidden seed of all 42 tasks the agent reaches 46.9% success and a progress score of 53.2. Because at run time the tools see only what a real robot also sees, they move to a real robot with a different arm after a small change for the arm. The limit is contact, not reasoning: pushing and memory tasks succeed most of the time, but tight insertion stays low, and most failed episodes run out of steps while the agent sees that the motion is not working. Closing this gap is the next step: tools that keep measuring while the gripper holds the part and correct the motion during contact, instead of planning it in advance.


