Lingxiao Guo
Agents × simulation

An Agent in the Physics Sandbox: Real2Sim and Dexterous Retargeting with GPT-6

I gave GPT-6 recorded robot episodes and one paragraph of instructions. It calibrated the cameras against the robot itself, built sim-ready assets and replayed two DROID episodes under contact dynamics. On a bimanual snap-fit task it failed, and said so. Then, from video alone and with some steering from me, it retargeted a Rubik's cube turn and an egocentric serving task onto Wuji hands. Here is what it did, what I had to supply, and what I think it says about simulation.

Lingxiao Guo Carnegie Mellon University September 9, 2026 ~25 min read
real2simdexterous retargetingMuJoCoagents
Recorded DROID episodes next to the agent's MuJoCo replays (objects move only through contact), then two Wuji hands turning a simulated Rubik's cube and serving from an egocentric video. Everything on the right side of each comparison is simulated.
TL;DR
  • Real2sim from robot data. From one prompt per episode, GPT-6 (gpt-6-astra, Codex CLI) rebuilt two DROID episodes: it calibrated cameras using the robot as the calibration target (logged camera poses off by 80–90 px → 5–8 px), fitted procedural assets with convex collision geometry, and replayed the recorded joint states with torque-limited control. The marker and the faucet lever moved only through simulated contact. Under an hour of agent time per episode.
  • It caught its own false success. The faucet replay first "passed" with zero finger contact (the lever had sagged under gravity). The agent noticed, fixed the hinge, and rewrote its own success test.
  • It failed on snap-fits. A bimanual microphone-mounting task: 0 of 3 mics stayed mounted in any of 4 physics variants. The attractive video is a kinematic fit, and the agent labelled it that way. Rigid contact cannot express a compliant clip.
  • Dexterous retargeting from video. No states, no actions. On a Rubik's cube clip, the Wuji hands completed 3 of the clip's 5 layer turns by finger contact alone. On an egocentric serving video, the bowl and spoon moved through contact to complete the task. Both needed substantive steering from me, which I list below.
  • My takeaway. On these tasks the ceiling was set by the simulator, not by the agent. Simulation's value here is as a sandbox (cheap, resettable, inspectable), which is a separate property from its fidelity as a physics model.

1The question

Real2sim, turning a recorded robot episode into a simulation that reproduces it, is a pipeline people usually assemble by hand: synchronize streams, calibrate cameras, model the objects, tune contacts, check physics, render. Each stage has its own tools and its own ways of failing quietly. I wanted to know how much of that an agent could do from a plain-language request, and where it would break.

So I ran two sets of experiments this week. The first used robot episodes, where the robot's own kinematics provide a metric reference. The second removed the robot entirely: two videos of hands, to be physically retargeted onto a dexterous robot hand. I posted short threads about both (real2sim, dexterity). This post is the long version. I went back through the agent's session logs to check every number, and in a few places the logs are less flattering than my threads were. I have corrected those here.

2Part I: real2sim from robot episodes

Setup and prompt

Three episodes. Two from DROID[1]: ep0, a Franka Panda lifting a marker out of a bowl onto the counter; ep2, a Franka FR3 pushing a faucet lever down. And one from a bimanual YAM station: pick, hand off and attach three microphones to holders. This was the hard one.

The agent was GPT-6 (gpt-6-astra, reasoning effort xhigh) in the Codex CLI, with full machine access. It used that access: it fetched the Franka model from MuJoCo Menagerie, the ZED cameras' factory intrinsics from Stereolabs, and Franka joint limits from the web. The whole first prompt:

Prompt for DROID ep0 (paths shortened)
can you try real2sim from this droid episode: …/droid_samples/ep0_IRIS_move-object-into-or-out/recordings, to construct simready assets, ensure the robot replay is physical feasible to complete the task, and the replay renders at different view align the multi-view video well (multi-view consistency)? the data is from droid dataset using a franka arm. you can use blender as a tool, the blender is at …/blender-5.0.1-linux-x64. after done show me the rendered video at different views concat with the original video

ep2 was a one-line follow-up ("excellent! also try real2sim for this: …"). The microphone task was one more sentence pointing at the YAM station model on a lab server. Nothing in the prompts mentions calibration, collision geometry, MuJoCo, controllers or success predicates. Those choices were the agent's.

