Skip to content
Robotics.world

Research

CodeActionBench: Evaluating Agentic Code-as-Policy for Embodied Manipulation

General-purpose multimodal models can see, reason, and write code, which raises the question of whether one model can do all three to control a robot. Existing Code-as-Policy systems often hand the…

The paper’s first page · arXiv:2609.33807
arXiv
2609.33807 · Preprint · not peer-reviewed
Published
2026-09-27
Authors
Yiheng Lyu, Xueying Jiang, Wenhao Li, Shijian Lu, Gongjie Zhang

In plain words

General-purpose multimodal models can see, reason, and write code, which raises the question of whether one model can do all three to control a robot. Existing Code-as-Policy systems often hand the model object locations, grasps, or task skills from external modules, so it is unclear how much of the manipulation problem the model itself actually solves.

AI summary

Overview

Research area: Robotics — embodied manipulation, multimodal foundation models, and Code-as-Policy agent evaluation.

Technical level: Advanced (research benchmark paper; accessible to readers with basic familiarity with robot learning).

Scope: A benchmark of 25 simulated manipulation tasks that measures how well general-purpose multimodal models can turn RGB observations into executable robot policies without task-specific training, demonstrations, depth sensing, or specialist perception modules.

What This Paper Is About

General-purpose multimodal models can see, reason, and write code, which raises the question of whether one model can do all three to control a robot. Existing Code-as-Policy systems often hand the model object locations, grasps, or task skills from external modules, so it is unclear how much of the manipulation problem the model itself actually solves. CodeActionBench isolates that question by giving every agent the same restricted robot API and scoring the final physical outcome with a hidden verifier.

Key Contributions

  1. A controlled setting for joint visual interpretation and policy construction. Agents receive no auxiliary specialist outputs, no privileged scene state, and no predefined task policies, so selecting visual evidence, forming 3D estimates, and choosing grasp targets all remain with the model.

  2. CodeActionBench itself: 25 manipulation tasks built in SAPIEN on RoboTwin 2.0's ALOHA-AgileX dual-arm configuration, with a shared robot API, fixed resource budgets, a hidden physical-outcome verifier, and recorded trajectories.

  3. Baselines across nine agent configurations (675 attempts total), including seven sharing a reference harness and two using Claude Code and Codex CLI as harnesses.

  4. Trajectory-level diagnostics using 55 subgoal checkpoints and 72 spatial checkpoints to separate early failures (never reaching the region) from late failures (losing the object, missing precise contact, or misjudging completion).

Main Findings

  • Wide performance spread: Across nine configurations and 675 attempts, success rates range from 2.7% to 73.3%, with 184 of 675 attempts succeeding (27.3%).

  • Best configuration: GPT-6 Astra with Codex CLI reaches 73.3% success and solves 22 of 25 tasks at least once in three attempts. No configuration solves the entire suite.

  • Harness matters as much as model: Claude Opus 5 scores 49.3% with 19/25 tasks under the reference harness versus 45.3% with 14/25 under Claude Code — a 4.0 percentage-point success gap but a five-task coverage gap.

  • Among the seven reference-harness configurations: Claude Opus 5 leads at 49.3% success and 76% task coverage, followed by Gemini 3.6 Flash at 20.0% success and GPT-5.6 Sol at 36% coverage.

  • Efficiency advantage for the leader: Compared with Opus under the reference harness, Astra achieves 73.3% versus 49.3% success with 15.1% lower cost and 60.0% shorter median execution time; its median of 477.2 s is the shortest of the nine configurations. Gemini 3.6 Flash has the lowest total cost at $52.00 with 20.0% success.

  • Spatial progress: Only three configurations exceed 50% spatial checkpoint coverage — Astra at 87.3%, Opus (Reference) at 73.6%, and Opus (Claude Code) at 73.4%. By call 22, Astra exceeds every other configuration's final spatial coverage.

  • Where attempts fail: Of 491 failed attempts, 280 show no confirmed arrival at the relevant region, 77 show no confirmed object control, and 122 reach the region but do not complete or later lose the subgoal; six fail only the final gripper condition and six remain unresolved. The three strongest configurations have far fewer unconfirmed-arrival failures (8, 13, and 17) than the other six (34 to 51 each).

  • Failed motions can still look successful: Tasks can contain successfully executed robot motions yet fail verification, because reaching a commanded pose is not the same as establishing the physical relations the task requires.

  • Completion judgment varies sharply: Astra calls done in 72/75 attempts and gives a correct claim in 68/75 (90.7%), versus 63/75 (84.0%) and 50/75 (66.7%) for Opus Reference, and 54/75 (72.0%) and 42/75 (56.0%) for Opus Claude Code. On failed attempts, Astra reports failure correctly 70.0% of the time versus 36.8% and 29.3%; overclaims account for 15.0%, 34.2%, and 26.8% of their failed attempts.

  • Missing claims are not wrong claims: Claude Sonnet 5 leaves 70/75 attempts without an explicit claim, 69 of them ending at a budget limit, so absence of a judgment must be distinguished from an incorrect one.

