Harness Hub
All papers

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, + 8 more

Verdict: Useful

The paper presents a well-engineered multi-agent coding harness with a clear stage-wise refinement and gating protocol, and it reaches a leaderboard-leading aggregate. The verdict stops at useful for four reasons: - The SOTA margin rests mostly on LSCR. - Supervision and compute differ greatly from the baselines. - The online-agent comparison is uncontrolled. - Real-world reliability is simulation-only, and no harness component is ablated.

  • Novelty

    3 out of 5
  • Rigor

    2 out of 5
  • Reproducibility

    2 out of 5
  • Relevance to harnesses

    3 out of 5

TL;DR

Coding agents (Codex CLI on GPT-6 Astra) write staged Python policies for dexterous bimanual hands in simulation. Eight parallel agents explore with state resets and shared memory, then one agent refines the weakest stage over randomized layouts, with versions gated by held-out and validation sets. The frozen programs score 72.9 on Bench2Dex and 81.0% on DexJoCo rand-full. Development used 11.7B exploration tokens plus 6.6B refinement tokens (counted on 23 tasks), a hand-built primitive layer, and simulator stage counts. Real-robot reliability is measured only in simulation.

Adversarial review by Harness Hub · Nov 27, 2026 · read full text (truncated) · Suggest a correction

Original abstract (authors’ text, select to expand)

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.

Authors’ note

23 pages, 9 figures, 7 tables. Project page: https://vme0522.github.io/PyRUA-Dex/

Filed underevaluationcoding-agentsagents

Summary

PyRUA-Dex represents a dexterous manipulation policy as a Python program: a setup function plus one function per task stage. A fixed runner executes the stages in order and calls failed stages again while steps remain. Development has two stages. Exploration: eight agents per task work interactively. Each has simulator checkpoints (eight resets per layout), sees the simulator's stage count, and writes to a curated shared memory. Each agent's program is evaluated without the agent on eight fresh layouts. A distilling agent then writes a task library and selects or composes one program. Refinement: a single agent computes per-stage success rates on 32 fresh layouts and repairs the bottleneck stage using partial rollouts. It is evaluated every 160 layouts on 32 fresh and 32 held-out layouts, with a cap of 1,500 layouts. A version replaces the current program only if it is no worse on 32 validation layouts. All robots are driven through a 'codebox' of hand, arm and perception primitives. It is generated from the robot description, uses SAM 3 for segmentation, and relies on per-robot drive responses measured in the simulator. Results: - Bench2Dex: Score 72.9, SR 60.6%, LSCR 82.3%, Eff 0.859. The best trained policy, ME-Dex 1.5, has Score 70.5, SR 58.6%, LSCR 76.3%, Eff 0.979. - DexJoCo: 88.5% rand-obj and 81.0% rand-full, against 54.1% and 40.3% for pi0.5. - Real robot: on two 22-DoF Sharpa hands, the programs are shown playing piano, writing 'Dex' and handling cubes. Reliability is reported as validation layouts completed in a calibrated simulation. Refinement rounds there include user instructions and task rules written back into the simulation.

