Skip to content
Robotics.world

Research

Coding Agents for Generalized Task and Motion Planning Problems

Task and motion planning problems are hard because discrete choices (which object to move, which tool to use, which subgoal to pursue) are tightly coupled to continuous geometric, kinematic, and…

The paper’s first page · arXiv:2609.30233
arXiv
2609.30233 · Preprint · not peer-reviewed
Published
2026-09-24
Authors
Matteo Merler, Bowen Li, Josh Roy, Yichao Liang, Qianwei Wang, Yixuan Huang, Tom Silver

In plain words

Task and motion planning problems are hard because discrete choices (which object to move, which tool to use, which subgoal to pursue) are tightly coupled to continuous geometric, kinematic, and dynamic constraints.

AI summary

Overview

Research area: Robotics — task and motion planning (TAMP), generalized planning, and LLM-based coding agents for robot control. Technical level: Intermediate (assumes familiarity with MDPs and manipulation planning, but the core argument is accessible). One-sentence scope: A large-scale empirical study asking whether off-the-shelf coding agents, given only a task description and sandboxed simulator access, can synthesize reusable programs that solve generalized TAMP problems better than hand-engineered planners.

What This Paper Is About

Task and motion planning problems are hard because discrete choices (which object to move, which tool to use, which subgoal to pursue) are tightly coupled to continuous geometric, kinematic, and dynamic constraints. Generalized TAMP tries to exploit regularities across problem instances so that new instances are cheaper to solve, but existing methods require a lot of TAMP-specific engineering (hand-designed predicates, samplers, skills, heuristics). This paper asks whether general-purpose coding agents can replace that engineering by writing, testing, and debugging a single program that generalizes across instances.

Key Contributions

  1. A systematic benchmark study of coding agents on generalized TAMP. 28 environments (25 KinDER environments across four families, plus three PDDLStream domains: Packing, Blocked, Rovers), seven program synthesis methods, five runs per method per environment, and 100 held-out test instances per program — 980 generated programs and 98,000 evaluation episodes in total.
  2. An agentic synthesis protocol with no TAMP-specific scaffolding. The agent receives only a task description, a sandboxed simulator client (reset, step, plus rendering helpers), a fixed budget ($20 in model usage), and the evaluation timeout (60 seconds per instance). No hand-written predicates, operators, samplers, or skills are provided, and the sandbox contains only a Python interpreter with NumPy and SciPy.
  3. Empirical comparison against three baselines on identical held-out instances: hand-engineered TAMP planners (available for 16 of 28 environments), LLMGenPlan (a non-agentic LLM generalized planner with full source access), and a one-shot generation variant.
  4. Qualitative analysis of interaction logs documenting how agents probe the simulator, construct and calibrate internal models (e.g., fitting a kinematic model of the Kinova Gen3 arm), build edge-case test suites, and discover strategies not present in any published solution. All code and full agent prompts are released.

