about
Multimodal Coding Agents as In-Context Policy Learners for Robot Manipulation (arxiv.org)
1 point by vaishak2future 210 days ago | hide | past | pdf | 1 comment on HN

In plain words: A robot arm writes its own Python control code for each attempt, then uses camera images and what went wrong to rewrite the code and fix its mistakes. On three simulated manipulation tasks it reached high success rates without demonstrations or training.

Abstract · Act-Observe-Rewrite: Multimodal Coding Agents as In-Context Policy Learners for Robot Manipulation

Can a multimodal language model learn to manipulate physical objects by reasoning about its own failures-without gradient updates, demonstrations, or reward engineering? We argue the answer is yes, under conditions we characterise precisely. We present Act-Observe-Rewrite (AOR), a framework in which an LLM agent improves a robot manipulation policy by synthesising entirely new executable Python controller code between trials, guided by visual observations and structured episode outcomes. Unlike prior work that grounds LLMs in pre-defined skill libraries or uses code generation for one-shot plan synthesis, AOR makes the full low-level motor control implementation the unit of LLM reasoning, enabling the agent to change not just what the robot does, but how it does it. The central claim is that interpretable code as the policy representation creates a qualitatively different kind of in-context learning from opaque neural policies: the agent can diagnose systematic failures and rewrite their causes. We validate this across three robosuite manipulation tasks and report promising results, with the agent achieving high success rates without demonstrations, reward engineering, or gradient updates.

Vaishak Kumar
arXiv:2603.04466 · cs.RO, cs.LG · submitted Mar 3, 2026
abstract · pdf · html

add comment on HN

Author here. We’ve reached the point where frontier models (along with agent harnesses) can perform verbal reinforcement learning over multimodal data to reason over failures and correct policies expressed as code to fix them in a targeted manner. This allows for generalizing across tasks and embodiments without having to collect massive teleoperation datasets or having to update model parameters or perform reward engineering. I believe this opens up the path for general models to be more powerful than “robotics-first” foundation models. AMA.