用于广义任务与运动规划问题的编码智能体
研究论文 · 2026/09/25
任务与运动规划(TAMP)问题即使在全可观测和以对象为中心的状态下仍然困难,因为离散决策与几何、运动学和动力学约束紧密耦合。广义TAMP通过利用问题实例间的规律性来减少新实例上的规划工作量,但现有方法需要大量TAMP专用工程。我们研究编码智能体能否通过合成跨实例泛化的程序来自动化这一过程。给定任务描述和模拟器访问权限,每个智能体在固定的合成预算内选择如何与环境交互来开发程序。程序随后被冻结,并在未见过的实例上评估。我们在KinDER和PDDLStream的28个模拟环境中评估了Claude Code (Opus 5)和Codex (GPT-5.6 Sol和GPT-6 Astra),对象数量超出原始基准评估的范围。在所有程序合成方法中,我们评估了980个生成程序,每个程序在100个保留实例上运行,总计98,000个评估回合。总体而言,我们发现编码智能体在广义TAMP上出奇地有效:所有三种智能体配置在平均成功率上均优于手工设计的规划器、一次性生成和基于LLM的广义规划基线(在16个有规划器可用的环境中,成功率为56%至95%,而规划器为47%)。随着对象数量增长,智能体的程序保持比规划器更高的成功率,同时平均每个实例的计算量少一个数量级。日志显示智能体利用交互来校准物理模型、测试边缘案例并优化策略。我们发布了所有代码,包括给智能体的完整提示。这些发现表明,编码智能体是广义TAMP的一个强大基线。
该研究首次系统评估编码智能体在广义TAMP中的表现,展示了其超越传统规划器的潜力,并提供了可复现的代码和提示,为自动化规划领域提供了新思路。
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.