Back to feed
News Story
机器之心
1 sources

LoopsBench: A Benchmark for Long-Horizon Software Engineering with Coding Agents

Researchers from Microsoft and Nanjing University have introduced LoopsBench, a benchmark for long-horizon software engineering with coding agents. It represents software tasks as dependency DAGs to evaluate an agent's ability to maintain plans, advance dependent tasks, preserve completed work, and control regressions over extended execution. This benchmark reflects the shift from one-off tool calls to continuous software development systems.

SynthePulse Insight · AI deep reading

LoopsBench: How Should We Reevaluate Coding Agents When They Start Working Long-Term?

Version 1 · 1 source

Microsoft, Nanjing University, and other institutions propose LoopsBench, which represents long-horizon software tasks as dependency DAGs and introduces a Flow-aware Runtime to evaluate Coding Agents' planning, progression, and regression control during extended execution.

  • LoopsBench decomposes long-horizon software tasks into independently verifiable Development Units and restores their prerequisite dependencies to form a Dependency DAG.
  • The Flow-aware Runtime advances tests along the DAG as the agent progresses, with completed units becoming Regression Obligations that must be protected.
  • The benchmark includes 112 tasks, over 5,300 Development Units, covering 8 languages and 9 domains, with a median dependency depth of 6.
  • In experiments, the best configuration achieved a Resolve Rate of 25.00% and a Test Pass Rate of 53.05%, indicating significant room for improvement in long-horizon tasks.
  • Analysis reveals that agent plans undercover dependencies, patches are longer, test protection grows insufficiently, and no Loop mechanism fully eliminates regression.
Open section navigationFrom Final Results to Continuous Execution: A Paradigm Shift in Evaluation

From Final Results to Continuous Execution: A Paradigm Shift in Evaluation

Existing Coding Agent benchmarks (e.g., SWE-bench) typically judge success by whether final tests pass, but with new capabilities like continuous execution and Goal Mode, final results alone are insufficient to capture the execution process. LoopsBench argues that in long-horizon tasks, agents need to identify dependencies, progress in a reasonable order, and prevent regression of completed functionality.

LoopsBench represents tasks as a Dependency DAG: nodes are actual engineering units, and edges represent evidence-supported prerequisite dependencies. This DAG is not the only correct order but serves as an evaluation contract, allowing parallel or redo actions as long as dependencies are satisfied.

Task sources include university course labs, continuous PRs from open-source projects, and research code evolution, totaling 112 tasks: 57 Course Labs, 29 PR Sequences, and 26 Research Evolutions.

Flow-aware Runtime: Dynamic Progression and Regression Obligations

LoopsBench designs a Flow-aware Evaluation Runtime: only when prerequisites are met does a Development Unit enter the Ready Frontier, and tests advance along the DAG as the agent progresses. This allows observation of how far the agent advances, rather than merely counting pass rates.

Once a unit is completed, its tests are retained, becoming a Regression Obligation. Each step forward requires maintaining more completed functionality, accumulating regression pressure.

The Runtime separates editing and evaluation environments, recording state as code changes to generate a trajectory over time, capturing regression dynamics.

Experimental Findings: How Far Can Current Agents Go?

In benchmark tests, the best configuration (highest configuration + outer continuation) achieved a Resolve Rate of 25.00% and a Test Pass Rate of 53.05%, meaning about three-quarters of tasks were not fully resolved. Varying the Loop with a fixed model or varying the model with a fixed Loop produced differences, indicating that Model and Loop separately affect local reasoning and long-term organization.

Introducing continuation improved performance: one configuration's Resolve Rate increased from 16.96% to 25.00%, another from 14.29% to 21.43%, but it could not automatically solve subsequent task selection and progression path issues.

Analysis shows that agent plans cover only part of the dependencies, patches are typically longer than Gold References, and fewer agent-authored tests are established, leading to regression in completed units during subsequent modifications.

Loop Mechanism Comparison: Goal Persistence, Dynamic Workflows, and Fresh Invocation

The paper compares Goal Mode, Dynamic Workflows, and loop mechanisms based on fresh invocation. Dynamic Workflows produce more independent context rounds and achieve higher Resolve Rates; Goal Mode advances by maintaining long-term goals; fresh invocation performs relatively weaker on complex tasks.

However, no mechanism completely eliminates regression, indicating that simply adding or refreshing context is insufficient to solve all problems in long-term execution.

Credibility boundary

This article is based on a report by Machine Intelligence (机器之心) on the LoopsBench paper; all data and conclusions are from that report and have not been verified against the original paper. Some experimental details (e.g., specific model names) were not mentioned in the report and are therefore omitted.

Insight takeaway

LoopsBench provides a new paradigm for evaluating long-horizon Coding Agents, emphasizing process over just results. Current agents still face challenges in planning and regression control in long-term tasks, and Loop design needs to match the actual dependency structure.

Primary report

机器之心

Primary source