What "only RGB and actions" actually meant My tweet simplified the inputs. Each DROID folder held multi-view MP4s with per-frame timestamp sidecars, stereo SVO files, and trajectory.h5 with joint states, end-effector poses, gripper state, actions and logged camera extrinsics. The replay tracks the recorded joint states, not the actions. The YAM episode had intrinsics but no extrinsics. "One prompt" is true of the content. ep0 also needed two bare "resume" messages, after an auth error and a usage limit; none carried hints.
EpisodeTaskElapsedAgent turnsShell cmds / images viewed / new scripts
DROID ep0marker out of bowl57 min34 + 20 min97 / 45 / 20
DROID ep2faucet lever46 min15 + 29 min92 / 37 / 20
YAM bimanualmount 3 microphones81 min81 min (one turn)220 / 79 / 25

The pipeline it built

INPUTS multi-view video + timestamps joint states, EE pose, gripper+ logged extrinsics (DROID) robot modelMenagerie / station MJCF one paragraph of prompt syncsidecars / image matching FK checkmodel vs logged EE camera fitrobot as calibration target shared scene fitone pose per object, all views MJCF scenevisual + convex collision MuJoCo replaytorque-limited PDno welds, free objects checkstask predicate, contact time,penetration, torque limits Blenderrender through thefitted cameras fail: revise pass: export simulated poses YAM only: fitted kinematic reference → Blender, labelled "not physics-validated"
The pipeline the agent built for the DROID episodes. Blue stages are where the multi-view consistency comes from: every camera is fitted against one shared 3D scene anchored on the robot. The red loop is where most of its iteration went. The dashed path is the microphone task, where physics failed and the agent kept the visual fit separate from any physical claim.

No checkerboard: the robot is the calibration target

The DROID logs come with camera extrinsics, and the agent's first overlay showed they were wrong for ep0. In its words, the supplied calibration "visibly misplaces the robot in the images". Its fix uses the robot as the calibration object. At every timestep, forward kinematics of the recorded joint angles gives the 3D position of the flange. If you mark the flange in a few image frames, each mark is a known 3D-to-2D correspondence, and the camera pose follows from minimizing reprojection error. Using \(T_{A\,B}\) for the transform from frame B into frame A, with W the robot base:

$$ T_{WF}(t) = T_{WB}\,\mathrm{FK}_{BF}\bigl(q(t)\bigr), \quad T_{WC}(t) = T_{WF}(t)\,T_{FC}, \quad (u, v) = \pi\bigl(K,\; T_{WC}^{-1} X_W\bigr). $$

For the fixed external cameras, \(T_{WC}\) is the unknown. For the wrist camera, the constant hand–eye transform \(T_{FC}\) carries the camera along with the arm. Robust least squares (soft_l1) over rotation, translation and a focal length, with priors on the logged values, did the rest. The agent marked the flange pixels itself, by viewing frames and typing coordinates into its scripts. No human labelled anything, but there is no automatic detector either.

Two DROID frames with the robot's kinematic chain projected using logged extrinsics in red, missing the arm, and after the agent's fit in blue, on the arm
Robot as calibration target, DROID ep0. Red: the kinematic chain projected with the logged camera poses, about 80–90 px off. Blue: after fitting to forward kinematics and flange pixels the agent marked, 5–8 px. The logged poses moved by 0.50 m / 31° and 0.33 m / 26°.

For ep0 this took three stages: flange landmarks, then a render-and-compare refit, then a joint bundle adjustment with shared scene unknowns.

real2sim_ep0/fit_silhouette.py (trimmed)render → compare → refit the camera
sdf = cv2.distanceTransform(1-target, ...) - cv2.distanceTransform(target, ...)   # signed distance to traced outline
def fun(x):
    T, K = unpack(x)                                    # rotation vector, translation, focal
    mujoco.mj_forward(m, a); ren.update_scene(a, camera=cam, scene_option=opt)
    mask = np.isin(ren.render()[:,:,0], ids)               # segmentation of robot base links
    silhouette = np.sum(np.maximum((mask - target)*sdf, 0)) / target.sum()
    point = np.mean(np.linalg.norm(project(p, T, K)[0] - uv, axis=1)**2)     # flange marks
    rim = np.mean(cKDTree(project(rim_pts, T, K)[0]).query(RIM_MARKS)[0]**2)  # bowl rim
    return silhouette + .015*point + .08*rim + .1*((x[6]-535)/40)**2