Methodology in Plain English

The team built 25 manipulation tasks in a physics simulator using a fixed dual-arm robot setup. Randomization is disabled and every configuration uses the same scene seed per task, so all agents face identical physical situations.

Agents see only RGB images — a 640×480 head camera and two 320×240 wrist cameras — plus camera calibration, robot state, and contact feedback. There is no depth image and no object pose. The shared API offers geometry tools that compute 3D points from image locations the agent chooses, and motion tools that execute agent-specified end-effector poses and gripper commands, rejecting infeasible plans and stopping stalled motions. The agent either calls tools directly or writes Python programs that compose them through run_code, then revises based on what came back.

Budgets are fixed per task before evaluation: a tool-call budget scaled from estimated expert completion time and a simulation-time budget of at least 60 seconds, scaled from an official demonstration's duration. Each configuration made three attempts per task, giving 75 attempts each and 675 in total.

Scoring is done by a hidden verifier that never reports back. Twenty-one tasks are scored on the final physical state; four (hammer striking, bell pressing, stapler pressing, bin pouring) are scored on whether a required event occurs during execution. When an agent calls done with a success claim, that claim is recorded and later compared with the verifier's outcome, which separates "did the robot do it" from "did the model know it had done it."

For deeper analysis, the authors defined subgoal and spatial checkpoints and replayed recorded trajectories to assign each failed attempt to its earliest evidence-supported failure stage.

Why This Matters

Impact on research: The paper separates two things that are usually confounded in embodied AI evaluation — the capability of the underlying model and the scaffolding of the harness and perception stack. Fixing the API, budgets, and verifier across configurations gives a comparison baseline for future Code-as-Policy work, and the checkpoint and completion-claim analyses expose failure modes that a single success rate hides.

Real-world applications:

  • Warehouse pick-and-place and bin manipulation, where agents must locate and retain objects without external pose feeds.
  • Household robotics involving articulated objects, stacking, and tool use, which this task suite samples directly.
  • Rapid prototyping of robot behaviors by having a general model write and revise programs over an existing API.
  • Safety and reliability monitoring, where an agent's own success claim can be checked against an independent outcome signal.

Industry relevance: The cost and latency results matter for deployment. The finding that the strongest configuration was also 15.1% cheaper and 60.0% faster than a close competitor suggests capability and efficiency are not necessarily in tension, which affects the economics of running agentic robot control. The overclaim rates (15.0% to 34.2% on failed attempts) are a direct warning for any system that relies on an agent's self-reported task completion.

Future Directions

  • Generalization beyond fixed instances: The evaluation uses one fixed scene per task and a single dual-arm embodiment; testing across scenes, task families, and embodiments is explicitly left open.
  • Physical robot transfer: All 25 tasks are simulated, and transfer to real hardware remains untested.
  • Closing the completion-judgment gap: Overclaims on failed attempts and missing claims under budget exhaustion both need better termination and self-assessment mechanisms, not just better manipulation.
  • Scaling evaluation: Inference cost and wall time limited the number of configurations and attempts; more attempts would tighten estimates, and sequential model calls remain a latency constraint for time-sensitive manipulation.

Target Audience

Researchers and engineers working on embodied AI, robot learning, and multimodal agents, particularly those building or evaluating Code-as-Policy and VLA systems. It is also useful for practitioners choosing between model-and-harness combinations for robot control, and for anyone designing benchmarks that need to separate model capability from interface design. Readers without a robotics background can follow the problem framing but will need familiarity with manipulation concepts to interpret the checkpoint analysis.

Authors’ abstract

How well can general-purpose multimodal models turn visual understanding and reasoning into embodied manipulation via executable code? We introduce CodeActionBench, a benchmark of 25 manipulation tasks that evaluates this capability through agentic Code-as-Policy. Without task-specific fine-tuning, demonstrations, external specialist perception or grasp modules, privileged scene state, or predefined task policies, agents should select visual evidence, form task-relevant 3D…

The full abstract on arXiv
Read the original paper

Related papers