Why Stop at Software? Recursive Self-Improvement Reaches Robot Hardware

Yida Yang, Ao Zhou, Wei He, Guang ChenarXiv 2026

TL;DR

We’re getting used to AI agents that rewrite their own code to solve tougher problems, yet when you put those agents in a robot, their physical bodies remain stubbornly frozen in place. This paper introduces HardwareRSI, a framework where a robot uses real-world trial and error to diagnose its own physical limitations, write CAD code for custom attachments or sensor mounts, and iteratively rebuild itself until the job gets done. It turns out that when software hits a physical wall, the smartest move is simply to grow longer fingers.

What Problem Does This Paper Address?

Imagine asking a robot to fish a dropped bracket out of a narrow, deep bin. If the robot's hand is physically wider than the bin's opening, no amount of clever path-planning or reinforcement learning will ever grab that part.

Software-only self-improvement hits a wall when hardware is the bottleneck, whereas HardwareRSI closes the loop by letting the agent rewrite both its control software and its physical CAD design.

Recent "recursive self-improvement" (RSI) systems let robots refine their control scripts based on past failures, assuming the robot’s body is fixed. Meanwhile, automated tool-design systems usually rely on privileged simulator data (like exact object coordinates) or explicitly tell the AI upfront that it needs a tool. The missing piece was true autonomous discovery: can an operating robot figure out on its own whether it failed due to bad code or a bad body, redesign its own mechanisms and sensor placements, and use what it sees through the new body to guide the next iteration?

Methods

HardwareRSI puts a single language-model agent (GPT-6 Astra) in charge of both operating a robotic arm and engineering its hardware.

In each iteration, the agent attempts a task using standard control scripts. Every motion returns camera images, sensor readings, and a mechanical status report (e.g., "stalled: blocked by contact at hand"). Based on this, the agent makes a diagnosis:

  • Software flaw? Keep the body, rewrite the control code.
  • Hardware limit? Redesign the robot.

To change its body, the agent writes Python-based CAD scripts (using CadQuery) to create printable plastic or rubber parts, alongside an assembly.json file that mounts parts, actuators (like servos or springs), and sensors (like cameras or borescopes) from a standard catalog. Before wasting an official attempt, a builder validates the meshes for physical sanity (checking thickness, collisions, and payload limits) and lets the agent preview camera angles in MuJoCo simulation. In the real world, those exact STL files are 3D printed in PLA and bolted onto the physical arm.

Datasets

Because existing benchmarks assume static robots or spoon-feed object geometry to the model, the authors built HardwareRSI-Bench. It contains 36 simulated manipulation tasks in MuJoCo drawn from real warehouse, lab, and assembly jobs, grouped into eight physical-demand families: Confined spaces, Insertion, Dual contacts, Restricted view, Flush and edge, Large and round, Force control, and Rotation. Crucially, task prompts only state the goal (e.g., "open the valve handwheel four turns")—the agent gets zero hints about what hardware limitation it is about to hit.

Key Insights and Ideas

  • Hardware changes what you can know, not just what you can do: A hardware redesign isn't always about succeeding immediately; sometimes it's about gathering better evidence. In the deep-bin task, adding a long suction rod failed, and the bin rim blocked the view. The agent’s next move wasn't a new gripper—it repositioned its wrist camera. That new view revealed the bracket was too narrow for a suction seal, prompting a switch to long, rubber-tipped fingers.
In v1, the bin rim blocks the wrist camera from seeing why the suction cup failed to grab the bracket, prompting the agent to move its camera in the next iteration.
  • Baking motion into geometry: After succeeding, the agent keeps optimizing. In a plate-handling task, the agent noticed during execution that tilting a flipper to 76° worked well. For its next hardware version, it built that exact 76° angle directly into the static CAD geometry, saving 100 control steps of movement.
  • Generalist custom bodies: Rather than building fragile one-off gadgets, a single well-evolved hardware design can handle entire families of related tasks—and even multi-stage assembly lines requiring completely different physical skills.

Key Results

  • High task completion via redesign: Given 30 attempts per task on HardwareRSI-Bench, the agent solved 33 of 36 tasks. Only 3 were solvable with the stock Franka arm; 30 required hardware redesigns, and 21 of those involved multiple rounds of iterative hardware changes.
  • Cross-task reuse: When forced to use a single hardware design across three related tasks, the agent succeeded in 3 out of 4 task families, and built one unified design that cleared a four-stage electronic module assembly task.
  • Post-success efficiency: Across tasks solved more than once, refining both hardware and control cut execution steps by a median of 22% after the first successful run.
  • Real-world transfer: Tasked with lifting a wide box on a physical AgileX NERO arm, the stock gripper slipped off the corner. Inferring a span limitation, the agent designed custom finger-extending sleeves, had them 3D-printed, lifted the box flat, and subsequently practiced to cut its lift time from 15.6 s down to 9.0 s.

Limitations and Future Work

Not discussed in the paper.

Summary updated

BibTeX
@misc{yang2026why,
  author = {Yida Yang and Ao Zhou and Wei He and Guang Chen},
  title = {{Why Stop at Software? Recursive Self-Improvement Reaches Robot Hardware}},
  year = {2026},
  eprint = {2611.39816},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.39816},
}
Figure