Key findings

  • Bench2Dex four-channel mean (Table 1): PyRUA-Dex Score 72.9, SR 60.6%, LSCR 82.3%, Eff 0.859. ME-Dex 1.5: Score 70.5, SR 58.6%, LSCR 76.3%, Eff 0.979. PyRUA-Dex has the lowest Eff of any four-channel entry; Diffusion Policy is at 0.865.
  • Refinement over exploration only (Table 1, Table 4): SR 44.6% to 60.6%, Score 59.1 to 72.9, validation completions 363/832 to 513/832.
  • Per-task coverage (Section 4.2, Table 4): PyRUA-Dex beats the best trained policy on 15 of 26 Bench2Dex tasks, against 8/26 after exploration. Trained policies lead on 11, and on three of those the programs almost never succeed.
  • Failure analysis (Section 4.3): of 341 failed validation runs after exploration, 68% returned with at least 30% of the step budget unused, and only 2% ran out of steps.
  • Online agent (Section 4.4, Table 1): frozen programs reach 61.5% on the Full channel. The online agent reaches 25.6% on 78 report episodes and 26.2% on 260 leaderboard episodes at 1x budget. It reaches 61.5% only at 10x budget, using 33.7M tokens per episode.
  • DexJoCo (Table 2): PyRUA-Dex scores 88.5 rand-obj and 81.0 rand-full; pi0.5 scores 54.1 and 40.3. The online agent scores 78.2 rand-full at 1x budget and 87.3 at 10x, which is above PyRUA-Dex.
  • Development cost (Appendix C): exploration used 11.7B tokens and 615 agent hours over 26 tasks. Refinement used 6.6B tokens and 362 agent hours over the 23 tasks with recorded counts. Per-task medians are 427M and 214M tokens.
  • Real robot (Table 3): validation layouts completed in simulation rise from 119/192 to 168/192. 'Write Dex' ends at 14 of 32. No hardware success rates are reported.

The paper at a glance

01Hand-writtenstage-level goaltext plus codeboxprimitivesgenerated from the…02Stage 1: 8 parallelagents explore withstate resets,stage-countfeedback and a…03Agent-freeevaluation of eachprogram on 8 freshlayouts04Distilling agentwrites the tasklibrary and selectsor composes oneprogram, gated on…05Stage 2: stage-wisefailure analysis on32 fresh layoutsfinds thebottleneck stage06Bottleneck repairwith partialrollouts; every 160layouts, evaluateon 32 fresh and 32…07Select the bestheld-out version,keep it only if noworse onvalidation, then…08Real robot: run thefrozen program,write discrepanciesand userinstructions back…
  1. Hand-written stage-level goal text plus codebox primitives generated from the robot description
  2. Stage 1: 8 parallel agents explore with state resets, stage-count feedback and a curated shared memory
  3. Agent-free evaluation of each program on 8 fresh layouts
  4. Distilling agent writes the task library and selects or composes one program, gated on 32 validation layouts
  5. Stage 2: stage-wise failure analysis on 32 fresh layouts finds the bottleneck stage
  6. Bottleneck repair with partial rollouts; every 160 layouts, evaluate on 32 fresh and 32 held-out layouts (up to 1,500)
  7. Select the best held-out version, keep it only if no worse on validation, then freeze
  8. Real robot: run the frozen program, write discrepancies and user instructions back into the simulation, refine again
Fig. 1 — How the paper works, step by step (arXiv:2611.33144).
MXI50.9 scorePhoenix-MWA59.1 scoreGigaWorld-Policy-0.664.6 scoreME-Dex 1.570.5 scorePyRUA-Dex, exploration only (this paper)59.1 scorePyRUA-Dex (this paper)72.9 score
Fig. 2 — Bench2Dex four-channel Score, higher is better. Source: Table 1, arXiv:2611.33144.
Data table
Bench2Dex four-channel Score
Methodscore
MXI50.9 score
Phoenix-MWA59.1 score
GigaWorld-Policy-0.664.6 score
ME-Dex 1.570.5 score
PyRUA-Dex, exploration only (this paper)59.1 score
PyRUA-Dex (this paper)72.9 score

Why it matters

This is a robotics paper, but its engine is a multi-agent coding harness, and several of its patterns carry over to agent loops outside robotics. These include parallel Codex CLI sessions with checkpoint-and-rewind of the environment, a curated shared memory, a distilling agent that compiles trajectories into a library and one program, stage-wise failure analysis to locate the bottleneck, and promotion of a new version only when it is no worse on a set the agent never sees. The frozen-program versus online-agent comparison is a data point for the tradeoff between building a program once and paying for reasoning in every episode. It shows that amortizing reasoning into code can beat test-time agency when a task decomposes into measurable stages, though on DexJoCo the online agent wins when given 10x the step budget. Harness builders should discount the benchmark numbers. The results depend on a large hand-engineered primitive layer, hand-written stage-level goal texts, simulator stage counts during development, and roughly 18B tokens of unbudgeted development. None of the harness components (shared memory, parallelism, distillation, the retry runner) is ablated, so the paper shows that the whole stack works, not which parts of the harness matter.

