← Paper Digest

PyRUA-Dex: Learning Programmatic Policies for Dexterous Bimanual Manipulation with Coding Agents

Feixiang Ruan, Guodong Lv, Kewei Zhang, Wenbo Huang, Yintianrun Zhang, Qiang Wang, Ruiyang Si, Shunyu Yang, Shulong Jiang, Weicheng Duan, Rui Ni, Jianxin Bi, Lekai Wang, Yuze Fan, Haobo Li, Zeliang Fu, Jiankun Zhang, Duomin Wang, Enze Xie, Daquan Zhou

November 2026

Real robot, close-up of both hands playing the piano.

TL;DR Coding agents write and refine a Python program for each bimanual dexterous task in simulation, with no demonstrations; the program then runs frozen, with no language model at test time. The programs set a new best Bench2Dex score of 72.9 (60.6% success), and on a real platform with two 22-joint hands they play piano, write with a brush and open a box.

What they do

Demonstrations for multi-fingered hands are scarce and tied to the hand they were recorded on. PyRUA-Dex does without them. Coding agents (Codex CLI sessions of GPT-6 Astra) develop a Python program for each task in simulation. The finished program runs frozen at the robot’s control rate, with only cameras, joint positions and fingertip touch as input and no language model in the loop.

How it works

  • One primitive library for every hand. Generated from each robot’s description file, it drives hands with 6 to 22 joints: shape the hand, grasp an object of measured size, close until held, check it is still held. Contact is read from fingertip tactile maps and joint lag, and objects are located with SAM 3.
  • Exploration. Eight agents work on a task in parallel, each with its own layout and simulator checkpoints for retrying a stage. A shared memory passes on what worked, and a distilling agent picks the best program or assembles one from the most reliable stage functions.
  • Refinement. One agent measures per-stage success over randomized layouts and repairs the weakest stage first. A new version is kept only if it does no worse on 32 validation layouts.
  • Real robot. Both stages run in a MuJoCo model calibrated to the platform, with system-identified hand drives. After each round the program runs on the robot, and what goes wrong there is written back into the simulation.

Results

  • Bench2Dex (26 bimanual tasks, 12 embodiments): score 72.9 and 60.6% success, above every trained policy overall but ahead on only 15 of 26 tasks. Refinement raises success from 44.6% to 60.6%.
  • At the benchmark’s step budget, frozen programs complete 61.5% of Full-channel episodes, against 25.6% for the same model acting online.
  • DexJoCo (Allegro hands): 81.0% success under full randomization versus 40.3% for π0.5.
  • Real platform (two Franka FR3 arms, two 22-joint Sharpa hands): over refinement rounds, six tasks rise from 119 to 168 of 192 validation layouts in the calibrated simulation. On the robot the programs stack cubes, open a box, write “Dex” and play piano, and a new piano piece takes 30 minutes to an hour.

Limitations

Programs handle geometry, order and timing well but sustained contact poorly. Trained policies win on the frying pan, the hand-to-hand pour and the jigsaw, and DexJoCo assembly reaches only 34.0%. Each task is learned separately, at a median of 427M tokens for exploration plus 214M for refinement. Real-robot reliability is measured in the calibrated simulation, not over repeated hardware trials.

Videos

Real robot picking up a brush and writing "Dex".
Real robot stacking cubes into a tower of three.

Figures

From Figure 1: PyRUA-Dex at a glance. Coding agents learn a task's program in simulation through exploration and refi...
From Figure 1: PyRUA-Dex at a glance. Coding agents learn a task's program in simulation through exploration and refinement, and the frozen program runs on the real platform, shown playing the piano with tactile fingertips. Side panels give DexJoCo success rates, the Bench2Dex leaderboard, the real-world tasks learned, and the hands the programs drive.
From Figure 2: Overview. In exploration, eight agents explore the task with state resets and a shared memory, and the...
From Figure 2: Overview. In exploration, eight agents explore the task with state resets and a shared memory, and their programs are distilled into a task library and one program. In refinement, one agent finds the bottleneck stage, refines it on randomized layouts and keeps the version with the best held-out record. The program runs frozen, without a language model, and real-robot feedback updates the simulation for the next round.
From Figure 3: Bench2Dex results. (a) Score of every four-channel entry; the dashed line marks the best trained polic...
From Figure 3: Bench2Dex results. (a) Score of every four-channel entry; the dashed line marks the best trained policy. (b) Success rate against latched stage completion. (c) Full-channel success rate against execution budget for the frozen programs and the same model acting online.
From Figure 6: Frozen programs on the real robot: cube to basket, stacking three cubes, Night Cruise played with both...
From Figure 6: Frozen programs on the real robot: cube to basket, stacking three cubes, Night Cruise played with both hands, opening the box by its fabric loop, and writing "Dex" with a brush.
Abstract

Learning for dexterous manipulation is limited by the scarcity of high-quality demonstrations: retargeting from human video is imprecise, teleoperation gives no force feedback to the operator, and exoskeleton-based collection is hard to scale up. We present PyRUA-Dex, a framework that enables coding agents to develop dexterous manipulation through programmatic policy, without the need of demonstrations. The programmatic policy is developed in two stages: during exploration, multiple agents explore in parallel for task skills and ways to compose them, and a distilling agent condenses the successful attempts into a task library and one program. During refinement, this program is improved through randomized layouts for enhanced robustness and execution efficiency. In simulated environments, PyRUA-Dex achieves SOTA on Bench2Dex with a score of 72.9 and reaches 81.0% success on DexJoCo under full randomization, ahead of every trained policy on both benchmarks. In real world experiments on a bimanual platform with two 22-DoF hands, PyRUA-Dex learns to play piano, write calligraphy, and other tasks efficiently: learning a new piece from sheet music takes as little as 30 minutes. These results suggest that PyRUA-Dex is an effective framework for developing dexterous manipulation policies with coding agents in the absence of high quality dexterous manipulation demonstrations.

Summaries are written automatically from each paper's text. Figures and videos come from the paper and its project page; all credit goes to the authors.