Coding Agents in the Physical World: 80% Open-Book vs. 47% Closed-Book on the Embodied First Exam
This article examines why "knowing how to write code" does not translate into "being able to operate a robot," and reviews Embodied First Exam (EFE), a unified benchmark for general-purpose coding agents on simulated robots. It covers the exam's scope (1,156 tasks, 2,288 test cases, 35 task suites, 23 simulators, 47 robots in 8 morphologies), the three evaluation modes, and the headline result: the strongest agent solves 80% of core tasks in privileged mode but only 47% in standard mode. You will find the mode comparison table, example evaluation code, ablation findings, a failure-labeling study across 10 agents, engineering guidance for cloud-based evaluation, and practical recommendations for anyone measuring agent performance on embodied tasks.
Introduction: When Coding Agents Enter the Physical World
Coding agents can already handle remarkably complex tasks in the digital world: reading a repository, locating defects, editing implementations, running tests, and driving all kinds of systems through programmatic interfaces. If a robotics platform exposes a control API, an agent can in principle command a robot to grasp objects, move around, and perform more elaborate manipulations.
But robotic tasks differ from software tasks in three fundamental ways, and those differences are what separate “can write code” from “can operate a robot.”
- Incomplete information. Software tasks usually allow access to the full repository and runtime state. Agents in physical environments perceive the world only indirectly, through cameras, depth sensors, force/tactile sensors, joint encoders. Perspective, noise, occlusion, and calibration error mean their state estimate can diverge from reality.
- Irreversible actions. A code bug can be rolled back and patched. Once a robot picks up a cup, knocks something over, or drops a part into the wrong slot, the environment state has already changed — and the problem often only surfaces after the action has executed.
- The environment does not wait. Reasoning and decision-making take time. If the task target is moving or adversarial, or the robot is executing inside a dynamic scene, being one step late can mean failure.
Three foundational questions follow: which robotic tasks can general-purpose coding agents complete? Under which constraints? And where do they fail?
To answer these questions systematically, a joint research team from several universities proposed the Embodied First Exam (EFE): a unified evaluation framework that plugs various coding agents into simulated robots. The work has four core components:
- A large-scale, multi-category, high-difficulty unified exam;
- Three evaluation modes that quantify how far an agent is from real robot deployment;
- Unified infrastructure where switching models or frameworks is a matter of changing parameters;
- Systematic failure analysis.
Each is unpacked below.
1. The Unified Exam: Scale, Breadth, and Difficulty
1.1 Scale: Far More Than “Pick and Place on a Table”
EFE comprises 1,156 tasks and 2,288 test cases. A “test case” here means one evaluation of a task under one mode; the same task is scored separately in different modes. The exam spans 35 task suites, 23 simulators, and 47 robots across 8 categories:
- Arms: single-arm, dual-arm;
- Manipulation: dexterous hands;
- Legged and humanoid: humanoids, mobile robots, quadrupeds;
- Specialized morphologies: aerial robots, musculoskeletal models.
The task suites come from two sources: 26 adapted from existing benchmarks and 9 built from scratch by the team. The new portion contains 411 tasks, specifically designed to fill capability gaps beyond tabletop pick and place. In evaluation design terms, this is a deliberate widening of the capability surface: robots of different morphologies differ sharply in observation space, action space, and control frequency, so testing all of them inside one framework is the only way to produce capability profiles that can be compared across agents.
1.2 Breadth: From Single-Step Manipulation to Adversarial Play
The task spectrum falls into roughly five layers:
- Fine-grained manipulation: untying knots, assembling furniture, turning book pages with a dexterous hand, copying a painting with a brush. These test dual-arm coordination, long-horizon planning, contact control, and continuous precision control respectively.
- Dynamic interaction: catching a thrown ball, playing a full match of table tennis or fencing. The target itself is in motion, requiring real-time perception and fast reaction.
- Goal-conditioned tasks: the agent is given only a target image of the completed state and must infer the action sequence on its own.
- Safety-aligned tasks: recognizing and refusing dangerous requests.
- Cross-environment transfer: deploying a controller to a simulator with unknown dynamics parameters.
Layers 3 through 5 deserve particular attention, because they mirror typical real-world deployment situations: the goal is specified only as “what the result should look like,” the request may carry risk, and the robot and site parameters do not match the training environment.
1.3 Difficulty: The Best Agent Solves Only About Half in the Core Standard-Mode Tests
Difficulty here is not merely a matter of task count. Across 456 standard-mode core tests, the strongest current coding agent solves only about half. This says two things:
- General-purpose coding agents have a clear ceiling on embodied capability;
- The unified exam has enough scale and discrimination to serve as a benchmark for tracking agent progress over time.
2. Three Evaluation Modes: Quantifying “How Far From the Real Robot”
2.1 Two Extreme Constraint Settings
| Dimension | Privileged Mode | Standard Mode |
|---|---|---|
| Available information | Full simulator state | Sensor observations only |
| Retry budget | Unlimited resets | No resets by default |
| What the constraint means | An open-book exam with the answer key always available; measures the capability ceiling | Limited information, one shot; approximates real robot deployment |
In addition, the evaluation suite defines a third mode that sits between the two, used to decompose how each constraint contributes.
2.2 80% vs. 47%: Standard Mode Loses More Than 40%
On the same set of 391 core tasks, the strongest agent solves 80% in privileged mode and only 47% in standard mode — a 33-percentage-point gap. This means:
- When the agent can read the full simulator state and retry indefinitely, its success rate is about 1.7x the standard-mode figure.
- The privileged-mode score measures “potential capability”; the standard-mode score measures “capability that can actually be delivered under real constraints.”
- Going from privileged to standard, success drops by more than 40% relatively. The two numbers cannot be mixed or substituted for one another.
From an engineering perspective, standard mode is closer to a production scenario of “single delivery, no rollback.” The 47% in standard mode is the credible lower bound of what agents can do today; the 80% in privileged mode only shows that the tasks are not outright impossible, but that agents cannot yet do them reliably under existing conditions.
2.3 Understanding the Mode Difference Through Example Code
def evaluate(agent, task, mode):# mode determines the agent's observation channel and retry budgetobs = make_sensor_only_observation() if mode == "standard" \else make_full_state_observation() # privileged mode: inject full simulator stateepisode = Episode(obs, max_resets=None if mode == "privileged" else 0)while not episode.done and not episode.failed:action = agent.step(episode.observation()) # the agent produces its own actionsepisode.apply(action)# both modes return the same result fields, keeping results comparablereturn {"task": task.id,"mode": mode,"success": episode.success,"resets_used": episode.resets_used,"trace": episode.trace(), # full trajectory, for failure analysis}
Running the same task with the same agent in standard and privileged yields a comparable pair of results. The gap reflects the “bonus” contributed by information completeness and retryability, and the third mode splits that bonus further into two sources: “being able to see” and “being able to start over.”
3. Unified Infrastructure: One Command to Start the Exam
3.1 Three Design Principles
- Single entry point: the evaluation starts with one command.
- Two-parameter switching: changing the underlying model or agent framework takes only two parameter changes, so different agents can be compared on exactly the same problem set.
- Open control style: how to drive the robot is left to the agent — it can issue commands directly, write control programs, or train a policy.
3.2 Why Control Style Is Left Open
A large share of the difference between general-purpose coding agents shows up in “which tools they choose to solve the problem.” If the evaluation fixed the calling layer, it would effectively choose the tools for the agent and measure only its fluency with those preselected tools. An open design puts policy-level, code-level, and interface-level solutions on the same stage, which is closer to how agents behave in real work.
3.3 Reproducibility Guarantees
So that results remain comparable across teams and across time, the unified infrastructure should at minimum:
- Pin task definitions, simulator versions, and random seeds;
- Record the model and agent framework versions used in each run;
- Preserve full decision trajectories and execution records for post-hoc review;
- Distinguish the compute resources each task requires, and log actual consumption.
4. Systematic Analysis: Not Just Scores, but Causes
4.1 Ablation: Adding Resets Helps More Than Adding Precise State
The study ran a controlled comparison on a strong model:
- Provide full simulator state only, with no additional resets;
- Open unlimited resets only, with no full state.
The latter performed clearly better, which can be summarized as: seeing accurately does not mean acting accurately.
Two implications follow:
- Perception is not the main bottleneck. An agent that “sees clearly” yet “acts wrongly” indicates the difficulty lies in turning observations into executable, verifiable action sequences.
- A chance to correct errors matters more than an information advantage. In a simulator with free retries, an agent can converge on success through repeated trial and error. Real robots barely have a reset button, so standard mode without resets is closer to reality, and its 47% score deserves more weight.
4.2 Failure Labeling: Different Agents Often Fail at the Same Step
The study annotated 6,027 failures from 10 agents stage by stage, averaging roughly 600 failures per agent. The result: different agents frequently get stuck at the same step.
This reveals an easily overlooked fact — failure is not only about “the agent not being strong enough.” A substantial share originates in the task itself, the physical interaction, and the simulation environment. For instance, one particular stage may be punishing for every agent, or a simulator may exhibit physical instabilities that are hard to overcome. This also explains why the strongest agent still fails to complete one in five tasks in privileged mode.
Two lessons follow:
- End-to-end success rate hides the true sources of failure; only fine-grained labeling pinpoints where to improve.
- Evaluation should count “agent capability” separately from “intrinsic task/environment difficulty.”
4.3 The Football Task: From Writing Code to Training a Policy
In the football task, given GPUs or comparable compute and usable training libraries, agents often stop hand-writing controllers and instead build a training pipeline themselves, obtaining a policy via reinforcement learning.
This shows what is distinctive about general-purpose coding agents: they can reformulate “control the robot” as “write a training program and run it.” The corresponding evaluation implication is that compute resources have become a key variable affecting results. If different agents have access to different resources, score comparisons are not entirely fair, so the evaluation must record resource consumption faithfully.
5. Engineering the Evaluation: Bringing Robot Tasks to the Cloud
Once evaluation scales up, scheduling and resource management become new problems. Simulation environments are typically compute-intensive, while agent calls to large models place steady demands on the inference path. The team built the evaluation pipeline on general-purpose cloud offerings from Baidu AI Cloud (service availability varies by region, so check the official documentation for what applies in your market):
- Container platform: isolate and elastically scale simulation environments, giving each task its own instance.
- Object storage: hold task definitions, trajectories, and video data for reproduction and analysis.
- Logging service: aggregate the agent’s decision chains and simulator execution logs to speed up failure localization.
- Monitoring and alerting: track evaluation progress, resource utilization, and abnormal exits.
- Message queue: carry task dispatch and result return, smoothing peak concurrency.
With a containerized architecture, externalized state, and asynchronous task scheduling, extending from a desktop arm to quadrupeds, humanoids, and more morphologies requires only adding the corresponding simulation images — no changes to the core evaluation logic.
6. Practical Recommendations
- Compare both modes. Cover at least privileged and standard modes, and judge deployability by the standard-mode result.
- Label failures at fine granularity. Annotate failures by stage — perception, planning, control, execution, safety — and separate shared bottlenecks from individual weaknesses.
- Make resources explicit. Log compute consumption and retry counts so that agents are evaluated under comparable conditions.
- Move from single-step to long-horizon. Use multi-stage tasks to probe complex skills continuously, and avoid being misled by high scores on single-step manipulation.
- Simulation still needs real-robot validation. Simulation covers task diversity and supports low-cost iteration, but differences such as sensor noise, control latency, and contact friction still need to be calibrated on real hardware.
Conclusion
Whether a coding agent can do robotic work comes down to three constraints: whether information is visible, whether actions can be retried, and whether the environment waits. The gap between 80% in privileged mode and 47% in standard mode is a reminder that:
- An agent that “can write code” in the digital world is still visibly far from stable reliability in the physical world.
- Seeing accurately does not equal acting accurately, and writing programs does not equal controlling a robot.
- A unified exam, multi-mode evaluation, and systematic failure analysis are the key step in turning that gap into an engineering problem that can be measured and improved.
