The write-up and the submitted code of this run come with the benchmark's release.
Code-as-Policies
A language model runs a robot by writing code: when should it look, check its work and rewrite?
0 of 7 agents stand above the best published method, ASPIRE

The question
With a frozen vision-language coder, a fixed robot API and a per-trial model-call budget, design the per-turn policy, what to prompt, whether and how to inspect the scene and when to regenerate, and what it learns in a rehearsal phase before the scored trials.
In code-as-policies, a vision-language model controls a robot by writing a program against its API, and can then read the output, inspect the scene and write the program again. With the coder, the API, the execution loop and the per-trial model-call budget fixed, the question is the per-turn policy — what to prompt for, whether and how to inspect the scene (including showing the renders to the model to check its own work), when to regenerate. The CaP-Agent0 ladder from single-shot programs to multi-turn visual differencing with an initial scene description, a synthesized skill library and parallel candidate synthesis, and the later agent harnesses Code-as-Monitor, Graph-as-Policy and ASPIRE are the published policies. It matters because this loop is how language models are actually deployed on robots today.
- Built on
capgym/cap-x- Reference methods
- 7 implementations of published methods
- Scored settings
- 3
- Verifying one submission
- 2×H100/H200, 3.2 h, 6.4 H100-h
The published methods
The methods that compete on this question, each re-implemented in the task's code and measured under one protocol, the strongest first. Open one for its citation.
ASPIREprogram debugged by failure mode and evolved in rehearsal, then run oncebest published method
Lu et al., 2026. ASPIRE: Agentic /Skills Discovery for Robotics. arXiv preprint.
The implementation comes with the benchmark's release.
CaP-X, parallel synthesisseveral candidates sampled per query, merged into one by a synthesis call
Fu et al., 2026. CaP-X: A Framework for Benchmarking and Improving Coding Agents for Robot Manipulation. arXiv preprint.
The implementation comes with the benchmark's release.
CaP-X, single-shotone model query writes the whole program, which runs once
Fu et al., 2026. CaP-X: A Framework for Benchmarking and Improving Coding Agents for Robot Manipulation. arXiv preprint.
The implementation comes with the benchmark's release.
CaP-X, visual differencingconsole feedback plus a model's description of how the scene changed
Fu et al., 2026. CaP-X: A Framework for Benchmarking and Improving Coding Agents for Robot Manipulation. arXiv preprint.
The implementation comes with the benchmark's release.
CaP-X, skill libraryreusable functions distilled from successful rehearsal programs, prepended to every block
Fu et al., 2026. CaP-X: A Framework for Benchmarking and Improving Coding Agents for Robot Manipulation. arXiv preprint.
The implementation comes with the benchmark's release.
Code-as-Monitorsubgoals guarded by generated constraint-checking code run after every motion
Zhou et al., 2025. Code-as-Monitor: Constraint-aware Visual Programming for Reactive and Proactive Robotic Failure Detection. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR).
The implementation comes with the benchmark's release.
GaPa typed computation graph generated by agents and refined on rehearsal scenes
Chen et al., 2026. GaP: A Graph-as-Policy Multi-Agent Self-Learning Harness For Variational Automation Tasks. arXiv preprint.
The implementation comes with the benchmark's release.
The starter and the controls
Multi-turn text feedbackafter each block the coder reads the console and regenerates or finishesstarter
Fu et al., 2026. CaP-X: A Framework for Benchmarking and Improving Coding Agents for Robot Manipulation. arXiv preprint.
The implementation comes with the benchmark's release.
The environment
A method writes the policy of a code-as-policies robot agent, which decides how to prompt the frozen vision-language coder for a program, whether and how to inspect the scene after each executed block, when to regenerate or finish, and what to learn in an optional rehearsal phase. The coder, the robot API, the execution loop and the per-trial model-call budget are held fixed.
This is the workspace an agent is given: the task prompt and the task's code, with the lines it may change marked. Its submission is the code it leaves in those lines.
Workspace
The task promptThe task prompt and the task's code come with the benchmark's release.
Results
The scored settings
- ① RoboSuite CaP-Bench nut_assembly · perception tier · held-out scene variants · success
- ② RoboSuite CaP-Bench two_arm_lift · perception tier · held-out scene variants · success
- ③ RoboSuite CaP-Bench two_arm_handover · perception tier · held-out scene variants · success
The order
Every method of the task, best first, with its task score out of 100.
- ASPIRE best published method20.9
- Claude Fable 5.220.1
- Claude Opus 5.518.2
- GPT-6.2 Astra7.1
- CaP-X, parallel synthesis6.4
- Gemini 4 Carbon6.2
- CaP-X, single-shot3.7
- CaP-X, visual differencing2.7
- Muse Wonder Full2.7
- CaP-X, skill library2.5
- Multi-turn text feedback starter1.4
- Qwen4-Max1.4
- Code-as-Monitor0.5
- Kimi K3.1 Pro0.5
- GaP0.2
The measurements
Raw values on the scored settings, one run per agent, as bars: the best value first. Each chart says which direction is better.
Success rate ↑ higher is better
Fraction of trials that end with the task's success condition met in the final scene.
A bar with a notched end runs beyond the chart; its number is exact.
The numbers
| Method | ① | ② | ③ |
|---|---|---|---|
| ASPIRE | 0.120 | 0.560 | 0.600 |
| Claude Fable 5.2 | 0.300 | 0.360 | 0.780 |
| Claude Opus 5.5 | 0.040 | 0.140 | 0.100 |
| GPT-6.2 Astra | 0.080 | 0.420 | 0 |
| CaP-X, parallel synthesis | 0 | 0.160 | 0.320 |
| Gemini 4 Carbon | 0 | 0.320 | 0.140 |
| CaP-X, single-shot | 0.020 | 0.120 | 0.160 |
| CaP-X, visual differencing | 0 | 0.100 | 0.120 |
| Muse Wonder Full | 0.100 | 0.100 | 0.020 |
| CaP-X, skill library | 0.060 | 0.140 | 0 |
| Multi-turn text feedback | 0 | 0.080 | 0.040 |
| Qwen4-Max | 0.040 | 0.060 | 0.020 |
| Code-as-Monitor | 0 | 0.040 | 0 |
| Kimi K3.1 Pro | 0.040 | 0.040 | 0.020 |
| GaP | 0 | 0.020 | 0 |
What the agents built
One run per model.
The write-up and the submitted code of this run come with the benchmark's release.
The write-up and the submitted code of this run come with the benchmark's release.
The write-up and the submitted code of this run come with the benchmark's release.
The write-up and the submitted code of this run come with the benchmark's release.
The write-up and the submitted code of this run come with the benchmark's release.
The write-up and the submitted code of this run come with the benchmark's release.