# In simulation, AI-written robot programs beat hand-built planning software

**TL;DR:** On simulated robot tasks with a hand-built planner, programs by the AI tool Claude Code succeeded 82% of the time, beating the planners' 47%. If it holds outside simulation, AI tools could cut much of the expert hand work robot planning needs today.

## Words to know

- **planner**: A program that searches through possible sequences of actions to find one that reaches a goal.
- **task and motion planning**: Deciding both which steps a robot should take and the exact movements that make each step possible.
- **coding agent**: An AI chatbot connected to a computer so it can write programs, run them and fix them on its own.
- **simulator**: Software that imitates a physical world, so a program can try actions without a real robot.

## The problem
Picture a robot that must fetch a block from behind other objects. It must decide which object to move first. That choice changes which arm motions stay possible. Each added object also adds possible collisions. Researchers call this problem task and motion planning. Today's planners need expert hand work for each task: hand-written rules, motion skills and code that proposes candidate positions. Even then, they slow down and fail more often as objects pile up.

## The idea
The team tested whether coding agents, AIs that write and run their own programs, could do that work. Picture a chef who tests a strange kitchen for one afternoon, then writes a recipe for any number of guests. Later, the staff cook from it alone. The agents were Claude Code with Opus 5 and Codex with GPT-6 Astra or GPT-5.6 Sol. Each got a task description, a budget and a simulator, a virtual copy of the robot's world. The team froze each finished program and tested it on unseen versions of 28 tasks. The authors say experimenting let agents learn the physics and spot patterns that cut down the choices at test time.

## What they showed
- **Beat the planners.** On tasks with a planner, Claude Code averaged 82% success, against the planners' 47%. Codex with GPT-6 Astra did even better.
- **Much less computing.** On tasks with a planner and varying object counts, Claude Code's programs took 2.1 seconds per version, against 29 seconds for the planners. This excludes the cost of writing each program.
- **Testing seems to matter.** An earlier AI method cannot run its own tests. It used the same model, with its thinking mode off, and the same budget. It also read the simulator's source code, hidden from the main agents. It averaged 28% across all tasks. Claude Code given that code did better on all but one task.

## Why it matters
Robotics researchers who build planners should care first. If the result holds, they could hand much of the rule writing to ready-made coding tools. The team released its code, so others can rerun the tests. For everyone else, it shows that tools built to write software can also plan robot movements, at least in a simulator.

## The catch
Every test ran in simulation, where the program is given the exact position of every object. So the study says nothing yet about real robots with cameras and uncertain sensing. The models' training data are secret, so they may have seen the code of these test tasks before. The authors answer that the logs show agents probing, testing and revising their programs. Some tasks also stay largely unsolved, especially sweeping or pouring many small objects.

## Who wrote it
Seven researchers wrote it, from Princeton University, Fondazione Bruno Kessler, Carnegie Mellon University and one other institution. Matteo Merler is first author, and Tom Silver is the corresponding author. Silver co-authored KinDER (2026), the collection behind most of these tasks.

## Links
- [Paper page](https://arxiv.org/abs/2609.30233v1)
- [PDF](https://arxiv.org/pdf/2609.30233v1)
- [Code](https://github.com/tomsilver/robocode)

---

Checked Paper · 2026-09-27 · No. 006 · https://one-paper-a-day.pages.dev/2026-09-27-coding-agents-wrote-robot-programs-that/

How it was checked: Before the post went out, an AI fact-check, separate from the writing step, read the paper and checked the post claim by claim. A very long paper is cut to fit a length limit, the appendix first. Code then confirmed that every quote the check gave appears in the paper, or in the details the check was given about it: its arXiv listing, any code or model links, and the authors' earlier papers from Semantic Scholar. All 38 claims checked are supported. The evidence, claim by claim: https://one-paper-a-day.pages.dev/evidence/2026-09-27.json
