
Ep#119: Coding Agents for Generalized Task and Motion Planning Problems
Task and Motion Planning (TAMP) is the robotics problem of interleaving high-level and low-level planning: which object to move, but also how to move it. It’s a key capability for true, open-world robot autonomy. TAMP problems are challenging, long-horizon manipulation problems.
Traditionally, these problems are solved by dedicated planners. Matteo Merler and Bowen Li looked into how well coding agents can generate programmatic policies to handle task and motion planning benchmarks. The answer is that, with roughly $20 of credits, Claude Opus 5.5 is nearly twice as good as a hand-designed planning system.
Watch Ep#119 of RoboPapers with Chris Paxton and Ruijie He today to learn more!
Abstract
Task and motion planning (TAMP) problems remain difficult even with full observability and object-centric states because discrete decisions are tightly coupled to geometric, kinematic, and dynamic constraints. Generalized TAMP addresses this difficulty by exploiting regularities across problem instances to reduce planning effort on new instances. However, existing methods require substantial TAMP-specific engineering. We investigate whether coding agents can automate this process by synthesizing programs that generalize across instances. Given a task description and simulator access, each agent chooses how to interact with the environment while developing a program within a fixed synthesis budget. The program is then frozen and evaluated on unseen instances. We evaluate Claude Code (Opus 5) and Codex (GPT-5.6 Sol and GPT-6 Astra) on 28 simulated environments from KinDER and PDDLStream, with object counts beyond those evaluated in the original benchmark. Across all program synthesis methods, we evaluate 980 generated programs on 100 held-out instances each, 98,000 evaluation episodes in total. Overall, we find that coding agents are surprisingly effective at generalized TAMP: all three agent configurations outperform hand-engineered planners, one-shot generation, and an LLM-based generalized planning baseline in mean success (56% to 95% versus 47% for the planners, on the 16 environments where a planner is available). As object counts grow, the agents' programs maintain higher success than the planner, using an order of magnitude less computation per instance on average. Logs show agents using interaction to calibrate physical models, test edge cases, and refine strategies. We release all code, including the full prompts given to the agents. These findings suggest that coding agents are a strong baseline for generalized TAMP.
Learn More
Project Page: https://agenticgentamp.github.io/
ArXiV: https://arxiv.org/abs/2609.30233
Github: https://github.com/tomsilver/robocode
Transcript
Edited for clarity by ChatGPT.
Introductions
Chris Paxton: Hello everyone, and welcome to another episode of RoboPapers. I’m really excited to have Matteo and Bowen join us today to tell us a little bit about agentic task and motion planning. Can you guys introduce yourselves to get started?
Matteo Merler: Thanks very much for the invite. I’m a big fan of the podcast, so it’s an honor to be here today. I’m Matteo, currently a PhD student at the Tübingen AI Center in Germany, supervised by Professor Matthias Petke. This work was mainly done when I was working as a researcher at Fondazione Bruno Kessler, a research institute in Trento, Italy. The main group and supervisor for this project was Professor Tom Silver at Princeton, in the Purple Planning Group.
Bowen Li: Thanks for inviting us to this great podcast. I’m also a big fan. My name is Bowen Li. I’m currently a final-year PhD student at Carnegie Mellon University, working within the Robotics Institute. My advisor is Professor Sebastian Scherer, whose lab mainly works on SLAM and drones, but my personal interests are long-horizon planning and reinforcement learning. This work was also done in collaboration with Professor Tom Silver at Princeton and the Purple Planning Group. I’m very excited to share our work.
Chris Paxton: Could you tell us a little bit more about the work?
Agentic Generalized Task and Motion Planning
Matteo Merler: The main idea of this work is to investigate how much we can leverage coding agents to write programs to control robots in the setting of task and motion planning (TAMP). The idea is to take Claude and let it plan in these environments.
For some quick background, task and motion planning involves long-horizon decision-making and a two-level hierarchical decision-making process. There are discrete planning tasks that need to be fulfilled, but also continuous constraints that need to be satisfied. We specifically work with a variable number of objects. The same environment can have one, two, or three objects, for example, and we ask a single policy to solve all of them, independent of the number of objects in the environment.
Traditionally, this is done with a task and motion planner. This requires a human engineer, or more recently an LLM, to write a set of abstractions: predicates, operators, skills, samplers, and so on, depending on the pipeline. These typically have to be written beforehand. A planning algorithm is then called for each episode, producing individual plans depending on the initial state and the goal. Importantly, these planners are called once per instance; they do not produce a generalized policy.
There is another line of research called generalized planning, or in this case, generalized task and motion planning. The main difference is that these abstractions are combined into a single generalized policy, which can be a program or something else. Every initial state of the environment is then handled by that policy. There is no need to plan from scratch for every instance: we already have a single policy that can tackle the distribution of tasks with different object counts.
Our initial idea was quite simple. Many generalized policies are implemented as code, and coding agents are getting better by the day. We wanted to study how these agents would perform if we asked them to implement such a generalized policy. We remove the other components, give an environment to a coding agent, and ask it to work in that environment.
More formally, we are working with a simulated environment and a coding agent powered by a language model. We give it a simple text description of the task. In this example, it’s a 3D task where the robot must pick up objects and place them on a shelf. Importantly, the environment has a variable number of objects.
We give it an object-centric state, so we ignore perception for now. This is a dictionary containing things like robot joint angles and object positions in the world. We isolate perception from task and motion planning and assume that it has already been solved by an upstream module. The actions allow you to control the robot’s joint angles, open and close the gripper, or move the robot’s base in this particular environment.
We expose the environment through a server API. The coding agent can call the two classic reset and step functions, start from new initial configurations, take actions, and observe what happens. It doesn’t see the implementation or source code of the environment. It has to recover the dynamics through interaction rather than by looking at the source code.
In a way, this is similar to reinforcement learning, although the learner is a language model writing code rather than a policy.
Object-Centric State vs. Images
RJ: Just to be clear, it’s not inferring the state from the image itself. You’re decomposing it, right?
Matteo Merler: No, exactly. So it has the ability to render an image, so in case that’s useful since the coding agent is also a VLM, so it can look at the image and sort of decipher how the environment works from that. But then the policy itself, so the code itself, and then also the what the robot gets is this object-centric state which is already sort of parsed from the image. So the image is just a tool to help it develop the policy.
Chris Paxton: I’m r…
This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit robopapers.substack.com
Otros episodios de "RoboPapers"



No te pierdas ningún episodio de “RoboPapers”. Síguelo en la aplicación gratuita de GetPodcast.