Main Findings

  • Agents beat hand-engineered planners. On the 16 environments where a planner is available, Opus 5 averages 82% success (1.7 times the planner's 47%), GPT-6 Astra averages 95%, and GPT-5.6 Sol averages 56%. Across all program synthesis methods the range is quoted as 56% to 95% versus 47% for the planners.
  • Improvements are consistent across environment families. Astra averages 99% on Kinematic2D, 97% on Dynamic2D, 93% on Kinematic3D, 65% on Dynamic3D, and nearly 100% on PDDLStream. Opus averages 96%, 92%, 90%, 45%, and 78% respectively.
  • Agents win per-environment too. Astra exceeds the planner in 15 of 16 environments with one available, Opus in 12, and Sol in 9. Astra beats Opus in 20 of 28 environments, but in 11 of those 20 the best Opus program matches or exceeds the best Astra program — the gain is consistency, not peak performance.
  • Programs scale better with object count than planners. As object counts grow beyond those in the original benchmark, agent programs maintain higher success and use roughly an order of magnitude less computation per instance: 2.1 s (Opus) and 0.5 s (Astra) per instance versus 29 s for planners on the 14 environments with a planner and multiple object counts.
  • Decision-time computation varies sharply by setting. On the 15 environments where all four configurations reach 100% in at least one run, main-setting Opus averages 11.741 ms per action and Astra 1.299 ms; adding source access raises these to 42.480 ms and 50.392 ms, because source-using programs often call the environment implementation at decision time.
  • Interaction is used for calibration, not just code-writing. In Shelf, one Opus run builds an initial arm model from prior knowledge, then fits six parameters describing mount and grasp offsets, reducing RMSE between predicted and observed cube positions from 38.9 to 1.8 mm, and uses the fitted model for inverse kinematics.
  • Agents discover unexpected strategies. Examples include re-grasping a scoop tool from the left side to scoop more balls at once (Dynamic2D ScoopPour), ignoring the provided sweeper tool and sweeping cubes with the gripper (SweepIntoDrawer), and tipping a tray over while resting it on the target tray (ScoopPour).
  • Iterative refinement produces discrete jumps in success. In Blocked, a Sol commit adding a fallback to a distant unobstructed block raises success from 15% to 56% (41 newly solved instances, no lost successes), with later commits reaching 83%. In BalanceBeam, a Sol run moving placement targets toward the beam's center raises success from 6% to 64%.
  • Source code access helps but is not sufficient. Source access raises mean success from 74% to 84% for Opus and 86% to 95% for Astra, and Opus + source exceeds LLMGenPlan in 27 of 28 environments — even though LLMGenPlan also receives the source, uses Opus 5, and has the same $20 budget, yet reaches only 28%. In SortClutteredBlocks, source access lets programs read each cube's target bin, lifting Astra from 43% to 95%.
  • Failures remain concentrated in hard dynamic 3D tasks. Solving Dynamic3D environments that require sweeping or pouring many small objects is still largely unsolved in the main setting; Opus and Sol score zero on SweepIntoDrawer without source access.

Methodology in Plain English

For each environment, the researchers give a coding agent three things: a written task description (environment name, what the task is, what observations and actions look like, what counts as success), a way to run the simulator, and a fixed budget. The agent runs inside a locked-down Docker container with no network access, holding only a Python interpreter with NumPy and SciPy. It sees a client wrapper for reset and step (plus rendering helpers), while the real implementation runs on a server outside the container that the agent cannot read.

Within the budget, the agent decides entirely for itself what to do: write probe scripts, sample random seeds, inspect states, render images, test edge cases, revise code. It must deliver a policy class with a reset method and a get_action method, and it commits each revision to a git repository so the researchers can replay how the program evolved. Then the program is frozen: no LLM is involved at test time, and it is evaluated on 100 held-out instances whose seeds were generated randomly and verified afterwards never to have been used during synthesis.

The researchers compare this against three things: hand-engineered TAMP planners (given the official hand-written predicates, operators, samplers and motion planners, and allowed to replan for each instance), LLMGenPlan re-implemented with Opus 5 and a fixed feedback pipeline (exceptions, invalid actions, unsolved seeds) rather than free-form interaction, and the first program LLMGenPlan produces as a one-shot baseline. A separate "+ source" setting gives the agent the environment source code, letting it read goal definitions, import inverse kinematics solvers, and set states directly.

Success is measured as reaching the goal within the horizon and a 60-second wall-clock limit, alongside per-instance computation time excluding synthesis and environment stepping.

Why This Matters

The paper provides evidence that much of the TAMP-specific engineering — predicates, samplers, feasibility predictors — might be substitutable by an agent that probes the simulator and writes code. That reframes what a strong baseline looks like for the field, and it extends LLM-based generalized planning from symbolic domains into environments with real geometry, kinematics, and contact dynamics.

Real-world applications implied by the approach:

  • Warehouse and bin picking: programs that adapt a manipulation sequence to each item count and clutter configuration without replanning from scratch.
  • Household robotics: tasks like loading a shelf or clearing clutter where the number of objects varies per home.
  • Dexterous tool use: the discovered re-grasping and non-prehensile maneuvers suggest a route to tool-use policies that are not hand-scripted.
  • Rapid environment onboarding: generating policies for new simulated setups from a task description plus simulator access, shortening the pipeline from model to controller.

Industry relevance: the results bear directly on whether teams need to staff specialized planning engineers per domain, and on the practical cost of per-instance inference — sub-second to a few seconds per instance versus 29 s for planners matters for throughput-sensitive deployments. The finding that agents discover strategies absent from published solutions also suggests they are not simply retrieving memorized benchmark answers, which is the key question any industrial adopter will ask.

Future Directions

  • Perception and partial observability. The current setup assumes fully observed, object-centric states and simulator access during synthesis; extending to perception uncertainty is explicitly left open.
  • Closing the dynamic 3D gap. Environments requiring sweeping or pouring many small objects remain largely unsolved in the main setting (zero success for Opus and Sol on SweepIntoDrawer without source), and even with source access Astra reaches only 44% on SweepSimple.
  • Disentangling genuine synthesis from pretraining exposure. Model training data are undisclosed, so prior exposure to benchmark code cannot be ruled out; the authors argue from logs and novel strategies but call for stronger evidence.
  • Real-robot transfer. All 28 environments are simulated and simplified relative to real manipulation; whether calibrated internal models and probe-based strategies survive on hardware is untested.

Target Audience

Robotics and embodied-AI researchers working on TAMP, generalized planning, or LLM-driven robot control; practitioners deciding whether to hand-engineer a planner or delegate policy synthesis to a coding agent; and benchmark designers interested in evaluation protocols that freeze the synthesized artifact and test on unseen instances with verified-unseen seeds. Readers without planning background can follow the headline results, but the environment descriptions and baseline discussion assume some familiarity with symbolic planning and sampling-based motion planning.

Authors’ 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…

The full abstract on arXiv
Read the original paper

Related papers