EvoMisty: Building, Optimizing, and Evolving Capabilities on a Social Robot
Organizations: State University of New York at Buffalo
Abstract
Social robots face diverse and changing tasks in companionship and education. LLM-based methods can generate task programs, but they still rely on manually developed control interfaces and predefined capabilities. They also lack a general mechanism to optimize completed tasks based on user-specified metrics and reuse performance improvements across tasks.We present EvoMisty, a plugin-based framework that enables coding agents to build and continually improve robot capabilities. EvoMisty builds a control program from official documentation and verifies candidate capabilities on a physical robot. Verified capabilities are stored in an atomic capability library and combined with existing skills to solve tasks. After task completion, EvoMisty can collect execution data, measure user-specified metrics, and iteratively improve task programs. It then distills reusable skills from final solutions into a skill library for future tasks.We evaluate EvoMisty on a physical Misty II robot using Claude Code and Codex. The two agents construct 109 and 107 verified atomic capabilities, respectively. Both complete all 28 AutoMisty benchmark tasks and seven additional tasks beyond AutoMisty's capabilities. Optimization improves all seven evaluated metrics across five tasks. For example, dialogue response latency decreases by 52% and 71%, respectively. Reusing skills from one optimized dialogue task reduces latency by 33% to 72% in three other dialogue tasks without further optimization. All code and experimental videos will be publicly released through the webpage: https://wangxiaoshawn.github.io/projects/evomisty/index.html
Figures & tables
| Method | Extracted | Excluded | Tested | Failed | Verified |
|---|---|---|---|---|---|
| AutoMisty [ 35 ] | – | – | – | – | 12 |
| Claude Code | 175 | 63 | 112 | 3 | 109 |
| Codex | 175 | 63 | 112 | 5 | 107 |
| Claude Code | Codex | ||||
| Task | Metric | Before | After | Before | After |
| Naughty-Child Dialogue | Response latency (s) | ||||
| CER | 0.053 | 0.000 | 0.037 | 0.000 | |
| MistyPilot Emotional Dialogue | Response latency (s) | ||||
| Rock-Paper-Scissors | Gesture recognition accuracy | 0.845 | 0.987 | 0.273 | 0.874 |
| External-Camera Line Following | Lap time (s) | 32.0 | 733 | ||
| Claude Code | Codex | |||||
| Task | Metric | AutoMisty | Before | After | Before | After |
| Naughty-Child Dialogue | Response latency (s) | |||||
| (optimized) | CER | 0.077 | 0.053 | 0.000 | 0.037 | 0.000 |
| Math Tutoring | Response latency (s) | |||||
| (skill reuse) | CER | 0.306 | 0.061 | 0.019 | 0.024 | 0.019 |
| Keyword Story | Response latency (s) | |||||
| Stage targeted | Change | Latency (s) | CER |
|---|---|---|---|
| Speech recognition | Speech recognition now runs locally on the computer. | 6.53 5.85 | 0.02 0.00 |
| Reply generation, speech synthesis | The reply is output while it is being generated; the first sentence is synthesized and played first. | 5.85 4.70 | 0.00 |
| Reply generation, upload | A faster dialogue model is used; the audio is compressed before it is uploaded. | 4.70 4.07 | 0.00 |
| Speech synthesis | Speech synthesis now runs locally on the computer; the audio is played directly after upload. | 4.07 3.28 | 0.00 |
| Retrieving the recording | Speech is now recorded with the computer’s microphone, so the recording no longer has to be retrieved from Misty. | 3.28 2.54 | 0.00 |
| Claude Code | Codex | |
|---|---|---|
| Data hook | 1. Recordings of a person reading fixed sentences 2. An audio recording of each complete run | 1. Recordings of a person reading fixed sentences 2. A recording of each turn, from the question to the end of the reply 3. The synthesized reply audio |
| Measurement hook | 1. The time of each stage for every sentence, from the end of speech to Misty’s first sound 2. The recognized text and Misty’s reply | 1. The time of each stage for every sentence 2. The moments when the user stops speaking and when Misty starts to speak 3. The recognized text |
| Changes kept | 1. Speech recognition and speech synthesis run locally on the computer 2. A faster dialogue model is used; the reply is spoken while it is generated, first sentence first 3. Audio is played directly after upload 4. Speech is recorded with the computer’s microphone | 1. Recognition, dialogue, and synthesis all run locally on the computer 2. The reply is spoken while it is generated, first sentence first 3. Misty fetches the reply audio directly from the computer; no upload is needed 4. The reply is prepared in advance as soon as the user pauses 5. The prompt is shortened so that replies are more direct 6. Speech is picked up with the computer’s microphone |
| Claude Code | Codex | |
|---|---|---|
| Data hook | 1. Recordings of a person reading fixed sentences 2. The audio of each of Misty’s replies 3. Room recordings before and after each playback | 1. Recordings of the user’s questions 2. The audio of each of Misty’s replies 3. Room recordings while Misty replies |
| Measurement hook | 1. The time of each stage for every sentence 2. The moment Misty actually starts to make sound 3. The recognized text 4. The emotion, speaking rate, and motion of each reply | 1. The recognized text 2. The time from the end of speech to Misty’s first sound 3. The time of each stage for every sentence |
| Changes kept | 1. Speech recognition runs locally on the computer 2. A faster dialogue model is used 3. Audio is compressed before upload 4. The first sentence is split in two, and the first half is spoken first | 1. Each sentence of the reply is synthesized as soon as it is complete 2. Speech recognition and speech synthesis run locally on the computer 3. Misty fetches the reply audio directly from the computer; no upload is needed 4. A different audio format is used |
| Claude Code | Codex | |
|---|---|---|
| Data hook | 1. Videos of hand gestures from Misty’s camera; some are held out for testing and not used in optimization 2. Labels for each video: gesture, distance, and angle | 1. Videos of hand gestures from Misty’s camera 2. Every frame actually sent to recognition |
| Measurement hook | 1. The gesture recognized in each frame and the time taken 2. The final gesture decided for each video | 1. The final gesture decided for each video, or the reason why none was decided 2. The recognition result and the time taken for each frame 3. The true gesture, checked by a person |
| Changes kept | 1. Hands are tracked continuously instead of being detected separately in every frame 2. Duplicate detections of the same hand are merged 3. A learned classifier replaces hand-written rules for gesture classification 4. The decision combines the results of the most recent frames | 1. The gesture is first judged from the shape of the fingers; the recognizer’s result is used only when this fails 2. When the original image gives no result, it is rotated or padded and recognized again |
| Claude Code | Codex | |
|---|---|---|
| Data hook | 1. Video from the overhead camera 2. Misty’s position in each frame 3. Readings of the inertial sensor (IMU) and the drive commands sent to Misty | 1. Each photo taken by the camera 2. The time and duration of each action 3. Video recorded during straight moves |
| Measurement hook | 1. Misty’s position and the time of each frame, from which the lap time and the distance from the track are computed 2. The time taken by each drive command | 1. Misty’s position at each step, from which the lap time is computed 2. The decision at each step and the duration of each action |
| Changes kept | 1. Steering starts early, according to the curvature of the bend ahead 2. Delay compensation also predicts Misty’s heading 3. The speed of each part of the lap is planned in advance 4. Heading errors are also corrected on bends | 1. Straight segments are driven in longer moves, monitored by video along the way 2. The photo taken after a turn is reused for the next step instead of taking a new one 3. A sudden jump in position is re-checked before continuing, instead of aborting 4. Sensor readings decide when a turn has settled, instead of a fixed waiting time |
| Claude Code | Codex | |
|---|---|---|
| Data hook | 1. The audio and Misty’s camera images of each trial 2. The correct answers: which card is pointed at and which word is spoken | 1. Images taken while aligning with the screen 2. The images and audio of each trial 3. The correct answers, confirmed by the user |
| Measurement hook | 1. The correct answer and the program’s decision for each trial 2. Trials held out for testing are not judged during optimization | 1. For each trial: the correct answer, the program’s decision, and whether it is right 2. The hand detection result in each frame 3. The recognized text |
| Changes kept | 1. Hands are searched for only near the cards, in an enlarged view 2. To decide where the finger points, the direction of the index finger is extended forward 3. Each of the two words receives a score, and the higher one is chosen 4. When the sound matches neither word, it is treated as noise and listening continues | 1. Hands are searched for in views of several angles and ranges; no decision is made when the views conflict 2. Pointing counts only when the index finger is extended and the other fingers are mostly curled 3. To decide where the finger points, the direction of the index finger is extended forward 4. Speech detection replaces a volume threshold for deciding whether someone is speaking 5. A heard word that is not on the cards is judged by which card word it resembles more |
| Without EvoMisty | With EvoMisty | |||||
|---|---|---|---|---|---|---|
| Task | Metric | Agent | Before | After | Before | After |
| Naughty-Child | Response latency (s) | Claude Code | 7.41 0.70 | 5.28 0.86 | 7.41 0.70 | 3.54 0.47 |
| Dialogue | Codex | 7.41 0.70 | 5.25 0.60 ∗ | 7.18 1.03 | 2.06 0.25 | |
| CER | Claude Code | 0.053 | 0.022 | 0.053 | 0.000 | |
| Codex | 0.053 | 0.078 | 0.037 | 0.000 | ||
| Rock-Paper- | Gesture recognition | Claude Code | 0.845 | 0.763 | 0.845 | 0.987 |
| Skill and stage | What it does | Math Tutoring | Keyword Story | Translation |
|---|---|---|---|---|
| computer_push_to_talk_mic Speech input | Records push-to-talk audio with the computer microphone; the audio is available as soon as the key is released. | used | used | used |
| sense_voice_asr Speech recognition | Recognizes a recording with a local SenseVoice model. | used | used | used |
| streaming_chat_reply Reply generation | Keeps the multi-turn history and streams the reply, handing out the first sentence as soon as it is complete. | adapted | – | – |
| melo_tts_pitched Speech synthesis | Synthesizes pitch-raised Chinese speech with a local MeloTTS model; outputs MP3. | used | used | – |
| misty_audio_player Playback | Uploads audio to Misty, plays it, and waits until playback completes. | used | used | – |
| misty_pipelined_speaker Playback | Synthesizes incoming text segment by segment and plays the segments back to back on Misty; can be interrupted. | used | adapted | – |
| Skill and stage | What it does | Math Tutoring | Keyword Story | Translation |
|---|---|---|---|---|
| sense_voice_transcriber Speech recognition | Recognizes a recording with a local SenseVoice model. | used | used | used |
| local_chat Reply generation | Streams a reply from a local Qwen3-4B model; keeps no history. | used | used | used |
| kokoro_synthesizer Speech synthesis | Synthesizes Chinese speech with a local Kokoro model and outputs WAV. | used | used | – |
| speech_mp3_encoder Audio encoding | Encodes WAV speech as MP3 and trims the leading silence. | used | used | – |
| speech_server Playback | Serves MP3 audio to Misty at a temporary HTTP address on the computer. | indirect | indirect | – |
| hosted_audio_player Playback | Has Misty play the MP3 at that address and waits until playback completes. | used | used | – |