Issues (8)

  • High severity

    The supervision and compute gap with the trained baselines is large, so 'without demonstrations' understates what the method uses. The trained policies learn from 1.3K teleoperated demonstrations. PyRUA-Dex instead uses unlimited simulator access with checkpoint resets, the simulator's stage count during development, hand-written goal texts that state every stage in measurable terms, a hand-engineered primitive library with per-robot drive responses measured in simulation, SAM 3, and 11.7B + 6.6B tokens with 'No budget limits time or tokens'. Development cost is compared only against the online agent, never against the baselines' training compute or demonstration-collection effort.

  • High severity

    The real-world claims are not measured on hardware. The abstract says the platform 'learns to play piano, write calligraphy, and other tasks efficiently', but reliability is reported only as validation layouts completed in the calibrated simulation, and Limitations admits there are no repeated hardware trials. 'Write Dex' completes 14 of 32 simulated layouts. The real-world loop is also not agent-only: user instructions given at the robot and hand-identified task rules (for example 'a wrist camera kept clear of the table') are written back into the simulation between rounds.

  • Medium severity

    The SOTA claim is narrow and depends on the metric. SR is 60.6 against 58.6 for ME-Dex 1.5, and most of the Score lead comes from LSCR (82.3 vs 76.3). PyRUA-Dex has the lowest Eff of every four-channel entry (0.859, against 0.865 for Diffusion Policy and 0.979 for ME-Dex 1.5). Trained policies still lead on 11 of 26 tasks. 'Ahead of every trained policy' holds only for the aggregate.

  • Medium severity

    The 'same model acting online' comparison is not controlled. The online agent is another group's harness (SenseNova), so harness differences are confounded with test-time versus development-time reasoning. The 2.4x figure compares PyRUA-Dex's Full-channel rate over 26 tasks x 50 episodes with 25.6% on 78 episodes taken from that report, with no confidence intervals. The claim that development of all 26 tasks cost less than a third of the online agent's tokens on 5,200 episodes rests on refinement counts missing for 3 of the 26 tasks and on an online per-episode cost at 1x that the text does not print. On DexJoCo the online agent at 10x (87.3) exceeds PyRUA-Dex (81.0).

  • Medium severity

    The '30 minutes' figure for a new piano piece applies only after a piano-player skill has been distilled from earlier pieces, which took exploration plus up to five refinement rounds. Section 5 says '30 minutes to an hour', and no timing table is given.

  • Medium severity

    Harness components are not ablated. Shared memory, eight-way parallelism, the curating and distilling agents, state resets and the AGAIN retry runner are never tested individually. The exploration-only versus refined comparison is not compute-matched, since refinement adds a median 214M tokens per task. Causal claims about which parts of the method matter are untested.

  • Medium severity

    There is one development run per task and no variance across agent runs. Seeds apply only to DexJoCo test episodes. The agent sees counts on the repeated held-out evaluations, which allows mild selection pressure, although validation (61.7%) and test (60.6%) are close.

  • Low severity

    Results depend on a non-public frontier model (GPT-6 Astra at highest reasoning effort) and B200 clusters. RAX's DexJoCo results, the closest coding-agent program-synthesis competitor, are excluded because they use a different model.

