Coding Agents with Harness for Safe Robot Control
Abstract
Coding agents have emerged as a promising paradigm for robot manipulation: a language model writes the robot controller as a program, and agents built in this way now operate robots without robot-specific training. Whether this paradigm is also safe, however, has not been asked. We evaluate coding agents under a safety constraint, where each task pairs a manipulation goal with an obstacle the robot must not touch. The agent pursues the goal but collides with the obstacle in most cases, treating task completion as its sole objective. The agent reasons about the obstacle in its traces, and the prompt already forbids touching it, so neither perception nor instruction is at fault; the fault lies in the planning, where the stated constraint never becomes a priority. By decomposing manipulation into a route phase and a contact-rich moment, we locate the source of the failure. Along the route, the model cannot prioritize the safety constraint, having no notion of a clearing route and none of replanning once a chosen route becomes infeasible. At the contact, it is unaware that contact execution is bounded by the same constraint. To close this gap, we present SafeHarness, which equips the model with two obstacle-aware harnesses. Obstacle-aware route planning grounds the objects as bounding boxes and draws candidate routes over them as sequences of waypoints. The agent then plans a route in advance, verifies it, replans when necessary, and only then executes it. Obstacle-aware contact execution instead selects the contact position so that the contact itself avoids the obstacle. SafeHarness attains 81.2% task success and 91.9% collision avoidance with GPT-6-Astra, surpassing the previous SOTA by 13.7 and 23.0 points, and the same agent without harnesses by 31.2 and 57.5 points, respectively.
Create a lesson
Metadata
- Categories
- cs.RO, cs.AI, cs.CL, cs.CV
Related papers
Trust-Aware Safe Manipulator Control in Robot-To-Human Handovers
Shared title terminologycs.ROAriana Spalter, Maria Charitidou, John S. Baras et al.
RoboSimReady: Can Coding Agents Construct Simulation from Real Observation for Robot Interaction?
Shared title terminologycs.ROBingxuan Li, Siqi Song, Rui Yang et al.
"Dear LLaVA, Please Drive": A Depth-Aware Vision-Language Agent for Closed-Loop Robotic Control
Shared title terminologycs.ROSebastian Berger, Katharina Winter, Fabian B. Flohr
BOLT: Behavior Mode Learning Without Retraining Controllers for Heterogeneous Robots in Highly Unstructured Environments
Shared title terminologycs.ROVignesh Rajagopal, Rohan Chandra
ReSOAR: Towards Responsive and Self-organizing Agentic Robot Systems
Shared title terminologycs.ROJan Stiefel, Arthur Alleaume, Jonathan Allen et al.
SpeedWAM: Motion-Aware Adaptive Speed Control for Robot Manipulation
Shared title terminologycs.ROZihan Guan, Chaojun Ni, Zhekai Wang et al.