arXiv(opens in a new tab)cs.AIAug 2026Cited by 5 papers on PaperVantage

Manuscript Offprint

arXiv:2608.28281

LoopArena: Benchmarking Models as Runtime Controllers for Loop Engineering

Yi Wang, Haopeng Zhang, Chengxiang Huang, Rui Dai, Kaikui Liu, Piotr Koniusz, Xiangxiang Chu

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

Yi Wang1^{1}, Haopeng Zhang1^{1}, Chengxiang Huang1,2^{1,2}, Rui Dai1^{1}, Kaikui Liu1^{1}, Piotr Koniusz3^{3}

Xiangxiang Chu1^{1}

1^{1}DreamX Team, Alibaba Group, 2^{2}Beijing University of Posts and Telecommunications

3^{3}UNSW Sydney; Data61, CSIRO

Loop Engineering is emerging as a practice for organizing development work around coding agents. Instead of writing each prompt by hand, practitioners design loops that monitor progress, assign work, run checks, and decide what the agent should do next. Even with a capable coding agent, a loop may trust a stale progress note, skip needed verification, spend its budget in the wrong direction, or stop before the task is safe to submit. Yet the final outcome of one end-to-end run cannot tell whether success or failure reflects the loop’s guidance or the coding agent’s ability to carry out the task. We introduce LoopArena, a benchmark for evaluating how well one model can guide a separate coding agent through a long-running task. The model under evaluation is the Controller: after each coding round, it receives a structured summary of the run and instructs a separate, fixed coding agent, the Worker, on what to do or verify next, or decides whether to stop. LoopArena evaluates this ability in three complementary settings that differ in execution scope and cost. Type I scores next-step Loop Contract selection through execution-validated questions without running the Worker at evaluation time. Type II executes repeated control over a selected slice of a full task, while Type III evaluates the paired full task from its original state. On full tasks, the best observed Strict Success Rate is 24.69%, leaving substantial room for improvement in long-horizon loop control. Across Controllers, the paired reduction in estimated inference cost averages 64.4%, and Type II produces a similar ordering under the main Core criterion (Spearman’s ρ=0.9747\rho = 0.9747). We release the benchmark data and evaluation code at https://github.com/AMAP-ML/LoopArena.

GitHub: https://github.com/AMAP-ML/LoopArena

Date: August 28, 2026

1 Introduction

Loop Engineering marks a shift in how developers interact with coding agents on long-running tasks. Instead of inspecting each result and writing the next prompt by hand, developers specify the task goal and the criteria for judging progress, then let a loop manage the successive rounds of interaction (Osmani, 2026). LoopArena evaluates a model's ability to manage these rounds through a two-agent harness: the evaluated model is the Controller, while a separate Worker carries out the coding task. We refer to the Worker's task execution as the inner loop and the Controller's guidance of the overall process as the outer loop. Figure 1 shows how the Controller's outer loop guides the Worker's inner loop.

Once a coding agent works across many steps, a plausible partial result can easily be mistaken for completion: a narrow check may pass while another requirement remains untouched. As the repository and available evidence evolve, the next useful instruction may shift from implementation to verification, recovery, or stopping. LoopArena evaluates whether a Controller can recognize such situations, redirect the Worker when necessary, and decide when the run should end. In the Controller-guided condition, the Controller reviews the run after each Worker round and decides how the next round should proceed. We also report a no-control baseline in which the same Worker receives the task instruction and works autonomously to completion. We additionally evaluate fixed control, a persistent-goal baseline inspired by Codex's /goal: at every control point, the harness deterministically restates the original task objective and asks the Worker to continue, without adapting its guidance to the current evidence.

Figure

Figure 1 The LoopArena harness. Both conditions start from the same restored task state and use the same Worker, coding tools, and task evaluator. In the Controller-guided condition, a temporary Reporter agent summarizes the Worker's progress after each round, and the harness deterministically formats the report as an Evidence Packet. The Controller reads this structured, read-only summary and issues a Loop Contract specifying the next Worker segment, or decides to stop. In the no-control condition, the Worker runs without Controller guidance.

Most coding benchmarks (Jimenez et al., 2024; Zan et al., 2025) evaluate task completion by running a coding agent and scoring the resulting repository state with executable tests or task-specific evaluators. Long-horizon and iterative benchmarks extend this setup to longer tasks or evolving requirements, but still score the coding agent or agent system as a whole (Orlanski et al., 2026). Process-oriented benchmarks instead assess individual actions or capabilities within the coding trajectory, such as repository exploration (Fan et al., 2026; Zhang et al., 2026a). Recent work has begun to benchmark different combinations of coding models and loop implementations on long-horizon tasks (Li et al., 2026). LoopArena targets a different object of evaluation: a model's ability to control the loop around a separate coding agent. This model-as-manager setting makes agent orchestration directly evaluable: the Controller interprets the ongoing run and decides what the Worker should do next.

To evaluate this ability, we compare models in the Controller role while keeping the Worker and execution setup fixed. Each time the Worker returns control to the harness after working on its current assignment, the harness creates a temporary Reporter agent using the same model as the Worker and a copy of the Worker conversation history. The Reporter summarizes the current state of the task from this history and read-only workspace inspection. It runs in a temporary copy of the conversation, so its interaction does not alter the persistent Worker history. The harness deterministically formats the Reporter's summary and the Worker's working evidence it cites into an Evidence Packet, which is a structured, read-only summary for the Controller. The Controller reads this Packet and issues a structured Loop Contract that either specifies the Worker's next assignment or ends the run. If work continues, the harness converts the Contract into the Worker's next prompt. The Controller has no coding tools and can affect the task only through the instructions it sends to the Worker.

LoopArena organizes evaluation into three complementary settings that differ in execution scope and cost. Type III evaluates Controller models on complete, long-horizon repository-level coding tasks, beginning from the original task specification and repository state. Type II evaluates runtime loop control on one selected task slice from the same full task. In our experiments, the paired Type II cost reduction averages 64.4% across

Controllers, and its ordering is similar to Type III under the main Core criterion (Spearman's correlation ρ=0.9747\rho = 0.9747). Type I moves its execution cost to benchmark construction. During construction, we execute candidate Loop Contracts and use their downstream outcomes to establish the correct option; once the benchmark is built, each new Controller is scored through a single four-way choice with no Worker execution. Together, the three settings support low-cost diagnosis of individual control decisions, lower-cost evaluation of runtime loop control, and end-to-end evaluation on long-horizon coding tasks.

Our contributions are the following:

  1. A benchmark for runtime loop control. LoopArena evaluates how well a model decides what a separate coding agent should do next and guides it through long-horizon repository-level tasks, making runtime loop control a direct target of evaluation.

  2. A controlled protocol for comparing Controller models. Across Controller-model comparisons, LoopArena holds the Worker and execution setup fixed, including the tools, task environment, execution budget, evaluator, and control interface. The object of comparison is therefore the Controller model, not the complete coding-agent system.

  3. Evaluation at decision, task-slice, and full-task levels. Type I shifts candidate execution to benchmark construction, enabling low-cost control questions grounded in downstream outcomes. Type II and Type III evaluate runtime loop control on paired task slices and full tasks. This pairing lets us quantify the reduction in evaluation cost and compare Controller rankings across the two execution scopes.

References (52)