Questions for the authors

  • What is PyRUA-Dex's Full-channel success rate restricted to the same 78 episodes used for the online-agent comparison?
  • How much do shared memory, eight-way parallelism and the distilling agent each contribute? What does a single exploration agent achieve at a matched token budget?
  • How sensitive are the results to the hand-written stage-level goal texts and to stage-count feedback? What happens with only the benchmark's task description?
  • What are the success rates over repeated hardware trials for each task in Table 3, and how many user instructions entered the simulation per task?
  • How much does the final program vary when the pipeline is rerun on the same task?
  • What does a single-shot program written against the codebox achieve, to separate the primitive layer from the harness?
  • What were the refinement token counts for the three tasks without recorded counts, and what is the online agent's token cost per episode at 1x budget?

Related in the directory

Open-source projects

Every exploration, refinement, curation and distillation agent is a Codex CLI session.
RAX's DexJoCo results used Claude Code; the paper excludes them as not comparable.

More tools on the same problem

Products and open-source projects in the directory closest in meaning to this paper.

Train agents by conversation; links an arXiv paper
Skills that delegate coding tasks to a separate agent CLI for review.
Captures Claude Code feedback and syncs it into CLAUDE.md and AGENTS.md.
Configures the coding agents you already use with shared memory, curated skills, MCP servers and personas.
Bounded-autonomy plugin harness for coding agents

Coding agents can translate language instructions into robot programs. For contact-rich manipulation, a key challenge is to generate and refine control logic that responds to physical interaction. We present FORCA, a coding agent that takes visual observations and wrist force/torque (F/T) measurements as input to write Python programs for contact probing and force-responsive motion. Between executions, the agent inspects force records alongside visual outcomes to diagnose failures and revise both motion and force-feedback control logic. FORCA requires no demonstrations, task-specific training, or simulation. Across five real-robot tasks, we demonstrate its effectiveness in three forms of contact-rich manipulation: improving manipulation accuracy, adapting to changes in object or surface properties, and regulating contact under surface variation and object motion. Compared with a vision-only variant of the same agent, FORCA improves grasp accuracy and task success and reduces contact loss in wiping and peeling.

Xiao Tan, Yixuan Wang +2

Agentic robotics systems combine planners with robot harnesses to perform complex manipulation tasks. Recent work improves these systems through better harnesses and external memory, but relies on powerful closed-source models as planners and does not improve the planners' own capabilities. In contrast, coding agents have improved substantially by post-training the model itself. We therefore investigate whether post-training can also improve robot planners. However, applying it across robot harnesses requires accommodating different execution mechanisms, including VLA skill invocation and control-code generation. To this end, we introduce AgenticRoboRL, a framework for post-training robot planners across different harnesses. The training recipe combines supervised fine-tuning with multi-turn reinforcement learning. To accommodate different execution mechanisms, harness-specific adapters connect recorded planner interactions with task outcomes, enabling a common RL training pipeline while keeping execution components fixed. On LIBERO-PRO, AgenticRoboRL raises the success rate of a 9B-parameter planner from 18.1% to 71.0% without external memory, approaching the 72.1% achieved by Codex (GPT-5.5) with external memory. These results demonstrate post-training as an effective approach for improving robot planners. We will release the framework and trained planner checkpoints.

Xinxin Liu, Bingxin Xu +5

Long-horizon manipulation requires robots to translate task intent into physical interactions as the scene changes. Vision-language models (VLMs) offer semantic and spatial reasoning, while visuomotor policies provide fine-grained control. Yet ambiguous goals and dependencies between actions make their integration challenging. We introduce Atomic Policy, a framework that composes learned manipulation skills through grounded steering and execution feedback. A VLM estimates the symbolic state and goal, and a PDDL solver constructs a skill plan. An agentic harness steers each skill through language, visual pointing, or both, and verifies its outcome to guide phase transitions and replanning. A common phase-level interface supports specialized policies and generalist action models. Experiments in simulation and on a real robot show how Atomic Policy improves task following and supports recovery in complex, long-horizon manipulation. Project page: https://aaronzkd.github.io/atomic-policy/

Kaidi Zhang, Pengyuan Guo +7