fit = minimize(fun, x0, method='Powell', options={'maxiter': 16})

Final numbers for ep0: bowl-rim error 1.5 / 2.0 px and held-out flange error 10.7 / 13.4 px at 1280×720. One caveat: the held-out flange pixel was re-marked once after the first fit showed large errors (with the original marks the held-out error would be 32.6 / 57.7 px), so treat "held-out" as optimistic. For ep2 the logged extrinsics were already good; refining them jointly with seven named faucet and sink landmarks moved them only 9–24 mm. For YAM, which had no extrinsics, the agent marked the two wrist-camera mounts in the head image at six frames and fitted the head camera (2.41 px held-out). It then fitted each wrist camera's hand–eye transform from SIFT matches between head and wrist images, intersected with an assumed table plane (held-out median 13.0 / 5.2 px).

Sim-ready assets from landmarks and contours

No CAD came from the video. Every task object is a parametric shape whose parameters the agent fitted to landmarks and contours it marked across views, with every camera agreeing on one 3D pose:

Four panels: robot-base silhouette refit, wrist-view bowl rim circle and marker endpoints, sink rim fit, named faucet landmarks
What the agent fitted against: outlines and landmarks it marked itself in each view, all explained by one shared 3D scene. Some tiles show intermediate stages.

Physics: no welds, and a false positive it caught

Replay uses MuJoCo with a 1 ms timestep. The recorded joint positions are smoothed with a clamped cubic spline and tracked with a torque-limited PD controller plus bias compensation, clipped to the Franka's limits:

$$ \begin{aligned} \tau &= \operatorname{clip}\bigl(\,b(q,\dot q) + K_p(q^\star - q) + K_d(\dot q^\star - \dot q),\; \pm\tau_{\max}\bigr), \\ \tau_{\max} &= [87, 87, 87, 87, 12, 12, 12]\ \text{N·m}. \end{aligned} $$

The gripper follows its measured opening. There are no welds and no scripted object poses: the marker and the lever move only because fingers push them. That distinction is the whole point. You can make a convincing replay by animating objects directly, and it proves nothing about physical feasibility.

Two moments from the logs show the agent treating the simulator as something to interrogate, not just run:

real2sim_ep2/simulate.pyadded after the zero-contact "success"
result['pre_interaction_drift_deg'] = float(np.degrees(np.max(abs(arr[arr[:,0]<13,1] - initial))))
result['task_rotation_achieved'] = bool(arr[-1,1] > .55 and contact_time > .03
                                      and result['pre_interaction_drift_deg'] < 2)

On the rerun the lever stays at 0.0° until the gripper reaches it at about 17 s, then rotates to 40.0° with 0.2 s of finger contact. The image-based estimate of the recorded final angle is 37.8°, and the lever-tip error is 4.6 mm.

DROID ep0: marker out of the bowl
DROID ep2: faucet lever
Recorded episodes (left column of each) and the agent's reconstructions (right), rendered through its fitted cameras: two external views and the wrist view. Objects move only through simulated contact. In ep0 the marker lands about 13 cm from where the recording puts it, and the later roll off the counter is not reproduced. ep2 models the lever, not water or a valve.
CheckDROID ep0DROID ep2
Task under contact-only dynamics✓ lifted, carried, released, stays on counter✓ lever 40.0° (image estimate 37.8°)
Placement error13.3 cm from triangulated placementlever tip 4.6 mm
Arm tracking RMS0.00048 rad0.00039 rad
Peak penetration1.42 mm0.055 mm
Image alignmentrim 1.5 / 2.0 px; held-out flange 10.7 / 13.4 pxstatic landmarks 3.7 / 4.2 px

What it did, and did not do, with physical parameters

My thread said the agent "tunes [mass, inertia, friction] against the video, then sweeps them". Going back through the logs, that overstates it, and I want to be precise because this is the part people asked about most.

