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

Yiheng Lyu, Xueying Jiang, Wenhao Li, Shijian Lu, Gongjie ZhangarXiv 2026

TL;DR

CodeActionBench is a new benchmark designed to test how well multimodal LLMs can act as "embodied brains" by generating executable robot code from raw visual input. Unlike previous benchmarks that provide models with "cheats" like object coordinates or specialized grasp modules, CodeActionBench forces models to perform their own 3D spatial reasoning and iterative policy revision, revealing that while top-tier models like GPT-6 Astra are remarkably capable, they still struggle with precise spatial alignment and knowing when a task is truly finished.

What Problem Does This Paper Address?

In the quest for general-purpose robot intelligence, two main paradigms have emerged: Vision-Language-Action (VLA) models, which learn direct mappings from pixels to actions, and Code-as-Policy, where an LLM generates high-level code to call robot APIs.

However, existing Code-as-Policy evaluations often "hand-hold" the model by providing privileged information (like exact object coordinates) or using external specialist modules for perception and grasping. This masks the model's actual ability to reason about the physical world from vision. The authors argue that to truly evaluate a model's potential for embodied intelligence, we must remove these crutches.

Figure 1: Robot-control paradigms and agentic Code-as-Policy. (a) VLA learns action policies from large-scale robot datasets; Code-as-Policy generates programs that compose robot APIs to perform tasks. (b) CodeActionBench evaluates agents that autonomously construct task-relevant 3D estimates, manipulation targets, and policies, without depth sensing, external perception/grasp specialists, or privileged scene state.

Methods

The authors introduce Agentic Code-as-Policy, a framework where the model is responsible for the entire pipeline: selecting visual evidence from RGB images, estimating 3D spatial targets, constructing manipulation policies in Python, and revising those policies based on execution feedback.

Key technical components include:

  • Shared Robot API: Provides basic tools for RGB observation, calibrated geometry (like triangulation from pixel correspondences), and bounded motion control.
  • Agentic Interaction Loop: Models can invoke tools directly or write complex Python programs (using run_code) that include loops and conditional logic based on sensor feedback.
  • Information Boundaries: The interface strictly excludes depth sensing, privileged scene states, and external perception specialists. The model must "earn" its 3D estimates by selecting matching pixels across different camera views.
  • Hidden Verifier: A separate system evaluates the physical outcome of a task without giving the model success/failure feedback, allowing researchers to measure the model's own "completion judgment."

Datasets

The paper introduces CodeActionBench, a benchmark consisting of 25 manipulation tasks implemented in the SAPIEN simulator using the RoboTwin 2.0 framework. The tasks utilize an ALOHA-AgileX dual-arm robot setup and cover a wide range of skills:

  • Tool use: e.g., using a hammer to beat a block.
  • Multi-object organization: e.g., stacking blocks or arranging items by size.
  • Bimanual coordination: e.g., pouring balls from one bin to another.
  • Articulated objects: e.g., opening a laptop or a microwave.

Key Insights and Ideas

  • The "Programmatic Advantage": The most successful models (GPT-6 Astra, Claude Opus 5) submitted over 85% of their actions via Python programs rather than single tool calls. This suggests that the ability to compose complex, reactive logic is a hallmark of stronger embodied agents.
  • Spatial Reasoning is the Bottleneck: Even when models correctly identify what to do, they often fail at where to do it. Trajectory analysis showed that many failures occurred because the model couldn't achieve precise spatial alignment for grasping or placement.
  • The "Overclaiming" Problem: There is a significant gap between a model's performance and its self-assessment. Models often call the done function claiming success when the task actually failed (e.g., dropping an object after a successful lift).
  • Efficiency Matters: The authors found that GPT-6 Astra was not only the most accurate but also the most time-efficient, completing tasks with a median wall time significantly lower than its competitors.

Key Results

The researchers evaluated nine different model/harness configurations across 675 total attempts.

  • Leaderboard: GPT-6 Astra (with Codex CLI) emerged as the clear winner, achieving a 73.3% success rate and solving 22 out of 25 tasks at least once.
  • Claude Opus 5 followed with a success rate of roughly 45-49% depending on the harness used.
  • Baseline Comparison: Lower-tier models like Claude Sonnet 5 struggled significantly, with success rates as low as 2.7%.
Figure 2: Benchmark system and information boundaries. Each evaluated agent comprises a model and its harness. Task instances, the robot API, resource budgets, and verification rules are fixed across configurations. A hidden verifier scores phys- ical outcomes after termination without returning its verdict to the agent, separating task outcome from the agent’s completion judgment.

The study also highlighted the cost-performance trade-off. While GPT-6 Astra is powerful, Gemini 3.6 Flash offered the lowest total inference cost while still outperforming several other reference configurations.

Success rate vs. inference cost and wall time. Success rate vs. median wall time.

Limitations and Future Work

  • Simulation vs. Reality: The benchmark is currently limited to the SAPIEN simulator. Transferring these agentic policies to physical robots remains an untested challenge.
  • Fixed Scenes: The current evaluation uses fixed scene seeds. Future iterations will need to introduce domain randomization to test the models' generalization across different object placements and lighting conditions.
  • Latency: The sequential nature of LLM calls introduces significant latency, which currently makes this approach unsuitable for highly dynamic or time-sensitive manipulation tasks.
  • Single Embodiment: The benchmark currently only evaluates a single dual-arm robot configuration. Testing across diverse robot morphologies is a necessary next step.

Summary updated

BibTeX
@misc{lyu2026codeactionbench,
  author = {Yiheng Lyu and Xueying Jiang and Wenhao Li and Shijian Lu and Gongjie Zhang},
  title = {{CodeActionBench: Evaluating Agentic Code-as-Policy for Embodied Manipulation}},
  year = {2026},
  eprint = {2609.33807},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.33807},
}
Figure