Robots should adapt to unfamiliar environments and acquire new skills through interaction, then execute those skills efficiently with practice. Vision-language-action policies provide efficient control, but often need additional human demonstrations to handle unfamiliar settings; reasoning agents can discover solutions using broad prior knowledge and robot-control APIs, but repeated deliberation and repair are costly. Inspired by human learning through reasoning and practice, we propose RoboEvo$^2$, a framework for recursive harness-policy co-evolution. In Policy-to-Harness (P2H) evolution, policy failures guide a coding agent to search complementary Code, Code+ICL, and Code+Policy routes, consolidating verified solutions into reusable skills, routing strategies, and experience memory. In Harness-to-Policy (H2P) evolution, verified trajectories provide supervised training, while Counterfactual Preference Distillation (CPD) teaches the policy to favor successful corrections over failures from the same starting state. The improved policy provides stronger motor skills for subsequent search, while its remaining failures redirect harness evolution, closing the reciprocal loop. Through recursive co-evolution without additional human demonstrations, RoboEvo$^2$ improves standalone success from 11.0% to 84.1% and hybrid success from 30.4% to 90.5% on LIBERO-PRO, with similar gains and reduced agentic costs on RoboTwin C2R. Further experiments demonstrate autonomous task acquisition, cross-embodiment harness transfer, and 95.0% hybrid success on the Unitree G1-D. Our models and code will be publicly released.

Chenzhi Liu, Jiehong Lin +10

Scaling robot learning requires demonstrations that combine realistic visual observations with reliable action supervision. Simulation-based synthesis faces a substantial visual gap relative to real environments, while video-only generation struggles to maintain physically consistent interactions and provide aligned action labels. We present DemoFoundry, an automated framework that couples coding agents with generative rendering to synthesize photorealistic and physically grounded robot demonstrations. Coding agents both construct aligned real--proxy video pairs from existing robot episodes to train a video renderer and write executable interaction programs to generate new demonstrations. Given a scene reference and task instruction, an agent reconstructs task-relevant geometry and writes a control program without requiring target-task human demonstrations. Program execution in a physics simulator produces proxy videos with aligned robot states and actions. The video renderer translates these proxy videos into scene-consistent, photorealistic observations, reducing the need for detailed appearance modeling in each scene. Automated task-execution checks select successful trajectories for rendering and policy learning. Experiments show improved visual quality and action--video consistency. Policies trained on the generated demonstrations outperform raw-simulation training and approach the performance of training on an equal number of real demonstrations.

Ruixiang Wang, Xinyue Yao +4

Existing approaches for robot learning in simulation often require substantial manual effort to construct scenes and specify tasks, limiting training scalability and data diversity. Meanwhile, in-the-wild robot demonstrations naturally provide diverse and realistic observations of real-world interactions. Leveraging these demonstrations for simulation requires both high-fidelity visual reconstruction and physically consistent interactions. General-purpose agents offer flexible adaptation to diverse scenarios and strong reasoning about 3D spatial relationships, while specialized generative models provide high-fidelity reconstruction of scene appearance and geometry. We introduce WorldMirror, an agentic real-to-sim framework that constructs interactive digital twins from in-the-wild robot demonstrations. Our central idea is to formulate real-to-sim construction as the iterative refinement of an executable world program. A coding agent decomposes the observed scene, plans reconstruction steps, and orchestrates specialized image and 3D generation tools, refining the program through verification feedback. A camera-pose-anchored scene representation organizes the world into static visual context, support geometry, and editable interactive assets while preserving spatial relationships among the scene, objects, and robot. The agent uses this representation to diagnose and correct reconstruction errors, enabling physically consistent interaction and trajectory replay. Experiments on DROID demonstrate that WorldMirror can reconstruct visually faithful and geometrically consistent interactive worlds while preserving the physical validity of recorded robot trajectories.

Tianling Xu, Weijie Wan +10

The Harness Hub newsletter

New harness companies, projects, releases and the monthly State of Harness report, in your inbox.