Every final physical value is the one the agent first assumed: marker 18 g, lever 120 g, hinge friction 0.10 N·m, microphone masses 0.22 / 0.12 / 0.23 kg. Physical code exposed these as arguments, and the agent ran trials that changed them. Only two of those trials tried to reduce a real–sim mismatch: lower marker–table friction and rolling resistance, to reproduce the marker's later roll off the counter. Neither reproduced it, and neither was adopted. The rest were sensitivity tests (heavier marker, stiffer hinge, 3 mm offsets, a halved timestep). The "27 runs" in my thread is a different experiment: a 3×3×3 grid over one microphone's start position and the gripper's closing time on the bimanual task, searching for any grasp that lifts it. One of 27 did.

Three panels: ep0 marker end positions for seven trials versus the recorded placement; ep2 final lever angle and peak force for four trials; YAM 27-run grasp grid with one lift
Everything the agent varied in simulation. ep0: no trial reproduces the recorded placement. ep2: success barely moves with hinge friction, although peak contact force does (11 → 29 N under a 3 mm offset). YAM: 27 start-pose and timing variants, one lift. Mass and friction stayed at their assumed values.

Then, after the reconstructions were done, I asked the agent for a retrospective on its parameter experiments. That code review turned up two defects that invalidate earlier trials:

  1. The heavy-marker trial scaled body mass and inertia after model compilation without calling mj_setConst, so derived quantities (subtree mass, inverse weights) stayed stale. The "30 g marker" run mostly simulated an 18 g marker.
  2. MuJoCo combines two geoms' friction coefficients by element-wise maximum unless an explicit contact pair overrides them. Lowering the marker's friction from 1.0 to 0.6 therefore left finger–marker friction at 1.2. The "low-friction grasp" never had low friction.

Both are easy mistakes and hard to notice, and I am glad it found them. But the honest framing is: agent-directed sensitivity testing, with no parameter identified, and the audit happened because I asked for it. The term "agentic physical-parameter ID" in my thread was mine; before I introduced it, the agent had called its own work "not full parameter identification".

Where it broke: three microphones

The YAM task is bimanual and long (95 s): pick each of three microphones, hand some off between arms, and press them into holders. The agent calibrated the cameras, built the assets, and fitted a kinematic reference in which all three microphones end up mounted. That reference looks right from all three cameras. Then it ran the physics, in four full variants (position servos, torque-limited PD with gravity feedforward, the recorded gripper action instead of the measured opening, and a shifted start pose). None of the four kept any microphone mounted.

Head camera, 4× speed. Left: the original. Middle: the agent's fitted reconstruction, with object poses written frame by frame. Right: the same robot motion under contact dynamics. None of the three microphones ends up mounted.

The agent's diagnosis, which I agree with:

What I appreciated most is that the agent never let the good-looking video stand in for a physical result. Every frame of the fitted reconstruction is stamped "FITTED 3D | not physics-validated", and early in the run it wrote that it would "report any assistance needed rather than count it as a contact-only success". It also corrected its own wrong diagnoses along the way. It first blamed a reversed gripper mapping; after measuring the simulated finger pads it reverted that, and found the microphone proxies were too thin.

The fitted YAM reconstruction from the head and both wrist cameras, 34–54 s. Visually close, but this is kinematic playback, not physics.

A note on multi-view consistency

One thing surprised me, and I should label it as my own observation rather than a result of this work. I have tried a number of 3D reconstruction and real2sim methods on DROID and on our bimanual data, including VGGT-Omega and MapAnything. None held objects consistent across views on these episodes, and none gave a better result than the agent's videos. The mechanism behind the agent's consistency is visible in its code: it never predicts per-view geometry. It fits one shared scene, one pose per object, and makes every camera agree with it. That is old-fashioned bundle adjustment, assembled on demand. It does not guarantee accuracy (the microphone masks show the two can come apart), but it rules out contradictory views by construction.

3Part II: dexterous retargeting from video

The second experiment removed the robot. The agent got only video, with no states, actions, object poses or camera calibration, and was asked to produce a physical replay on Wuji dexterous hands: each hand has 20 actuated finger joints with native torque limits of 0.15–0.65 N·m. Since there is no arm, the agent added six force-limited wrist degrees of freedom per hand as a stand-in. Same agent (gpt-6-astra), MuJoCo 3.4 for physics, Blender for rendering.

