Research
Fly-by-Code: Embodied Coding Agents for Aerial Manipulation with Active Visual and Physical Feedback
Embodied coding agents turn natural-language instructions into executable robot programs and refine those programs from execution feedback. That loop assumes the feedback reveals whether the task…

- arXiv
- 2610.12549 · Preprint · not peer-reviewed
- Published
- 2026-10-08
- Authors
- Jaewoo Lee, Jeongyeon Seo, Sihyun Cho, Gyeongrak Choe, Yutong Wang, Bavin Saravanan, Jia-Bin Huang, Furong Huang, Sebastian Scherer, Guanya Shi, H. Jin Kim, Seungjae Lee, Dongjae Lee
In plain words
Embodied coding agents turn natural-language instructions into executable robot programs and refine those programs from execution feedback. That loop assumes the feedback reveals whether the task succeeded and, on failure, why it failed.
AI summary
Overview
- Research area: Robotics — embodied coding agents (LLM-based program synthesis for robots), aerial manipulation, and sim-to-real transfer.
- Technical level: Advanced. It assumes familiarity with robot API composition ("code-as-policy"), LLM coding agents, motion planning, and aerial vehicle dynamics.
- Scope: The paper introduces "Active Feedback," a post-execution diagnostic stage in which a coding agent writes a separate program to fly to informative viewpoints or perform physical test interactions, and shows it improves task success and completion assessment for aerial manipulation in simulation and on physical hardware.
What This Paper Is About
Embodied coding agents turn natural-language instructions into executable robot programs and refine those programs from execution feedback. That loop assumes the feedback reveals whether the task succeeded and, on failure, why it failed. The authors show this assumption breaks for aerial manipulation, where a payload-limited onboard camera leaves outcomes out of view and fragile physical interaction leaves failure causes ambiguous, and they propose letting the agent actively generate diagnostic programs that collect the missing evidence.
Key Contributions
- Problem characterization: The paper names two distinct gaps in passive execution feedback for embodied coding agents — missing outcome observations (from partial observability) and unresolved failure causes (from limited interaction robustness) — and argues that re-reading the same feedback cannot close either gap.
- Active Feedback (AF): A post-execution diagnostic stage inside a simulation-based program-refinement loop, where the agent synthesizes an attempt-specific executable program using the same robot APIs as the task program. It either Views (flies the wrist camera to selected viewpoints to inspect unobserved outcomes, with agent-written notes and segmented-depth measurements) or Probes (performs targeted physical interactions in simulation, such as push or lift tests, to distinguish between candidate failure causes).
- Quantified evaluation in aerial manipulation: Across six simulated tasks with 60 trials per condition, AF raises final task success from 31.7% (terminal feedback) to 75%, versus 48.3% for execution-trace feedback, and cuts false completion declarations from 25 to 5.
- Physical deployment: Task programs refined with AF in simulation run on a custom physical aerial manipulator through shared robot APIs with no modification of task-program source code, repeatedly completing two multi-stage tasks. The authors state this is the first study of embodied coding agents for aerial manipulation.
Main Findings
- Higher final task success: AF reaches 75% overall success across six simulated tasks, compared with 31.7% for CaP-X (terminal feedback) and 48.3% for CaP-X+Trace. AF matches or exceeds both baselines on every individual task.
- Largest gains on long or physically constrained tasks: 2-Objects Pick-and-place 90% (vs. 40% and 60%), Payload 100% (vs. 30% and 60%), and Cabinet 40% (vs. 10% and 0%).
- Far fewer false completions: Over 60 trials, AF produced 5 false completion declarations (precision 90.0%), against 25 for CaP-X (43.2%) and 19 for CaP-X+Trace (60.4%). Per-task outcome triplets (TP/FP/ND) are 45/5/10 for AF, 19/25/16 for CaP-X, and 29/19/12 for CaP-X+Trace.
- View evidence corrects optimistic logs: In a recorded 2-Objects Pick-and-place attempt, the task program reported both tools placed, but views of the destinations and nearby floor showed both had fallen, so the agent chose REGENERATE rather than FINISH.
- Probe evidence shapes control and planning: In Align, the agent compared pushes at six contact points and used the measured rotations to build a push-response model for contact selection. In Payload, a diagnostic lift of a 1.2 kg basket load was refused, prompting the next program to regroup bottles under a 1.1 kg planning limit, after which both revised basket loads were lifted.
- Gains generalize across models and interfaces: AF matches or exceeds the passive CaP-X baseline on every evaluated task–backbone pair. On Cabinet, success rises from 0% to 90% with the Astra API and from 60% to 100% with both Claude Code Opus 5.5 and Codex Astra; on Payload it rises from 30% to 100% with Claude Code Opus 5 and from 50% to 100% with Codex Astra.
- Structured diagnosis beats raw access to more data: A "No harness" baseline given a superset of evidence (full raw videos and console logs) reaches only 20% to 50% on Cabinet and 0% (Claude Code Opus 5) or 20% (Codex Astra) on Payload — at most half of AF's success on Cabinet.
- Zero-shot sim-to-real transfer: Unmodified simulation-synthesized programs achieved full-task success of 80% (4/5) on 2-Objects Pick-and-place and 60% (3/5) on Cabinet, with approximately 8 to 9 minutes of sustained autonomous operation per trial. Subtask results include grasp hammer 5/5, place hammer 4/5, grasp wrench 5/5, place wrench on shelf 5/5, open left door 5/5, open right door 4/5, grasp bottle 4/5, and place bottle in basket 3/5.
Methodology in Plain English
The robot is an aerial manipulator: a multirotor with an arm and gripper, flown in simulation using Isaac Lab on six tasks extended from AM-Bench, split between a warehouse scene and a digital twin of the authors' laboratory. A coding agent (primarily Claude Opus 5 in persistent sessions) receives a task instruction, an embodiment description, API documentation, and a wrist-camera image, then writes a Python program that calls shared robot APIs — observation, segmentation, semantic-map queries, grasp planning, and motion. The program runs under collision-aware whole-body motion planning and simulated flight dynamics.
The novelty is what happens after the program finishes. Normally the agent looks at logs and the final image and decides to finish or rewrite. Here, the environment records the task score first, and then the agent enters the Active Feedback stage: it reasons part-by-part about which task requirements the existing evidence actually settles, and writes a second, ungraded program to resolve what remains. That program can fly the wrist camera to viewpoints chosen for information value (View), or physically act on the world in simulation — push, pull, try a lift — to test a specific hypothesis about why something failed (Probe). Because the score is already banked and the environment resets before the next attempt, the agent is free to take actions that would be pointless or undesirable during the actual task. Only the knowledge persists.
The picked images come back with agent-written notes explaining the question they answer, and console measurements are carried verbatim into the next step. With that evidence plus the original logs, the agent either declares FINISH or emits a complete revised program, which starts again from the initial state and must perform the whole task. Each trial allows one initial execution and up to ten revisions. Baselines share the same loop and differ only in feedback: terminal logs and RGB (CaP-X), plus structured per-primitive records and keyframes (CaP-X+Trace, adapted from ASPIRE tracing). For hardware, the same task programs are executed on the physical robot via the shared API layer, consulting real sensor data rather than replaying simulated trajectories.
Why This Matters
Research impact: The paper reframes execution feedback as something an agent can acquire rather than merely receive, decoupling diagnosis from task progress so that actions can be chosen for information value. This is a clean, testable idea for the code-as-policy line of work (CaP-X, ASPIRE, ARCHITECT, ENPIRE), and it connects embodied coding agents to the older active and interactive perception literature while targeting a distinct objective: not ongoing perception during execution, but post-hoc resolution of uncertainty for completion assessment and program repair. It also opens embodied coding agents to aerial manipulation, a domain where partial observability and fragile contact are the norm.
Real-world applications:
- Aerial inspection and maintenance in cluttered or occluded spaces — cabinets, racks, under-shelf regions — where the robot must confirm what it actually did.
- Warehouse logistics: picking, sorting, and placing objects into bins or onto shelves, with verification that the object truly landed where intended.
- Payload-aware delivery: discovering an undisclosed or uncertain lift limit through safe test interactions instead of crashing.
- Contact-rich tool use on aerial platforms, such as opening articulated structures, pushing objects into alignment, or retrieving items from containers.
Industry relevance: The sim-to-real result rests on a shared robot API layer, so programs refined in simulation transfer without source-code changes — an attractive engineering property for companies building foundation-model-driven robot stacks. The reduction in false completion declarations (25 to 5 across 60 trials) speaks directly to a practical failure mode in deployed autonomy: an agent that confidently reports success it never verified.
Future Directions
- Safety guarantees for real-world probing. The authors explicitly note that their protocol gives no operational safety guarantee for unrestricted physical probing on hardware; extending AF to probe safely outside simulation is the obvious next step.
- Reducing diagnostic overhead. AF adds model-inference and robot-interaction cost; how much of the gain survives with tighter budgets or cheaper models is not reported.
- Bounding diagnosis by perception quality. The framework is limited by onboard perception error and unreachable viewpoints — a diagnostic check does not guarantee a correct judgment if the underlying sensor data is wrong. Better sensing or multi-view fusion could raise the ceiling.
- Generalization beyond the studied settings. The authors do not claim zero-shot generalization to entirely unseen physical environments or radically different embodiments, and their deployment leans heavily on the underlying motion planning and flight controllers.
Target Audience
Robotics researchers working on robot program synthesis, code-as-policy, and LLM-based embodied agents; aerial manipulation groups interested in long-horizon autonomy and sim-to-real transfer; and practitioners in warehouse automation or aerial inspection who need reliable task-completion verification. Readers without background in robot APIs or flight dynamics will find the diagnostic-program concept accessible but the experimental detail dense.
Authors’ abstract
Embodied coding agents construct robot policies from natural-language instructions by generating executable programs and refining them from execution feedback. This refinement assumes that execution feedback reveals whether the task succeeded and, after a failure, provides sufficient evidence to guide program revision. Aerial manipulation violates this assumption in two ways. Payload constraints restrict onboard camera coverage and leave task-critical outcomes outside the…
The full abstract on arXivRelated papers
- Dex-One2Many: Learning Dexterous Manipulation from a Single Human Demonstration 2026-10-08 · cs.RO · Also by Furong Huang, H. Jin Kim +2
- AM-Bench: A Modular Simulation Suite and Benchmark for Aerial Manipulation Policy Learning 2026-09-01 · cs.RO · Also by Bavin Saravanan, Guanya Shi +2
- Drone Soccer: Learning to Manipulate with Multicopter Downwash 2026-09-29 · cs.RO · Also by Bavin Saravanan, Sebastian Scherer +1
- AuRA: From Atoms to Bits through Autonomous Robot Interaction 2026-10-25 · cs.RO · Also by Furong Huang, Seungjae Lee
- Beyond Episodic Evaluation: Memory Architectural Bottlenecks in Sequential Embodied Question Answering 2026-07-23 · cs.RO · Also by Furong Huang, Seungjae Lee