CaP-X: A Framework for Benchmarking and Improving Coding Agents for Robot Manipulation
MFMax FuJYJustin YuKarim El-RefaiEthan KouHXHaoru XueHuang HuangWXWenli Xiao
Guanzhi Wang
Fei-Fei Li
Guanya Shi
Jiajun WuSSShankar Sastry +3 MFMax Fu
JYJustin Yu
Karim El-Refai
Ethan Kou
HXHaoru Xue
Huang Huang
WXWenli Xiao

Guanzhi Wang

Fei-Fei Li

Guanya Shi

Jiajun Wu
SSShankar Sastry
+15
CaP-X is an open-access framework for studying code-as-policy agents in robot manipulation, comprising CaP-Gym (an interactive environment where agents synthesize and execute programs from perception and control primitives) and CaP-Bench (which evaluates 12 models across varying abstraction levels). The benchmark reveals that performance depends on human-crafted abstractions, but this gap can be mitigated by scaling test-time computation (multi-turn interaction, structured feedback, visual differencing, skill synthesis, and ensembled reasoning). Based on these findings, CaP-Agent0 recovers human-level reliability without training, and CaP-RL further improves success rates via reinforcement learning with verifiable rewards, transferring from simulation to real with minimal gap.

arXiv ·
· March 23, 2026