videono states/actions object real2simcube state / bowl, spoon hand referencescripted tips / MANO bounded IK26 DoF per hand task-critical windowsobject-frame contacttargets on the IK pose physics search + replaygrids / differential evolution,full replay from t = 0, validators agent reads the failure, edits code MANO + MapAnything (rice) Wuji hand MJCF "match events" (cube) dashed violet = supplied by me
The retargeting pipeline, merged across the two tasks. The agent built every solid box itself. The dashed inputs are the substantive help I gave: the robot hand model, an event-level objective for the cube, and an estimated hand pose plus point cloud for the serving video.

The Rubik's cube

Source. An 18-second clip of cube manipulation from Genesis's Gene 26.5 demo. I described it in my thread as a human hand; looking at it again, the source hands are gloved robot hands, labelled as an autonomous rollout. That makes this a robot-to-robot re-enactment on a different hand, which I think is still a fair test of physical retargeting, but it is not "human video".

Prompt for the cube (paths shortened)
…/rubik_clips/clips/genesis_rubiks_04-22.mp4 can you try real2sim and physical retarget from this video, so that: 1. use wuji dexterous hand from Left hand (…/left.xml) - Right hand (…/right.xml). to rotate a rubik cube 2.you can use blender at … as a tool 3. for the physical replay, you can leverage mujoco as a physical engine 4.for the replay, you need to keep the rubik cube rotation in the sim always corresponds to the video, especially for the block colors consistency

Recovering the cube's state. The agent found an existing hand-tracking run on this clip, judged it unreliable on robot gloves, and dropped it. Instead it built the cube's trajectory directly. It wrote a script to produce gridded crops, read the corner pixels of seven anchor frames by eye, solved anchor poses with PnP (assuming a 65 mm cube and a 2,200 px focal length), tracked up to 160 features per anchor with optical flow (forward–backward checked, glove pixels rejected by colour), and fitted root pose plus the active layer's angle per frame. The sequence is U U R L U. It observed 39 stickers and completed the 15 hidden ones to a legal cube state, checked with a Kociemba solver; the completion is not unique.

Modelling the cube. A Rubik's cube is hard to simulate. The agent built a sequence-specific nested-rotor mechanism with internal cubie contacts disabled. Inactive layers are latched; a layer is released inside its turn window and re-latched at whatever angle it physically reached. It also lightened the cube (50 g instead of 106.5) and cut layer resistance about 10–20×, after I suggested making the cube physically easier.

How it got there. This is where my thread was most wrong. I wrote that the cube "took three turns" and that "all I said was resume and try your best". The session actually has twelve user turns, and four of them were substantive steering before the first contact-only success:

050 min100150 Turn 1 (51.5 min): first replay, constraint-assisted (a moving weld on the cube core); the agent says so 1 · assisted replay Turn 2 (31.4 min): I suggest a lighter cube; parameters alone fail 19/19; the agent invents a wrist-driven pinch 2 · wrist pinch Turn 3 (28.7 min): I reject the pinch and ask for video-like finger motion; contact-only result +1.85° vs −90° 3 · wrong way Turn 4 (7.4 min): "what's the failure reason?" — the agent diagnoses its own contact planning 4 Turn 5 (23.7 min): I relax the objective to event level; first two unassisted turns, −88.7° and −91.4° 5 · 2 turns Turns 6–9 (14.7 min): visualization only, physics hash-checked unchanged 6–9 viz Turn 10 (7.8 min, low effort): "try as harder as you can" — differential evolution finds the third turn, −89.9° 10 Turns 11–12 (6.2 min): render; a fourth-turn attempt hits a cache bug, then the usage limit 11–12 my message "lighter cube?" "use finger motion like the video" "failure reason?" "keep the events the same" /goal "try as harder as you can" weld on the cube core 89°, 90° by wrist +1.85° vs −90° −88.7°, −91.4° −89.9° DE, 278 evals
The cube session, block widths proportional to agent time (171 minutes in total, 3 h 56 min of wall clock). The first contact-only turns came right after I relaxed the objective from frame-by-frame reproduction to matching events: which faces face the camera, and when. The third turn came from a no-hints "try harder" goal, in about eight minutes at low reasoning effort.

