mlsanityData to 24 Nov 2026

EmbedGym: Letting Coding Agents Develop and Debug Embedded Firmware Without Physical Hardware

arXiv 2611.21845 ↗Submitted 16 Nov 2026Announced 18 Nov 2026cs.SE cs.AIcited by 0

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Modern coding agents perform well on general software benchmarks because they can run code and unit tests in a closed loop. Embedded firmware development, however, breaks this loop: a program that compiles can still fail on real hardware due to pin polarity, bus protocol, timing, or networking bugs that an agent at a text terminal cannot observe. Existing embedded coding agents either skip hardware execution, drive GPIO-only simulators with multi-second delays, or test on physical boards in a static environment. In this paper, we present EmbedGym, an interactive virtual hardware environment that lets coding agents develop and debug embedded firmware without physical hardware. EmbedGym uses instruction-level microcontroller unit (MCU) emulators to execute the same binary that would be flashed onto a physical board, connects them to 41 peripheral models, an analog circuit simulator, and virtual WiFi/Bluetooth Low Energy (BLE) endpoints, and exposes an interface for agents to change sensor inputs, press buttons, and inspect hardware states. On top of it, we build EmbedGym-Bench, which consists of 598 tasks across 6 MCU-framework pairs graded by hidden timed test vectors, using a five-stage multi-agent workflow that synthesizes peripheral models and tasks from datasheets and driver libraries. We expose EmbedGym to a coding agent at three levels and evaluate eight models over more than 14K trajectories. Even when compilation succeeds 99.7% of the time, 19.9% of compiled firmwares fail at runtime (up to 73% on individual targets). In contrast, interactive hardware testing in EmbedGym increases pass rates across models by +4.9% to +14.7% (up to +31% on individual targets). Our results also show that an agent with EmbedGym outperforms prior embedded agent frameworks, and lightweight models with EmbedGym match frontier models without it at 30-70x lower cost.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 18 of its 37 references that are in the map. Submitted 16 Nov 2026, announced 18 Nov 2026.

Builds on

18 of 37 references.

Closest ancestors · 1

Same direction, newest first

  1. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul

Other references · 17

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,938
  2. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,789
  3. 2021Program Synthesis with Large Language Modelscited by 3,972
  4. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,871
  5. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,243
  6. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,530
  7. 2023Teaching Large Language Models to Self-Debugcited by 1,049
  8. 2021Measuring Coding Challenge Competence With APPScited by 938
  9. 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 742
  10. 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 603
  11. 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 471
  12. 2023Keep the Conversation Going: Fixing 162 out of 337 bugs for 0.42 each using ChatGPTcited by 132
5 more
  1. 2024LLMSense: Harnessing LLMs for High-level Reasoning Over Spatiotemporal Sensor Tracescited by 29
  2. 2025EmbedAgent: Benchmarking Large Language Models in Embedded System Developmentcited by 11
  3. 2019P2IM: Scalable and Hardware-independent Firmware Testing via Automatic Peripheral Interface Modeling (extended version)cited by 6
  4. 2021Automatic Firmware Emulation through Invalidity-guided Knowledge Inference (Extended Version)cited by 3
  5. 2020DICE: Automatic Emulation of DMA Input Channels for Dynamic Firmware Analysiscited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Closed-loop evaluation of LLM agents for embedded software development
  2. 2026LoopHIL: Looping Hardware into LLM-assisted Agents for Wireless Embedded Systems
  3. 2026HWRE-Bench: Can LLM Agents Understand Hardware They Did Not Design?
  4. 2026ChiProgramBench: Can LLM Agents Rebuild Efficient Circuits from Pin-Level Experiments?
  5. 2026EngineAgent: Agentizing On-Device LLM Inference Engines with Inference Stack Hierarchy Awareness and Hardware Abilities
  6. 2026CLOSER-Bench: Evaluating Budgeted Cross-Stage Design Closure for Hardware Agents
  7. 2024EmbedGenius: Towards Automated Software Development for Generic Embedded IoT Systems
  8. 2026Octopus Protocol: One-Shot Hardware Discovery and Control for AI Agents via Infrastructure-as-Prompts