arXiv(opens in a new tab)cs.SEOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.11447

Closed-loop evaluation of LLM agents for embedded software development

Jorge García-Carrasco, Sergio García-Carrasco, Alejandro Maté, Juan Trujillo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large language models (LLMs) are increasingly deployed as coding agents that edit files, run builds and tests, inspect execution results, and repair software iteratively. Embedded firmware is a demanding target because correctness depends on closed-loop behavior under sensing, timing, and safety constraints, not only on static source quality. Yet embedded-agent evaluation remains limited and often emphasizes one-shot synthesis or offline correctness.

We present a benchmark for closed-loop evaluation of embedded coding agents. Each task provides a plain-text engineering description, constrained workspace, and visible build-and-runtime surface. The agent must translate requirements into implementation and self-verification steps, then iterate until the required device behavior is achieved. The suite contains five embedded-control tasks and four feedback scenarios: one-shot generation, realistic self-verification, CI-style red/green feedback, and oracle-style detailed feedback.

The implementation targets simulated ESP32 firmware for reproducibility. We evaluate seven GPT-family and Qwen-family configurations across five tasks and four scenarios, with three repetitions per condition for 420 runs. gpt-5.4 has the highest pass rate among evaluated configurations but does not saturate the benchmark; qwen3.5-27B is the strongest observed local model; and smaller local models degrade sharply in pass rate and search efficiency. These results suggest that capable local embedded coding agents are emerging.

Keywords: embedded software, large language models, language model agents, software engineering benchmarks

Highlights.

  • We introduce a closed-loop benchmark for embedded firmware coding agents, i.e., tool-using LLM systems that can autonomously execute bounded build-test-debug loops.

  • The benchmark targets why agents matter for embedded work: tasks begin from plain-text engineering handoffs and require visible build, test, runtime, repair, and stopping decisions.

  • The evaluation spans five tasks, four feedback regimes, seven models, and three repetitions for a total of 420 runs.

• The model set combines two hosted frontier systems with five local Qwen variants.

  • gpt-5.4 has the highest observed pass rate among the evaluated configurations, while qwen3.5-27B is the strongest observed local model and points to viable on-premises embedded-agent workflows.

1 Introduction

Large language models (LLMs), trained on very large corpora of natural language and source code, now show strong capabilities across a wide variety of tasks [1]. In software settings, they can interpret requirements, summarize repository state, generate candidate implementations, explain failures, and propose repairs [2]. By themselves, however, they usually act as single-turn text generators. Agentic coding systems extend them with a persistent workspace and explicit tool use [3], allowing the model to read and edit files, run builds and tests, inspect logs, and revise a partial solution over multiple steps rather than answering only once. In other words, a coding agent does not only suggest code; within a bounded tool environment, it can autonomously act on a repository, observe the consequences, and continue working until it decides to stop or submit.

This shift from one-shot generation to iterative, feedback-driven work is central to practical automation in software engineering. Recent benchmark work has shown that realistic measurement must account for whether models can process failure signals and improve a solution over repeated attempts [4, 5]. Agent-oriented systems and evaluations further emphasize the importance of planning, tool use, execution, and iterative repair in realistic development environments [6, 7]. The agent framing is therefore useful because many engineering tasks are bottlenecked not by producing an initial candidate, but by validating, debugging, and repairing that candidate until it satisfies the intended behavior. Embedded software is a particularly compelling target for this kind of evaluation: firmware correctness depends on behavior in closed loop with sensors, actuators, timing constraints, and safety interlocks, so success requires more than static source-level quality.

Embedded software development is therefore qualitatively different from standard code-generation tasks. A controller may look reasonable in a code review and still fail once it interacts with asynchronous sensor streams, hysteresis, timeout handling, or sequence control. For the same reason, repository-level issue-resolution benchmarks do not fully cover the embedded setting either: they capture iterative software work, but not the hardware-facing closed loop in which firmware correctness depends on dynamic behavior.

Despite recent interest in applying modern coding agents to embedded and hardware-adjacent domains, the dominant emphasis is still on static synthesis, component-level checks, or offline correctness [8]. What remains less explored is the full agentic loop that makes modern coding agents useful in practice: starting from a plain-text specification of what must be implemented, formulating tests, implementing firmware, running it, learning from feedback, and iterating until the system behavior matches the requirements.

This motivates the central question of this paper:

Can an agent, starting from a plain-text specification of required device behavior, iteratively write tests and firmware, execute that firmware in a target environment, and converge to the required embedded behavior through a closed feedback loop?

We argue that this question deserves its own benchmark because the capability of interest is not one-shot firmware generation, but iterative embedded engineering. The benchmark we present is intended to evaluate whether an agent can start from a prose engineering brief, translate that brief into implementation and verification actions, and ultimately satisfy a behavioral contract in closed loop. The design is therefore prose-first, contract-aligned, and centered on the real development steps that embedded engineers actually perform: implementing controllers, writing or refining tests, running builds, probing runtime behavior, and iterating on failure signals.

In the current reference instantiation, we realize this methodology with an ESP32 firmware target running in QEMU [9] and deterministic plant simulators that model the controlled process. We simulate both the microcontroller and the plants/tasks because a benchmark should first be safe, repeatable, and easy to run at scale. This makes the evaluation reproducible and suitable for systematic comparison, while still exercising the core embedded loop of sensing, control, actuation, and verification. In this reference stack, the physical sensor/actuator boundary is intentionally virtualized through a UART protocol between firmware and simulator, which abstracts board-specific electrical integration while preserving the closed-loop control logic that the benchmark is meant to test. The ESP32/QEMU stack is therefore a concrete vehicle for the benchmark, not the boundary of the methodology itself.

Contributions. The paper makes the following contributions:

  1. A benchmark formulation for closed-loop evaluation of LLM agents on embedded firmware tasks, starting from a prose specification and ending in behavior-level validation.

  2. A benchmark design centered on contract-aligned task packets, visible self-verification affordances, a five-task difficulty ladder, and four evaluation scenarios with different degrees of feedback visibility.

  3. A reference ESP32/QEMU simulation instantiation with five deterministic plant models that enables safe and reproducible closed-loop evaluation before hardware deployment.

  4. A pooled 420-run evaluation across five tasks, four feedback scenarios, and seven models spanning hosted and local agents, showing that the benchmark is executable and model-separating, that gpt-5.4 has the highest observed pass rate without saturating the suite under repeated measurement, and that qwen3.5-27B is the strongest observed local operating point while smaller local models degrade sharply in both accuracy and efficiency.

The remainder of the paper is structured as follows. Section 2 reviews related work. Section 3 presents the benchmark objective, contract, and design principles. Section 4 describes the evaluation setup and reports results across tasks, feedback scenarios, and models. Section 5 discusses implications, limitations, and benchmark-design lessons. Section 6 concludes and outlines future work.

References (23)