The key step was mine. In turn 5 I wrote: "you don't need to get exact frame-by-frame reproduction. just rough similar finger motion, and keep the event the same (like, at one time, which faces are facing to the camera; the angle doesn't need to be exact same)." The agent turned that into a written objective with acceptance criteria of its own choosing:

It then retargeted one event at a time. For each layer turn it set fingertip targets in the cube's frame, with the turning finger's target rotating with the layer over 31 steps. Each step is a bounded IK solve over 26 DoF per hand, with the palm held near its pre-turn pose plus pad-normal and penetration terms. It ran a small physics sweep from the saved state of the previous accepted event; every accepted prefix becomes immutable for the next. Two turns came out of that directly.

The third turn is the part I find most impressive. After I set the goal "try as harder as you can to achieve more successful turns", with no other hints, the agent realized the third turn needed the other hand to take the turning role. Twenty-one hand-built configurations failed. So it set up differential evolution over 12 residuals around the IK reference: six wrist offsets (±15 mm), four distal thumb and index joint offsets (±0.65 rad) and two contact-feedback gains, each candidate replayed from the saved two-turn state. It took 278 evaluations, then a short refinement, then a full replay from t = 0 to accept it.

rubik_real2sim/event_retarget/search_third.py (trimmed)score and search for the third turn
for frame in range(395, 642):                       # resume from the verified two-turn state
    ...
    if err > .09 or not np.isfinite(d.qpos).all(): return 20. + (10.7 - t)   # dropped cube
angle = abs(d.qpos[r.layer[2]] + np.pi/2)
score = angle + 8*max(0, maxpos-.015) + 1.5*max(0, maxrot-.45)
bounds = [(-15,15)]*6 + [(-.65,.65)]*4 + [(0,6)]*2        # wrist mm, distal joints rad, feedback gains
result = differential_evolution(evaluate, bounds, popsize=4, maxiter=5, workers=pool.map, seed=42)
report = evaluate(result.x, True)                  # a full replay from t=0 is what gets accepted
Two Wuji hands turn three layers of a simulated cube (−88.7°, −91.4°, −89.9°) through finger contact alone: no cube support, welds or layer motors. Rendered at 1.3× visual scale; physics uses a 65 mm, 50 g cube. The sim is time-warped relative to the source (events at 4.3 / 6.6 / 10.7 s vs. 3.8 / 5.3 / 8.7 s).
Three simulation stills: a wrist-driven pinch, a finger sweep pushing the layer the wrong way, and the accepted finger sweep
Three attempts at the first turn: a wrist-driven pinch (rejected by me as unlike the video), a finger sweep that pushes the layer the wrong way, and the accepted sweep after the objective was relaxed to event-level matching.

Final numbers for the accepted three-turn replay: completed-turn error ≤1.39°, cube root error ≤14.2 mm / 14.2°, peak penetration 2.92 mm, contact fraction 1.0 / 0.99, mean normal force about 3 / 2 N. That is 3 of the clip's 5 layer turns; the final reorientation is missing. A fourth-turn attempt failed from a cache-boundary bug the agent found itself, and then the session hit its usage limit. Before the turn-5 relaxation, its own failure analysis is worth quoting: "My methodological mistake was fitting fingertip positions to an already-moving reference cube…"

The egocentric serving video

Source. A 26.6 s egocentric video: the left hand moves a bowl from a saucer to the table, while the right hand lifts a wooden spoon from a rice cooker, tips it over the bowl, and returns it. (No rice is visible or simulated.) My prompt offered a relaxation up front: physically retarget the hands so objects follow their observed trajectories, "or, relax the constraint, to at least at the physical replay complete the tasks shown in the video".

How it progressed. This task took five build turns and about four hours of agent time, and the inputs changed along the way:

  1. Turn 1 (48 min): a task-level replay with the agent's own proxy hands, scene and waypoints set by inspecting the video.
  2. Turn 2 (23 min): I pointed it at the Wuji hand model. The task passes, but the object paths don't match the video (carry RMSE 0.22 m even after the best similarity alignment).
  3. Turn 4 (70 min): I raised the bar to follow the video's trajectories, appearance and finger motion. The agent installed MediaPipe's hand landmarker and pycolmap on its own, ran masked structure-from-motion over 160 views, and got the bowl to 11 mm RMS against its own inferred reference. Finger joints were still about 30° off during contact.
  4. Turn 5 (108 min): I supplied a bimanual MANO[2] hand-pose sequence and a MapAnything[3] metric point cloud from our lab pipeline. This is the final result. It is assisted, and I would not call it autonomous.
