TL;DR
What if you could hand a robot its own instruction manual, and it figured out how to program itself? EvoMisty is a framework that lets AI coding agents read official hardware documentation, test and verify basic skills on a physical social robot, optimize its own performance on metrics like response speed, and save its best upgrades so future tasks get an instant head start.
What Problem Does This Paper Address?
Right now, using Large Language Models (LLMs) to program robots usually comes with a catch: human engineers still have to do the heavy lifting beforehand. Someone has to read the robot's API docs, write clean wrapper functions, and hand the LLM a neat menu of "predefined capabilities." If a new task requires an unwrapped feature—or plugging in an external webcam or gamepad—the robot hits a brick wall.
Furthermore, current agentic frameworks usually stop the moment a task technically works. In human-robot interaction, "working" isn't enough; if a social robot takes seven seconds to reply to "Hello!", the magic is broken. Existing systems lack a general way to optimize real-world performance metrics (like conversational latency or gesture accuracy) and carry those hard-won optimizations over to tomorrow's tasks.
Methods
EvoMisty turns standard AI coding agents (tested here with Claude Code and Codex) into autonomous roboticists through a four-stage pipeline:
(Note: Let's trace the pipeline shown in the architecture diagram below.)
- Build (Once per device): The agent reads official hardware documentation, writes a control program, and tests candidate functions directly on the physical Misty II robot. Because real hardware doesn't always match the docs, capabilities are verified via logs and device states (occasionally asking a human simple yes/no questions like "Did it speak?"). Verified functions are locked into an Atomic Capability Library. This also works for external plug-and-play hardware like gamepads and network cameras.
- Solve: Given a task, the agent writes a program combining atomic capabilities and any previously learned skills, looping through automated log checks and final human checks until the workflow succeeds.
- Optimize: Software profilers can't measure physical robot awkwardness. Instead, EvoMisty instruments the code with data hooks (recording raw audio/video for offline replay) and measurement hooks (logging exact event timestamps and outcomes). The agent iteratively tweaks bottlenecks—tracking a Pareto frontier of best solutions—using offline replay where possible and full physical runs for closed-loop tasks like driving.
- Evolve: The agent strips task-specific logic out of its final, optimized code, verifies the standalone functions, and saves them into a growing Skill Library so future tasks inherit the upgrades automatically.
Datasets
Rather than training on static datasets, EvoMisty is evaluated live on a physical Misty II social robot across 35 tasks:
- AutoMisty Benchmark (28 tasks): An existing suite covering motion, speech, touch, vision, and spoken dialogue.
- 7 New Beyond-Framework Tasks: Newly introduced tasks specifically designed to break fixed frameworks. They require unwrapped native APIs, web resource retrieval, custom perception algorithms (e.g., Rock-Paper-Scissors gesture recognition), external hardware (gamepad teleoperation, external-camera line following), and complex clinical workflows (Minimal Pair Therapy for children's speech sound disorders).
Key Insights and Ideas
- The bottleneck is the fixed wrapper, not the AI brain: When the authors upgraded the hand-designed baseline (AutoMisty) to the exact same frontier model used in EvoMisty, it still failed 100% of the 7 new tasks. Because its human designers didn't wrap base-driving or file-uploading APIs, the smarter model had its hands tied. Letting agents read the docs removes the human middleman.
- Optimization transfers for free: When you optimize a speech pipeline for one chatty persona and distill it into the Skill Library, completely different conversational tasks get dramatically faster and more accurate on their very first try—without ever running the optimization loop themselves.
- Initial implementation choices cast a long shadow: Two agents can both "pass" a task initially while having wildly different architectures (e.g., taking 32 seconds vs. 733 seconds to finish a driving lap). Optimization reliably improves both, but where you finish still heavily depends on where the agent chose to start.
Key Results
Tested across two coding agents—Claude Code (Opus 5.5) and Codex (GPT-6 Astra)—EvoMisty delivered consistent results:
- 9x Native API Coverage: From raw documentation, Claude Code and Codex verified 109 and 107 usable atomic capabilities out of 110 actual working ones (compared to AutoMisty's 12 directly used native APIs), with zero broken capabilities falsely accepted.
- 100% Task Completion: Both agents completed 28/28 benchmark tasks and 7/7 new tasks (where AutoMisty scored 0/7).
- Across-the-Board Optimization: All 7 user-specified metrics improved across 5 evaluated tasks. Notably, dialogue response latency dropped by 52% and 71% (down to 3.54s and 2.06s), character error rate (CER) hit 0.000, and Rock-Paper-Scissors gesture error rates dropped by 92% and 83%.
- Zero-Shot Skill Reuse: Reusing skills distilled from a single optimized dialogue task slashed response latency by 33% to 72% (50% average) and reduced CER by 60% on average across three other unoptimized dialogue tasks. In Minimal Pair Therapy, agents successfully composed skills harvested from up to four distinct prior tasks.
Limitations and Future Work
- Single Robot Platform: Experiments were conducted solely on the Misty II social robot (plus external peripherals); validating EvoMisty on manipulators or other mobile platforms remains future work.
- Human-in-the-Loop Checks: When logs or device states can't prove physical success (like verifying visual expressions or audio playback), the system still relies on simple human observation, and it cannot verify capabilities whose trigger conditions can't be safely staged (like hazard detection).
- Local Optima in Optimization: Because iterative refinement tweaks an agent's initial working code rather than rethinking the architecture from scratch, large performance gaps between different initial implementations can persist even after optimization.
Summary updated