[Paper Notes] HexaShell: A Universal Harness for Robot Coding Agents in Simulation and the Real World
Published:
HexaShell treats the interface between a coding agent and a robot as the main object of study. The agent writes one Python cell per turn, reads the printed result and images, then decides what to run next. The same motion, perception and state tools remain available across tasks; a new simulator or robot changes the adapter and world prompt, not the agent loop. Short natural-language task skills can be added later, but the fixed code stays the same.
Hongcheng Gao, Jianshu Zeng, Alex Zhou, Shijia Ge, Xuan Shangguan, Yazhe Wang, Yexing Wan, Zelin Zheng, Jay Zhu, Xiping Li, Di Wu, Yongli Wang, Lingyu He, Zhiqi Jia, Sihang Wu and Xiao He. arXiv:2610.23479v3, November 3, 2026 · Code · Project page
Fourteen tools and one small loop
The robot API has 14 basic calls. Four consume simulation steps: goto, gripper, home and wait. Five perception calls do not: look, find, measure, to_world and to_pixel. Five state calls expose the instruction, step budget, arms, grippers, previously measured objects, images and camera parameters. The agent writes code in a sandbox with NumPy and OpenCV, but has no network or subprocess access and can touch only workspace files.
The split between model and geometry is deliberate. SAM 3 turns a short phrase, point or box into object masks. When several calibrated cameras see the same object, their rays define a visual hull; a fitted footprint gives the object centre, size and grasp yaw. With RGB-D, the same measurements use depth. measure returns an uncertainty estimate and puts warnings first. If one view cannot determine height, it suggests a wrist-camera pose for a second look.
This gives the VLM work it can do well. It decides which object to inspect, when to ask for another view and what order of operations makes sense. It also decides when a failed motion requires a new approach. Pixel-to-metre estimation stays in deterministic geometry. The interface reports measured results back into the same Python turn, which preserves the coding-agent pattern: run a small experiment, inspect the result, revise the next cell.
A skill is guidance, not a private toolset
The optional task skill is a Markdown page with five sections: what counts as completion, the successful flow, measured parameters, common failures and typical step costs. A person reviews every skill. A checking script prevents simulator positions, internal object names and checker thresholds from entering the text. The median skill has 39-61 lines, and only three of 205 skills contain code.
The paper compares this arrangement with an earlier variant that wrote and repaired task-specific Python tools. That version ran for up to 12 hours per task and accumulated 327 commands in roughly 78,000 lines after 769 optimization rounds. On the official RoboDojo evaluation it reached 46.9% success and a 53.2 score. HexaShell with its shared tools and short skills reached 85.0% and 88.8 in the authors’ own test run. These use different episodes, so the comparison is not a clean causal estimate. The sharper paired result is on the authors’ RoboDojo episodes: outside Open, 234 episodes succeeded only with skills and 37 only without.
Results across four simulators
The same API, sandbox and agent loop were tested on four public benchmark families. The table reports the paper’s own evaluations, not every official benchmark protocol.
| Benchmark | No task skills | With task skills |
|---|---|---|
| RoboDojo | 69.9% success, 75.7 score | 85.0% success, 88.8 score |
| RoboCasa365 | 59.3% | 85.6% |
| LIBERO-PRO | 78.3% | 96.7% |
| RoboTwin 2.0, randomized | 82.2% | 96.8% |
On RoboDojo, the no-skill result is especially relevant to the harness question. The earlier RoboProbe agent with the same GPT-6 Astra model reached 22.48% official average success using a lean direct-action interface. HexaShell reports 69.9% success on 30 public test episodes per task and three seeds, with score computed from the same task dimensions. The gap shows how much tool semantics, perception support and control commands affect the apparent capability of a VLM agent. The runs differ in interface and evaluation episodes, so this is evidence of a large system effect, not a controlled estimate of exactly how much each component contributes.
With skills, the paper reports 76 successes in 90 real dual-arm episodes across nine tasks. Three PiPER-X robots used head and wrist RGB-D cameras, a 907-line adapter and URAI collision-checked motion planning. Object detection did not use SAM 3 on the real robots; the model read pixels from the images and converted them with depth. GPT-6.1-Terra wrote the code for the nine tasks, while GPT-6-Astra judged the episodes because no external checker was available. Those facts limit how strongly the real-robot result supports autonomous closed-loop performance.
What still fails
HexaShell moves most of the remaining difficulty below task interpretation. With skills, 153 of 1,020 non-Open RoboDojo episodes contained a slip. Those episodes succeeded 46% of the time, versus 91% when no slip occurred. Store Tools in Toolbox failed every episode as a long object rotated out of a central pinch during lifting. Better grasping and motion control would improve several tasks at once, and a task skill cannot repair a grasp that the lower-level API cannot achieve.
The paper is explicit about several evidence limits. Test runs use fewer episodes than official protocols. The RoboCasa365 entry is an agent-track submission based on the authors’ evaluation, not the official main track. The contribution of SAM 3 and geometry has not been isolated by disabling them. Skill creation needs a few runs and a human review, and the minimum number remains unmeasured. Real-robot trials are few and use a model-assisted judge.
Why the harness is the contribution
The paper shifts attention from generating more task code to making a stable interface that returns useful evidence. Tools such as measure, to_world and dry_run turn a visual task into a sequence of checkable geometric operations. A short skill can supply contact-sensitive parameters and completion criteria that general perception cannot infer, while remaining readable and auditable.
For practice, this suggests separating three budgets: the general robot API, the task-level guidance and the controller beneath it. My next tests would compare the same model and episodes with SAM 3 and geometry disabled, vary skill authorship, and measure how often the agent recovers after a reported uncertainty or blocked motion. Those experiments would show which parts make the harness transferable and which gains still come from human task knowledge.
