NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LoopsBench: From Harness Engineering to Loop Engineering in Coding Agent Evaluation

Han Li, Zhemin Fang, Rili Feng, Yingqi Zhao, Jiaheng Liu, Pengfei Gao, He Ye, Dayi Lin, Qingwei Lin, Saravan Rajmohan, Dongmei ZhangarXiv 2026

TL;DR

LOOPSBENCH is a new long-horizon benchmark designed to evaluate coding agents on loop engineering—their ability to sustain execution, manage state, plan complex workflows, and mitigate regressions over multi-step software development tasks. By framing tasks as dependency Directed Acyclic Graphs (DAGs) of testable units, it reveals that even frontier agents (like Claude Opus 4.7 and GPT-5.5) struggle significantly with long-term execution, with the best configuration resolving only 25% of tasks.

What Problem Does This Paper Address?

Existing coding benchmarks (such as SWE-bench) primarily focus on "terminal" task success: an agent is given a flat issue specification and judged solely on its final patch. The authors call this harness engineering.

However, as AI agents are deployed for sustained, long-horizon software engineering, the infrastructure is shifting toward loop engineering. In real-world development, an agent must manage a continuous execution loop: decomposing a large feature into subproblems, tracking state across extended timelines, routing work based on prerequisites, and ensuring that new code doesn't break previously completed work.

Current benchmarks fail to provide visibility into this loop. They don't show whether an agent follows a viable order of operations, how it handles intermediate obligations, or when regressions occur. LOOPSBENCH addresses this gap by creating an evaluation environment where task structure and execution dynamics are explicitly monitored.

Methods

LOOPSBENCH introduces a graph-structured evaluation contract that formalizes tasks as dependency DAGs.

Overview of the LOOPSBENCH construction and evaluation pipeline.

Key components of the methodology include:

  • Topologically Gated Test Release: The evaluation runtime releases unit tests layer-by-layer along the dependency DAG. Descendant tests remain sealed until all prerequisite units pass their tests.
  • Persistent Regression Obligations: Once a development unit passes, its tests remain active as regression checks for all subsequent layers. If an agent breaks an earlier unit while working on a downstream task, it is flagged as a regression event.
  • Dual Container Snapshot Pipeline: To observe the agent's loop without interrupting it, the runtime separates code execution from test adjudication using two containers. Container A hosts the agent's active workspace, while Container B periodically pulls snapshots of the codebase to evaluate test states asynchronously.
  • Instruction Anonymization: To prevent simple prompt-level memorization, repository names, course identifiers, paper titles, and author attributions are stripped, leaving only the core public acceptance contract and interfaces.

Datasets

The authors introduce the LOOPSBENCH dataset, which consists of 112 long-horizon tasks comprising over 5,300 separately testable development units across 8 programming languages and 9 domains. The tasks are curated from three distinct real-world sources:

  1. PR Sequences (29 tasks): Chains of dependent pull requests from active GitHub repositories, reflecting real community development practices.
  2. Course Labs (57 tasks): University computer science projects (e.g., building game engines or network stacks) with clear, modular milestones.
  3. Research Evolutions (26 tasks): Codebases tracking the progressive implementation of highly cited research papers and their load-bearing extensions.

The benchmark features a median dependency depth of 6 and a median gold patch size of 5,499 lines of code.

Key Insights and Ideas

  • The Internal Dependency Gap: When agents are asked to generate a plan (plan.json), their proposed DAGs only recover a small fraction of the true prerequisite structure. They frequently attempt to parallelize tasks that have strict serial dependencies.
  • Patch Surplus: Resolved tasks often feature candidate patches that are significantly longer than human reference solutions ("patch surplus"). Agents tend to rewrite entire blocks or add excessive comments when their internal representation of the repository state is incomplete.
  • Sparse Testing Discipline: Coding agents rarely author comprehensive test suites to protect their own progress. This lack of internal verification directly correlates with high downstream regression rates.
  • Context Renewal Bottlenecks: Distributing work across narrower local worker contexts (as seen in dynamic workflows) helps prevent context window exhaustion but increases the burden of explicit state tracking when sub-agents return to the main loop.

Key Results

The authors evaluated frontier LLMs paired with popular agent loop frameworks (e.g., Claude Code, OpenHands, SWE-agent).

Figure 1: Summary statistics and results for LOOPSBENCH.
  • Low Overall Success: The absolute strongest configuration—Claude Opus-4.7 paired with Claude Code and an outer continuation loop—resolved just 25.00% of the tasks.
  • Framework Discrepancies: Under a fixed model (GPT-5.4), closed-source loop implementations (like Claude Code and Codex goal mode) achieved much higher success rates (~12-13%) compared to open-source alternatives like SWE-agent (~5%) or mini-swe-agent (~4%), largely due to better tree-shaped concurrent execution and state management.
  • Source Difficulty: PR Sequences proved to be the most brutal source, with a maximum solve rate of only 3.45% across all configurations. Course Labs were the most approachable, accounting for over 70% of all resolved tasks due to their clean, modular design.

Limitations and Future Work

The authors note several limitations:

  • Lower Bound on Dependencies: The recovered DAGs represent a conservative lower bound on prerequisite structures based on explicit code/symbol overlaps. They may miss implicit dependencies hidden in configuration files, data formats, or cross-service behaviors.
  • Non-Monotonic Development: The benchmark assumes a mostly monotonic development path and does not perfectly capture exploratory software engineering where earlier requirements are intentionally scrapped and redesigned.
  • Cost and Drift: Running long-horizon evaluations across thousands of test units is computationally expensive, and the behavior of proprietary API-based models is subject to drift over time.

Summary updated

BibTeX
@misc{li2026loopsbench,
  author = {Han Li and Zhemin Fang and Rili Feng and Yingqi Zhao and Jiaheng Liu and Pengfei Gao and He Ye and Dayi Lin and Qingwei Lin and Saravan Rajmohan and Dongmei Zhang},
  title = {{LoopsBench: From Harness Engineering to Loop Engineering in Coding Agent Evaluation}},
  year = {2026},
  eprint = {2608.00267},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.00267},
}
Figure