The same video across agent turns, time-aligned: the source; turn 2, the first Wuji run in an agent-estimated scene; turn 4, MediaPipe hands with an SfM camera; turn 5, with the supplied MANO and MapAnything cloud. The first Wuji run already completes the task. Matching the video took a fidelity request and finally supplied inputs.

The final method.

$$ \begin{aligned} \min_{q}\;\; & \textstyle\sum_{\ell} \bigl\| w_\ell\,(p_\ell(q) - \hat p_\ell(t)) \bigr\|^2 \\ +\; & \bigl\| 500\,\sigma(t)\,(p_{\text{pad}}(q) - c_{\text{obj}}(t)) \bigr\|^2 \;+\; \text{wrist and prior terms}, \end{aligned} $$

σ(t) ∈ [0, 1] is a smoothstep window (3.4–20.3 s for the left hand on the bowl, 8.5–12.6 s for the right hand on the spoon); cobj are contact targets fixed in the object's frame.

0 s510152025 left hand · bowl right hand · spoon left hand contact window 3.4–20.3 s (contact weight ramps in and out) contact window object-position feedback into the left wrist, 4.8–20.1 s object feedback grasp capture at 5.8 s: wrist follows the bowl, fingers hold the captured posture capture 5.8 s left release at 20.4 s release 20.4 right hand contact window 8.5–12.6 s object-position feedback into the right wrist, 9.7–12.6 s serve test window 10.9–11.65 s: spoon head inside the bowl radius, 4.5–16 cm above it, for at least 6 frames serve test right release at 12.95 s release 12.95 MANO hand tracking ends at 21.06 s MANO ends 21.06 s
Where the "task-critical segments" actually are in the serving replay. Contact windows, feedback windows, the grasp-capture time and releases were all chosen by the agent by inspecting the video and its failures; they are hand-timed, not learned. Outside the orange windows the hands imitate the human; inside them, contact wins.

Validation. The agent's own acceptance test (thresholds it chose) requires hand contact for over 95% of the carry windows, at least six frames with the spoon head over the bowl, the bowl back on the table, the spoon back on the cooker, and everything settled. The final run passes with 23 serving frames, full contact in both carry windows, and the bowl 3.2 cm from its reference. The most convincing check is an ablation the agent wrote itself: with hand collisions disabled, the bowl moves 3×10⁻⁷ m. Without the fingers, nothing happens. There are no object actuators, welds or external forces.

Final serving replay. Top left: source. Top right: the physical replay on Wuji hands composited onto the reconstructed point cloud. Bottom: the simplified collision geometry that is actually simulated, from two cameras. The right hand's spoon grasp does not match the video.
Four moments in the serving video: source frame, kinematic IK reference, and physical replay
Imitation vs. physics at four moments. The kinematic IK reference follows the human hand closely. In physics, the controller trades imitation for stable contact: fingers freeze into a captured grasp and the wrists follow the object. Physical fingertip error against MANO is 6.6 cm (left) and 10.6 cm (right).

What I supplied, and what the agent did

Supplied by meDone by the agent
DROID ep0 / ep2one prompt each; two bare "resume" after errorssync, calibration, asset fitting, MJCF, controller, contact tuning, predicates, Blender rendering, validation report
YAM microphonesprompt + path to the station modeleverything above; diagnosis of the physics failure; kept kinematic and physical results separate
Rubik's cubeWuji model; "lighter cube?"; rejected the wrist pinch; asked for the failure reason; relaxed the objective to events; "try harder" goalcube state from video, cube mechanism, event-wise IK, acceptance criteria, sweeps, the hand-role switch and DE for the third turn
Serving videoprompt offering semantic relaxation; Wuji model; a fidelity request; MANO hands + MapAnything cloudobject recovery, scene primitives, IK, contact proposals, controller (41 flags, about one per failure fixed), grid searches, validators

4What I take from this

The simulator set the ceiling, not the agent. The cleanest evidence is the microphones. The agent builds dynamics by calling MuJoCo, so a physical process MuJoCo cannot express is one the agent cannot reproduce. No amount of search recovers a snap-fit from a rigid contact model. The cube is the opposite case. It is hard to simulate faithfully, but the agent found a mechanism (latched rotors) that the simulator can express and that preserves what the task needs.

Simulation's value here is as a sandbox. What made the agent effective was not that MuJoCo is an accurate model of the world. In the ways that mattered most, it isn't. It is that the simulator is cheap to run, resettable, and its state is explicit enough that a failure can be attributed to a cause. Contact time, penetration depth, joint saturation, object pose: all inspectable. That is how the agent caught a lever that "succeeded" with no contact, and why it could localize the microphone failure to retention rather than friction. A sandbox's weakness as a physics model and its strength as an environment for retrospection are separate properties, and we usually only evaluate the first.

My role shifted from method to objective. On the cube, the decisive human input was not a technique; it was redefining what success meant (match events, not frames). On the serving video, it was better perception inputs. The agent filled in everything between. That is a different division of labour from writing a real2sim pipeline, and I think it is the honest way to describe what "end to end" meant here.

Why I care about this for robot learning. If an agent can physically ground a video this way, there is a path from video to robot data, and past that to post-training environments: build the environment from the video, then let a policy practise in it many times. Danfei Xu's framing fits: human data is robot data in disguise. These two experiments reconstruct one observed motion each, which is far from a closed-loop policy that generalizes. OpenAI's cube work learned exactly that, with large-scale RL. But the bottleneck I saw was cost, time and simulator expressiveness, not whether an agent could do the engineering.

5Limitations

What these results are not
  • Not a policy. Every result replays one recorded or observed motion. The dexterous controllers use privileged simulator state (object-pose feedback into the wrists) and do not generalize to new initial states. Nothing ran on hardware.
  • Not system identification. No physical parameter was identified; masses and frictions are assumed, and two sensitivity trials were flawed.
  • Not only RGB. The DROID replays used recorded joint states and the logged extrinsics as priors, plus robot CAD the agent downloaded.
  • Not faithful in every detail. ep0's marker lands 13 cm off, and its later roll is missing. The cube completes 3 of 5 turns, time-warped, with a lightened cube. The serving replay's right-hand grasp doesn't match the video.
  • Not unassisted for dexterity. The cube's event-level objective was my idea. The serving result used supplied MANO hands and a point cloud.
  • Sparse image metrics. Alignment is measured on landmarks and rims, not dense masks; held-out landmarks were re-marked once in two tasks.
  • Cost. 46–57 minutes per DROID episode; roughly 4 hours of agent time each for the cube and the serving video, with 260k–350k output tokens. The cube's source clip is third-party footage, which is why I don't reproduce it here.

Code. The robot reconstructions, including the failed microphone runs and their diagnostics, are at github.com/lingxiao-guo/GPT6-real2sim. The dexterous retargeting code is at github.com/lingxiao-guo/GPT6-dex-physical-retarget. A longer, more speculative essay on what agents mean for which robotics research is still worth doing grew out of the same experiments; this post sticks to what happened.

References

  1. Alexander Khazatsky, Karl Pertsch, et al. DROID: A Large-Scale In-the-Wild Robot Manipulation Dataset. RSS, 2024.
  2. Javier Romero, Dimitrios Tzionas, and Michael J. Black. Embodied Hands: Modeling and Capturing Hands and Bodies Together. SIGGRAPH Asia, 2017.
  3. MapAnything: Universal Feed-Forward Metric 3D Reconstruction. 2025.
  4. Emanuel Todorov, Tom Erez, and Yuval Tassa. MuJoCo: A Physics Engine for Model-Based Control. IROS, 2012.

Cite this post

@misc{guo2026agentreal2sim,
  title  = {An Agent in the Physics Sandbox: Real2Sim and Dexterous Retargeting with GPT-6},
  author = {Guo, Lingxiao},
  year   = {2026},
  month  = {September},
  url    = {https://lingxiao-guo.github.io/blog/agentic-real2sim/}
}
← All posts Astra Weight Edit: An Agent That Operates on Robot Policies →